omi icon indicating copy to clipboard operation
omi copied to clipboard

[Bounty proposal] fix(clickup-app): folder-contained lists invisible in get_all_lists

Open Aj2280 opened this issue 2 months ago • 2 comments

Description

In plugins/omi-clickup-app/clickup_client.py, get_all_lists() only queries GET /space/{space_id}/list. In ClickUp API v2, /space/{space_id}/list only returns folderless lists (lists not placed in any folder).

Any lists organized inside folders in a ClickUp workspace are completely invisible to get_all_lists. Consequently:

  1. The web setup/settings UI list picker never displays folder lists for task destination selection.
  2. AI task detection cannot route tasks to lists that live inside folders.

Proposed Fix

  1. Add get_folders() to query GET /space/{space_id}/folder and retrieve all folders in each space.
  2. Add get_folder_lists() to retrieve lists for a specific folder if not already populated.
  3. Update get_all_lists() to aggregate both folderless lists and folder lists, naming them folder_name / list_name for clear disambiguation.
  4. Add regression unit tests in plugins/omi-clickup-app/test_clickup_client.py and register clickup-app-client-tests in .github/checks-manifest.yaml.

Proposed Bounty Reward: $50.00 USD Bounty Payout Destination (PayPal): [email protected]

Aj2280 avatar Sep 14 '26 08:09 Aj2280

Fixed in PR #13809 with full unit test coverage asserting folder lists aggregation and fail-closed error handling.

Payout Destination (PayPal): [email protected]

Aj2280 avatar Sep 14 '26 08:09 Aj2280

Hi — I'd like to work on this too, and I have a fix ready that I'll put up as a PR alongside #13809 for the maintainers to compare. Same endpoints (GET /space/{id}/folder with the embedded lists, GET /folder/{id}/list as the fallback), with two behavioural differences that I think matter for how the plugin is used:

  1. name stays the bare list name. task_detector matches what the user said against lst["name"] (exact compare in three places), so storing "Sprint 1 / Bugs" as the name turns "add a task to Bugs" from an exact match into a low-score fuzzy one, and the AI-match fallback misses it entirely. Folder lists carry folder_name, and the picker renders Folder / List (Space) at the display boundary instead.
  2. A failed folder request fails closed. get_all_lists returns [] rather than the folderless subset — the same discard-partial-results contract as the github-app fetchers in #13546. A folderless-only answer after a transient folder error is this exact bug, made intermittent.

Plus hermetic tests that drive the real get_all_lists and the real settings handler, registered in checks-manifest.yaml, and an end-to-end run of the app against a local fake ClickUp v2 server. Happy to defer to whichever approach the maintainers prefer, or fold either point into #13809 if that's more useful.

Abhist17 avatar Sep 14 '26 13:09 Abhist17