[Bounty proposal] fix(clickup-app): folder-contained lists invisible in get_all_lists
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:
- The web setup/settings UI list picker never displays folder lists for task destination selection.
- AI task detection cannot route tasks to lists that live inside folders.
Proposed Fix
- Add
get_folders()to queryGET /space/{space_id}/folderand retrieve all folders in each space. - Add
get_folder_lists()to retrieve lists for a specific folder if not already populated. - Update
get_all_lists()to aggregate both folderless lists and folder lists, naming themfolder_name / list_namefor clear disambiguation. - Add regression unit tests in
plugins/omi-clickup-app/test_clickup_client.pyand registerclickup-app-client-testsin.github/checks-manifest.yaml.
Proposed Bounty Reward: $50.00 USD
Bounty Payout Destination (PayPal): [email protected]
Fixed in PR #13809 with full unit test coverage asserting folder lists aggregation and fail-closed error handling.
Payout Destination (PayPal): [email protected]
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:
namestays the bare list name.task_detectormatches what the user said againstlst["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 carryfolder_name, and the picker rendersFolder / List (Space)at the display boundary instead.- A failed folder request fails closed.
get_all_listsreturns[]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.