You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Orca could pull tasks from GitHub, GitLab, Linear and Jira. Teams that plan in ClickUp had to copy task links by hand. This adds ClickUp as a task source: connect once with a personal API token, then browse, search and filter your ClickUp tasks inside Orca, change status, comment, and start a workspace from a task. The workspace and branch are named after the task, and the task link travels with the workspace.
What Changed
Before: the Tasks page, the new-workspace composer, Cmd-J, Settings and the orca CLI offered GitHub, GitLab, Linear and Jira. ClickUp was not available anywhere.
After: ClickUp is a full provider next to Linear and Jira:
Settings › Integrations: a ClickUp card to add, update, test and remove a personal API token, and to pick the ClickUp Workspace when the token covers several. Settings › Task sources: guided setup steps and the "show in Tasks" toggle.
Tasks page: ClickUp tab with "Assigned to me" / "All", status filters built from the Workspace's statuses, "Include closed" (done/closed status types stay hidden unless asked for), search by text, task id, custom id or pasted task URL, refresh, paging, and loading/empty/error/permission states.
Task detail: description (Markdown), status, priority, due date, assignees, tags and comments; change status from the List's own statuses; add a comment.
Start workspace: from a row, the detail or Cmd-J. The composer is pre-filled with a ClickUp chip; the branch and workspace are named CU-<id> <title> for raw ids (custom ids such as ENG-7 stay bare, matching ClickUp's Git integration). The workspace stores linkedWorkItem { provider: 'clickup', … }, so the sidebar and workspace references show the task.
Composer: ClickUp source tab and ClickUp URL paste.
Cmd-J: ClickUp tasks in search results.
CLI + agent skill:orca clickup status | task <id|custom-id|url> | list [--all] [--include-closed] [--status …] [--page n] | search "<q>" | comment add <id> --body|--body-file | status set <id> --to "<name>", plus an orca-clickup skill guide. Task text is marked untrusted for agents.
Mobile: ClickUp in the mobile Tasks screen (list, filters, detail, connect prompt), through the runtime RPC.
Remote runtimes: everything goes through the runtime RPC (clickup.*), routed by the resource owner like Jira. A new clickup.v1 runtime capability gates ClickUp on older paired runtimes and phones, which then show "update the runtime" instead of failing.
Mechanism: a main-process REST client for ClickUp API v2 (src/main/clickup/) with the token encrypted through the existing integration credential storage, IPC clickup:*, preload window.api.clickup, runtime RPC methods, a renderer store slice, and UI that reuses the Linear/Jira building blocks. ClickUp has no full-text task search API, so search does a direct lookup for ids, custom ids and URLs, then scans up to 5 pages of the user's tasks and matches locally, with a short main-side page cache.
Why
ClickUp is one of the most requested task trackers (#14622, #10389). Following the Jira/Linear provider shape keeps one mental model for users and one code path for remote hosts, mobile and the CLI, instead of a ClickUp-only side door. A personal API token was chosen over OAuth because Orca has no ClickUp OAuth app; the token flow matches how Linear and Jira tokens work today.
Before: no ClickUp anywhere: the Tasks source switcher, Settings › Integrations, Settings › Task sources, the composer sources and Cmd-J list only GitHub, GitLab, Linear and Jira.
After (Windows, UI in Portuguese, which also shows the new strings localized; personal data blurred, the only task shown is the disposable test task):
Tasks page, ClickUp tab with filters and search
Task detail with status, priority, assignee, Markdown description, comments and comment box
Start workspace: composer pre-filled with the ClickUp chip
Sidebar: workspace CU-86bd5zy0u [teste Orca]… created from the task
Settings › Task sources: ClickUp ready, with visibility toggle
1. Tasks page, ClickUp tab with filters and search
2. Task detail
3. Start workspace: composer pre-filled with the ClickUp chip
4. Settings › Integrations: ClickUp card
5. Sidebar: workspace created from the task
6. Settings › Task sources: ClickUp ready
Testing
Validated on Windows 11 in the dev build against a real ClickUp Workspace, using disposable test tasks (deleted afterwards). Re-checked after each CodeRabbit round, most recently on 9dba59d and babc5eb: open a task by URL, status change reflected in the list and in ClickUp, comment add, Load more (98 → 189 rows), token dialog draft cleared on close.
Connect with a personal token, Workspace selection, "Test" in Settings, Settings › Task sources showing ClickUp as ready.
Tasks page: assigned/all, status filters, Include closed (69 → 100 tasks, done/closed statuses only appear when asked), search by text and by id-shaped words (utf-8, covid-19, ENG-7 fall back to text search without errors), detail page header next to the window controls.
Write paths in the UI and the CLI: status change, comment add, invalid status name message.
Start workspace from the test task: composer pre-filled with the ClickUp chip, worktree and branch cu-<id>-… created, linkedWorkItem stored with provider: clickup, title and URL (checked with orca worktree list --json).
CLI: status, task, list, search, comment add, status set against the same Workspace.
Not tested on macOS/Linux, a real SSH remote or a physical phone; those paths go through the same runtime RPC and capability checks as Jira.
pnpm build:desktop passes on Windows (typecheck, desktop assets, web client projection, mobile web bundle verification). build:native was not run: this machine has no Rust toolchain for the Windows CLI launcher, which this PR doesn't touch.
The full pnpm test suite was not run locally (machine memory); leaving it to CI.
New unit tests cover the risky boundaries: token revocation by ClickUp error code (only "Token not found" codes revoke; "Team not authorized" keeps the token), deadline/abort mapping (queue wait, 429 sleep, fetch; user cancel passes through), scan-cache epoch guard, task URL sanitizing, page range, id/custom-id/URL parsing, CU- labeling, response mapping, CLI status matching, settings migration (ClickUp shown once, never re-added after the user hides it).
I manually tested these changes locally
Automated tests added/updated, or explained why not below
Every added test fails without this change and avoids the test anti-patterns
Performance
Nothing runs unless ClickUp is connected and its tab, composer source or Cmd-J is used. ClickUp has its own request pool (4 concurrent), a 20s per-request and 25s per-operation deadline (under the renderer's 30s RPC timeout), at most one 429 retry, request-id cancellation of superseded searches, and a 45s / 30-page main-side cache so typing doesn't rescan pages. Results are cached in the renderer store like Jira's. Jira no longer shares its request slots with anything else.
Risk
Level: Medium
Size: large but additive; existing providers only gained ClickUp branches. Shared pieces touched: workspace source/link normalization, task-source context, settings defaults (one-shot migration adds ClickUp to visible task providers once), and Jira's request queue, deadline and cancellation helpers, which were moved to shared modules unchanged.
Saved data: new files ~/.orca/clickup-token.enc and ~/.orca/clickup-account.json; new linkedWorkItem.provider = 'clickup' on workspaces. Older builds reading a workspace linked to ClickUp ignore the unknown provider.
Older paired runtimes/phones: gated by clickup.v1; they show an update message instead of failing.
Back out: a plain revert. A revert would leave the two ClickUp token/account files on disk and ClickUp links on workspaces created meanwhile (harmless, unused).
AI Disclosure
Built with Claude Code (Claude Opus 5.5 orchestrating, Sonnet 5.5 subagents for implementation). Every change went through independent AI review passes, followed by fixes, and manual validation against a real ClickUp Workspace by the author.
docs/ CLI reference pages: left for the docs owners, the skill guide documents the commands.
The smart-mode placeholder copy doesn't name ClickUp yet, and WorkspaceAttachmentSearch has no ClickUp tab (pasting a ClickUp URL works).
Mobile RPC golden recordings are unchanged: the recording drivers aren't in the repo, and no test reads the goldens.
Non-English translations were written carefully but not reviewed by native speakers.
Cmd-J shows the Workspace name only for the host whose ClickUp status is loaded, to avoid labeling results with another host's Workspace.
Errors raised in the main process (timeout, rate limit, Workspace changed, Workspace not authorized, a comment whose save could not be confirmed) are English-only, like the existing ClickUp messages; mapping ClickUp error codes to localized copy is a follow-up.
Linking a task from the composer now clears the "reuse existing branch" state, as switching projects already does ([Feature]: Create new worktree with existing branch #5181). The hook is shared, so this also applies to Jira links.
A failed reconnect keeps the stored token and account paired (metadata is written first, the token file is replaced atomically, and a failed write restores the previous metadata or drops the token). A process crash between the two writes is not covered; doing that would need a token fingerprint stored with the account.
Happy to split this into backend / desktop / mobile / CLI PRs if that's easier to review.
Agent skill upstream boundary
Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.
Notes
Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance
Checklist
This PR is small and focused (it is focused on one provider, but not small; see Review)
I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
I stated the risk: what could break, for whom, and how to back it out
Before/after screenshots or videos attached for UI changes, or N/A with reason
Self-reviewed for correctness, security, and performance
Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)
It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.
No actionable comments were generated in the recent review.
Walkthrough
This change adds ClickUp as a task source across Orca. It adds ClickUp account and task operations, runtime interfaces, renderer and mobile task workflows, workspace linking, and CLI commands. It also adds localized interface text, ClickUp skill guides, and tests for mapping, pagination, connection state, and write behavior. Shared provider and workspace-reference contracts now include ClickUp.
Merge Risk: Moderate · up to babc5 · assessed changes only
Path filters excluded changed files. This rating applies only to the assessed changes.
The ClickUp integration is broad and mostly well tested, but several earlier minor concerns remain open. The main one is the reconnect failure path, which can leave the saved ClickUp token paired with the wrong account's details. Review these before merging.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title "feat: add ClickUp as a task provider" matches the main change. The objectives and raw summary describe ClickUp added as a task source across desktop, CLI, mobile, and runtime RPC, so the ti…
Linked Issues check
[#14622, #10389] Both issues are open and direct, so both supply coding requirements.
Credentials and default scope: a personal API token flow is implemented. The token is stored through the integrat…
Out of Scope Changes check
The changes support the ClickUp provider or the shared infrastructure it uses: - Jira request helpers (withJiraDeadline, Jira request queue, JiraCancellableRequests) moved to shared network modules (r…
Description check
The description follows the repository template closely. It has ELI5, What Changed (before/after plus mechanism), Why (with alternatives such as personal token over OAuth), Linked Issues (#14622, #103…
Full details: Title check
Explanation
The title "feat: add ClickUp as a task provider" matches the main change. The objectives and raw summary describe ClickUp added as a task source across desktop, CLI, mobile, and runtime RPC, so the title names the primary change without listing files.
Full details: Linked Issues check
Explanation
[#14622, #10389] Both issues are open and direct, so both supply coding requirements.
Credentials and default scope: a personal API token flow is implemented. The token is stored through the integration credential path (src/main/clickup/client.ts, clickup-account-store.ts). Default task scope is assigned tasks (src/shared/clickup/clickup-task-filter.ts). Workspace selection exists when the token covers several Workspaces (client.ts selectWorkspace; ClickUpIntegrationCard).
List and search: listTasks and searchTasks (src/main/clickup/clickup-task-queries.ts). Text search scans at most five pages and matches locally.
Start or link a workspace: composer, Cmd-J, Tasks page, and mobile paths build linkedWorkItem with provider 'clickup' (src/shared/new-workspace/workspace-source.ts, buildClickUpWorkspaceSource).
Agent read and write: CLI task, list, search, comment add, and status set (src/cli/clickup/clickup.ts, clickup-write.ts), with the orca-clickup skill guide.
Untrusted task text: marked in CLI specs and in the skill guide.
Tests: unit tests cover response mapping, error and token-revocation mapping, deadlines, pagination, workspace scope, CLI status matching, CLI write handling, and store write rollback.
The #14622 MVP lists space, folder, and list selection. The acceptance criteria require only a default task scope, so the missing list picker is not an unmet requirement. The suggested CLI syntax in #14622 is advisory; the PR provides an equivalent command surface. #10389 asks for a Jira-like ClickUp integration, which this provider supplies.
Uncertainty: this pass relied on the whole-PR summary, the previous assessment, and the incremental change summary. No source file was re-read in this pass, so fixes in 9835853, 59583c4, and later commits were assessed from their descriptions only. Test results were not observed.
Full details: Out of Scope Changes check
Explanation
The changes support the ClickUp provider or the shared infrastructure it uses:
Jira request helpers (withJiraDeadline, Jira request queue, JiraCancellableRequests) moved to shared network modules (request-deadline.ts, request-concurrency-queue.ts, cancellable-requests.ts). The PR discloses this move and the resulting change that Jira no longer shares request slots. The shared modules are used by the ClickUp request path.
The composer link change clears reuse-branch state for Jira links too, because the hook is shared (account-backed-work-item-link.ts). The PR discloses this effect.
Settings migration (task-provider-visibility-migration.ts, task-provider-visibility-settings.ts) adds ClickUp to visible task providers once. This is needed for the new provider.
Task-provider generalizations (TaskProvider union, attachment identity, workspace naming, Cmd-J, composer, task page, mobile task paths, linked-work-item capability) add a ClickUp branch beside the existing Linear and Jira branches.
Mobile test-support fixtures were edited for ClickUp state. They support the ClickUp mobile path.
The Jira-specific capability check was replaced by assertLinkedWorkItemContextCapability. This supports both Jira and ClickUp.
No change was found that is unrelated to ClickUp support. Uncertainty: this check relies on file summaries, not on a full diff read of each file. The mobile golden recordings are unchanged; this is disclosed and is not a coding requirement.
Full details: Description check
Explanation
The description follows the repository template closely. It has ELI5, What Changed (before/after plus mechanism), Why (with alternatives such as personal token over OAuth), Linked Issues (#14622, #10389), Visual Proof (six screenshots plus before note), Testing (manual Windows 11 testing against a real ClickUp Workspace, automated checks, and untested platforms), Performance (concrete reasoning), Risk (Medium, with saved-data impact and back-out steps), AI Disclosure, Review guidance, the upstream boundary checkbox, and the checklist. Minor gaps: the Visual Proof section gives no before screenshot, only a text description. The Linked Issue section uses 'Fixes' for two issues, which is acceptable. The Testing section mentions that the full pnpm test suite was not run locally, and the checklist marks pnpm test as passing, which is slightly inconsistent. Otherwise the description is substantive and specific.
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 6
Note
Due to the large number of review comments, Critical, Major severity comments were prioritized as inline comments.
Minor comments: 25
src/shared/clickup/clickup-task-reference.ts: 2
7-7: Minor · Functional Correctness · Quick win
Accept underscores in custom task ID prefixes.
ClickUp permits underscores in custom task ID prefixes. This pattern rejects ENG_API-7, so https://app.clickup.com/t/9001/ENG_API-7 returns null and cannot be pasted as a workspace attachment. (help.clickup.com)
Permit the documented prefix characters. Add a regression case that preserves workspaceId: '9001' and uppercase normalization.
6-6: Minor · Functional Correctness · Quick win
Accept supported short task IDs.
ClickUp API v2 documents 9hz as a task ID. The six-character minimum rejects this ID and its task URL. The supplied attachment-input consumer therefore cannot link that task by URL. (developer.clickup.com)
Remove the unsupported minimum. Add parser tests for short raw IDs and their URLs, while retaining invalid-token and foreign-host rejection.
src/main/clickup/clickup-task-queries.ts: 1
239-242: Minor · Functional Correctness · Quick win
Use the last comment as the pagination cursor.
ClickUp requires start and start_id from the last comment in the response. This reduction keeps the first comment when timestamps are equal. The next request then overlaps the current page and wastes the four-page budget. With 100 comments sharing a timestamp, the documented cursor behavior yields only 28 distinct comments. (developer.clickup.com)
Use the last response comment for both cursor fields. This also preserves pagination when timestamps differ.
src/main/clickup/clickup-account-store.ts: 1
152-152: Minor · Security & Privacy · Quick win
Propagate token-file removal failures so disconnect does not report success.
deleteToken ignores every unlink error, not only a missing file. If the removal fails with EACCES or EPERM, disconnect still clears the account state and resolves. The encrypted token then stays on disk after a successful disconnect. The ClickUp API path does not reuse that token: ***REDACTED_SECRET_ASSIGNMENT*** returns null once the viewer is cleared, and reconnecting replaces the file through saveToken. A retained credential still contradicts the disconnect action. Tolerate only a missing file, and surface other failures.
89-91: Minor · Stability & Availability · Quick win
Do not convert an interrupted error-body read into a credential rejection.
When the request deadline or the caller's signal aborts while toClickUpApiError reads a 401 body, the catch at line 89 returns a 401 with a null code. isClickUpAuthError treats that as a rejected credential, and withClickUpContext clears the stored token. A valid token can be lost this way when the 401 is a Workspace-authorization response whose body was not read. The user must then reconnect ClickUp.
Propagate an interruption from the body read so that the caller handles it as cancellation or timeout. Return a null-code 401 only when the body was read and contained no ECODE, or when the body is non-JSON on a complete read.
Remove an existing task entry when a forced read returns null.
If a cached task is deleted or access is removed, a forced read returns null. This callback leaves the previous entry intact. A subsequent normal read can return that task until its original 60-second TTL expires.
Delete clickupTaskCache[key] through an immutable update when entry.data is null. Keep the current non-null storage path.
179-180: Minor · Functional Correctness · Quick win
Clear connection state after disconnect succeeds.
If api.disconnect() succeeds but api.status() rejects, the action exits before it clears connected state or task caches. The credential is already disconnected, but the renderer still holds the previous connection.
After disconnect succeeds, apply DISCONNECTED_CLICKUP_STATUS and clear caches if the generation is current. Treat the follow-up status read as optional reconciliation.
20-20: Minor · Functional Correctness · Heavy lift
Scope the optimistic status patch and its rollback to the source context.
patchCachedClickUpTask matches cached tasks by task.id only. Cache keys include the source scope (clickupTaskCacheKey and clickupListCacheKey in clickup-read-coordination.ts), so the same task ID from two source contexts can have two live entries. A status change for one context then also changes the other context's cached status. The rollback path can restore a status the same way and overwrite the other context's value.
Pass the write action's sourceContext into the patch helper. Patch only entries whose cache key belongs to that scope. Apply the same restriction to the rollback. For list pages, match the scope prefix of the key, not the filter or page parameters.
120-122: Minor · Functional Correctness · Quick win
Keep the selected ClickUp mode while connection status is pending.
If storedMode is clickup and the source context changes, the connection hook returns status: null until the new read settles. This filter removes ClickUp. Lines 129-139 then change the selected mode to smart. A successful connection read does not restore the selection.
Preserve the selected ClickUp mode while clickupConnection.loaded is false, as the existing logic does for pending Linear status. Keep the fallback for a settled disconnect or error.
src/shared/new-workspace/workspace-source.ts: 1
180-180: Minor · Functional Correctness · Quick win
Keep a task's custom ID in its workspace and branch name.
buildClickUpWorkspaceSource accepts only id, name, and url, and sets clickupIdentifier to task.id. A task with a customId (for example ENG-7) therefore gets the label CU-<id>. The PR states that custom IDs remain unchanged, and the naming path already keeps hyphenated identifiers bare.
Pass the task's customId into the identifier when it is set, so the workspace and branch names use it. Keep the CU-<id> label for tasks where customId is null.
117-119: Minor · Functional Correctness · Quick win
Limit Enter submission to the token input.
If a token is present and the user presses Enter on Cancel, this handler prevents the button's normal action and calls handleConnect(). Enter on the ClickUp settings link also submits the token instead of opening the link.
Use a form onSubmit handler with a submit button, or restrict this handler to the token input. Keep Cancel as a non-submit button.
125-126: Minor · Functional Correctness · Quick win
Reject credentialed URLs in the ClickUp URL check.
isClickUpTaskUrl accepts a ClickUp URL that contains credentials, such as https://user:***REDACTED_URI_PASSWORD***@app.clickup.com/t/86abc123. The attachment branch then calls parseWorkspaceReferenceUrl, which rejects credentials and throws. The predicate and the parser disagree for this input, and the branch can throw instead of returning null. Reject credential-bearing URLs in referenceFromUrl, so both paths return null for them.
Suggested fix
try {
url = new URL(input)
} catch {
return null
}
+ if (url.username || url.password) {+ return null+ }
if (url.hostname !== 'clickup.com' && !url.hostname.endsWith('.clickup.com')) {
159-159: Minor · Functional Correctness · Quick win
Match ClickUp custom identifiers against task.customId as well as task.id.
For a ClickUp reference that uses a custom ID, the identifier holds the custom ID (for example ENG-7). The fetched task returns its raw id and stores the custom ID in customId. The comparison on this line checks only task.id, so it rejects the task. The sidebar then shows no title or status for that reference.
Compare the identifier against task.customId in addition to task.id. Keep the raw-ID comparison and keep the URL check. Confirm that the URL check also accepts the custom-ID task URL.
146-146: Minor · Functional Correctness · Quick win
Move focus into the task sheet when it opens.
The onOpenAutoFocus handler cancels Radix's initial focus move. The shared Sheet wrapper and overlay focus helpers do not move focus into the sheet. The ClickUp body has no autoFocus target. After the sheet opens, keyboard focus stays on the task row behind it. Keyboard users must tab through background content before they reach the sheet.
Keep the default initial focus, or focus an element inside the sheet on open.
If the cached task belongs to list B while the original task belongs to list A, displayed shows list B's task. This selector and the request at Line 87 still use list A. The status menu then offers the wrong list's statuses.
Use displayed.list.id for both the cache lookup and the status request, including the effect dependency.
155-155: Minor · Data Integrity & Integration · Quick win
Refresh can leave later list pages stale.
Refresh forces only page zero. A later "load more" request for page one does not force, so it can return a cached page one that was fetched before the refresh. This applies while that cache entry is within its 60-second TTL. The result can show outdated tasks and can shift offset pagination against the refreshed page zero.
After a refresh, later-page loads must not serve cache entries fetched before that refresh. The fix can invalidate the cached later pages for the list key, or it can force those loads once after a refresh. Either way, page one must be refetched after a refresh before it is shown.
56-56: Minor · Data Integrity & Integration · Quick win
Start workspace can link a task to the wrong runtime after a focused-host change.
The detail sheet displays the source context it was opened with, but Start workspace binds to the live clickupTaskSourceContext. If the focused execution host changes while the detail stays open, a task loaded from the previous runtime can be linked to the new runtime's source. Nothing closes the ClickUp detail on a host change. Escape does not close it either, because the sheet owns that key.
Choose one behavior. Either bind Start workspace from the detail to the context the detail was opened with, or close the detail when the focused host changes. Either way, the linked source must match the runtime that returned the task.
Scope the ClickUp Escape guard to an active ClickUp detail.
The guard treats any stored selectedClickUpTask as an open detail. Provider switching from the source bar clears that value. A narrower path remains. If ClickUp stops being a visible provider while its detail is open, taskSource moves to another provider but openClickUpTask stays set. The guard then blocks the Escape handler for the active list, and Escape does not close the Tasks page.
Limit the guard to the ClickUp provider, and include taskSource in the effect dependencies if they do not already list it:
26825-26825: Minor · Functional Correctness · Quick win
Qualify the empty search state. The scan covers only recent tasks.
Text search examines at most five pages of recently updated tasks (SEARCH_PAGE_LIMIT = 5). When no match appears in those pages, the search returns an empty result and reports no further pages. The UI then shows "No ClickUp tasks match this search", which implies that no task in the Workspace matches. A matching task on page six or later is not checked, and the message gives no sign of that limit.
The empty state must not claim that no task matches when the scan is bounded. Either state the search scope in the message, or report that results are incomplete and offer a way to continue. The current message in src/renderer/src/i18n/locales/en.json at line 26825 does not meet this requirement.
122-126: Minor · Functional Correctness · Quick win
Scope the ClickUp comment update to the task that received the comment.
The success updater appends the new comment to any open ClickUp detail payload. If the user opens another ClickUp task while the write is pending, the comment for the first task appears in the second task's detail view. The server stores the comment on the correct task, but the local view can show it under the wrong task until the detail reloads.
The in-flight lock disables some controls. It does not block task selection, so this path remains reachable. Apply the update only when the current payload is the same task as item. Compare the payload's task identity with item.source.id, and leave the payload unchanged otherwise.
Ignore workspace-switch replies from earlier selections.
The picker closes after each selection, so a user can choose another Workspace while a previous clickup.selectWorkspace request is still pending. The host applies the writes in order. Its status read runs after the lock is released, so the reply for an earlier selection can report a Workspace that is no longer current. If that stale reply arrives after the newer one, setClickUpConnection(next) restores the earlier Workspace in the picker while the desktop keeps the newer one. The stale reply also clears the item list.
Record a sequence number for each workspace selection. Apply a reply, including its setItems([]) and setClickUpConnection(next) calls, only when its sequence matches the latest selection. Ignore other replies.
359-359: Minor · Functional Correctness · Quick win
Do not map a failed ClickUp status request to the update-host state.
On a host that advertises clickup.v1, a rejected status request reaches readClickUpConnectionProbeReply(null). That path returns the host-update-required connection. The hydration callback then replaces the working ClickUp connection with it, and the list surface shows "Update Orca on this host" guidance. The host does not need an update. The guidance is wrong, and the ClickUp controls are hidden until a later read succeeds.
Make a request failure distinct from a host that cannot report ClickUp. The null from .catch(() => null) currently means both, and the test at clickup-mobile-connection.test.ts:61-64 relies on that meaning. Choose the failure state and the way the callback keeps the last good connection, then apply the same rule to the hydration callback.
18-18: Minor · Data Integrity & Integration · Quick win
Guard task creation by provider.
After reconnecting, a retained Linear creation sheet can reopen with ClickUp selected if the host default changed. Submitting it can create a Linear issue instead of a ClickUp task.
Restrict createTask to supported providers, and hide or dismiss the sheet for unsupported providers.
skill-guides/orca-clickup.md: 1
71-71: Minor · Functional Correctness · Quick win
Confirm the status outcome before posting the completion comment.
Step 2 requires the actual status outcome, but Step 3 performs the status change afterward. An agent cannot report a confirmed move at Step 2. If the later move fails, the comment can contain an incorrect outcome.
Move and verify the status before posting the comment. If no move is appropriate, report that the status remains unchanged.
src/cli/clickup/clickup-write.ts: 1
29-31: Minor · Data Integrity & Integration · Quick win
Classify a malformed runtime reply after a ClickUp write as unverified.
When the runtime returns a frame that fails validation, callClickUpWrite receives invalid_runtime_response. That code is not in UNVERIFIED_CODES, so the error is rethrown unchanged. The runtime may already have applied the write. The user then gets no "verify in ClickUp before retrying" guidance, and a retry can duplicate a comment or repeat a status change.
Reply frames exist only after the request is sent. This code therefore has the same post-send meaning as runtime_timeout. Adding it to the list covers both addComment and setStatus. A malformed ClickUp reply already returns clickup_write_failed with the warning, so this gap affects only runtime frames.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
…capability
- Only ClickUp "Token not found" codes (OAUTH_019/021/025/077) and a missing
header (OAUTH_017) revoke the stored token; "Team not authorized" codes keep it.
- ClickUp gets its own request pool, a per-request and per-operation deadline that
settles before the renderer RPC timeout (connect included), a capped 429 retry,
request-id search cancellation (IPC, preload, web no-op) and a short-lived scanned
page cache with an epoch guard and a fresh flag for forced refreshes.
- New clickup.v1 runtime capability gates ClickUp on older remote runtimes
(linked items, attachments, connection, Tasks page, Settings, mobile).
- Truthful connect outcome when the token saved but the status read failed.
- Task URLs from the API accepted only on https clickup.com; mobile opens https only.
- CU- prefix only on raw task ids; page index validated 0..1000; unused task
name update removed; shared color and closed-status helpers.
- Jira deadline, queue and cancellation helpers moved to shared modules unchanged.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ile view on clickup.v1
- A timed-out comment or status write says ClickUp didn't confirm in time and asks
to check the task before retrying, so a slow but applied write isn't duplicated.
- Queue-wait abort test now exercises the operation deadline.
- Mobile kept view skips ClickUp when the landed host status lacks clickup.v1.
- An unreachable host during the capability probe keeps the update-required flag.
- Cmd-J skips ClickUp search on runtimes without clickup.v1, using the cached verdict.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ature group
Moves visibleTaskProviders and its Jira/ClickUp one-shot guards into
task-provider-visibility-settings.ts, composed into GlobalSettingsBase like the
other feature-owned groups, so the settings files stay under the line limit after
rebasing on main. Deadline abort tests use one fake-clock delay helper.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
- Bound proxy setup by the request deadline so a stalled setup releases its slot.
- Discard account refreshes that raced a disconnect or reconnect; keep the
original auth error when a revoked token can't be deleted.
- Scope list/search to the Workspace the cache key names; the host rejects a
mismatch with WORKSPACE_CHANGED and the composer re-reads.
- Never revoke on an unread 401 body; keep 404/403 mapping on other read failures.
- Comment pagination uses the last comment as cursor.
- Task references: underscores in custom-id prefixes, short raw ids,
credentialed URLs rejected; bare search words without a digit stay text.
- Custom ids name the workspace and branch; the sidebar reads by the stored
URL and checks the Workspace.
- Renderer: status-read generations on connect/test/select/disconnect,
disconnect clears even if the status read fails, optimistic status patch
across every view of the same host and Workspace with compare-and-restore,
forced-null reads drop the cache, refresh refetches later pages once.
- Tasks page: form submit in the token dialog, focus into the detail sheet,
status options from the displayed task's list, Start workspace bound to the
detail's host, Escape guard scoped to ClickUp, empty-search copy states the
scan scope.
- Mobile: replay fixtures restored, comment and workspace-pick replies scoped,
a failed status read keeps the last connection or shows "couldn't reach the
host", loading state before the first read, create guarded by provider.
- CLI: a malformed runtime reply after a write is reported as unverified.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@coderabbitai thanks for the review. All 31 findings were checked against the code and fixed in 59583c4 (rebased on current main); the 6 major ones are answered in their threads. The 25 minor ones:
Task references: underscores in custom-id prefixes; raw ids down to 3 characters (9hz). In search, a bare word without a digit stays a text search, so typing fix doesn't spend a GET /task/fix. Credential-bearing URLs are rejected, so the predicate and the parser agree.
Comments: pagination takes start/start_id from the last comment.
Disconnect:deleteToken tolerates only ENOENT, and a failed delete makes disconnect() fail. On the 401-revoked path a failed delete is logged and the auth error still surfaces.
Error bodies: an unread 401 body (interrupted, aborted or over the cap) no longer revokes the token. Other statuses keep their mapping, so 404/403 still read as unavailable.
Renderer store: a forced read returning null drops the cached task. Disconnect clears state even if the follow-up status read fails. The optimistic status patch covers every view of the same host and Workspace (so the sidebar follows the Tasks page), and rollback restores only entries that still hold the optimistic value. Workspace keys are encoded, so no id can cross another Workspace's prefix.
Composer: the stored ClickUp mode is kept while the connection is loading.
Custom ids: they now name the workspace and branch (ENG-7). The sidebar reads the linked task by its stored URL and checks the Workspace, so a host switch or a same custom id in another Workspace can't mislabel it.
Tasks page:
the token dialog is a form with a submit button, so Enter on Cancel or the link no longer connects;
focus moves into the detail sheet;
status options come from the displayed task's list;
after a refresh, later pages are refetched once;
Start workspace from the detail binds to the host the detail was opened from;
the Escape guard is scoped to ClickUp;
the empty-search copy says only recently updated tasks were searched (11 locales).
Mobile:
comment and Workspace-pick replies are scoped to their task and latest pick;
a failed status read keeps the last good connection, or shows a new "couldn't reach the host" state with Check again, instead of "update the host";
a loading state shows before the first read;
task creation is guarded by provider.
Skill guide: status is moved and verified before the completion comment.
CLI:invalid_runtime_response after a write is reported as unverified.
Each behavior change has a regression test that fails without its fix, except the UI-only wiring. Those were checked in the dev app against a real ClickUp Workspace: focus, Escape, Enter on Cancel, status change reflected in the list, comment. pnpm check:changed passes (47/47).
Left as is: errors from the main process (timeouts, rate limit, Workspace changed) are English-only, like the existing ClickUp error messages. Mapping ClickUp error codes to localized copy fits better as a follow-up across all of them.
Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 14
Caution
Some comments are outside the diff and can’t be posted inline due to GitHub limitations.
⚠️ Outside diff range comments (1)
Minor · Validate the ClickUp identifier before proving the… · workspace-reference-identity.ts:193-195
src/shared/workspace-attachments/workspace-reference-identity.ts:193-195 Minor · Data Integrity & Integration · Quick win
Validate the ClickUp identifier before proving the identity.
The new ClickUp parser omits identifier and sets number to 0. This condition therefore checks only 0 === 0.
For example, a reference with clickupIdentifier: '86different' and URL https://app.clickup.com/t/86abc12de receives the same proven identity as task 86abc12de. getWorkspaceReferenceIdentity then skips its identifier-bearing fallback.
For ClickUp, compare parsed.clickupIdentifier with getWorkspaceReferenceIdentifier(item) using exact equality. Return undefined when they differ. Keep matching references on the proven-identity path.
Review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: 1f76e904-d3e8-437b-8f76-caecc007e044
Commits
Reviewing files that changed from the base of the PR and between 337f3ae and 59583c4.
Files ignored due to path filters: 1
src/shared/rpc-contract/rpc-params-catalog.generated.ts is excluded by !**/*.generated.*
- connect writes account metadata before the token and restores the previous
metadata (or drops the token) when a write fails, so token and account stay paired
- getContext reads metadata and token in one account turn
- an unconfirmed comment POST tells the user to check the thread before retrying
- accept digit-leading custom-ID prefixes; ClickUp reference identity checks the identifier
- restore each cached copy's own status on rollback; status writes version
in-flight list, search and task reads
- drop stale load-more pages after a refresh; reset the token draft on owner change
- re-run URL lookups on Workspace change; resolve custom-ID URL queries to the task row
- clear branch reuse state when a task is linked
- mobile: custom-ID fallback name, quiet superseded refresh failures, no load-more while refreshing
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Full review of 59583c4 addressed in 9835853. Each inline thread has its own reply. The one finding outside the diff:
workspace-reference-identity.ts (ClickUp identity proven by 0 === 0). Fixed. For ClickUp, a stored reference only gets a proven identity when its identifier agrees with the URL:
For a raw-id URL, it is rejected only when the stored identifier parses as a different raw id. So 86different with /t/86abc12de is no longer proven. A stored custom id with the raw-id task URL (ENG-7 + /t/86abc123, which is what buildClickUpWorkspaceSource saves) still is, so references saved before this change keep their identity and dedupe key.
For a custom-id URL, the custom ids must match.
An empty identifier is not proven.
Tests cover all four cases.
After the fixes, an independent review pass found three more issues, which were also fixed:
the comment warning appeared even when the POST was never sent;
the identity rule could re-key references whose identifier the parser rejects;
a failed restore left the token and account mismatched (the token is now dropped).
Checks:
pnpm check:changed: 47/47.
Manual check against a real ClickUp Workspace in the dev build: open a task by URL, change its status (reflected in the list and in ClickUp), add a comment, Load more (98 → 189 rows), the token dialog clears its draft. The test task was deleted afterwards.
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
Minor comments: 1
src/main/clickup/client.ts: 1
114-115: Minor · Data Integrity & Integration · Poor tradeoff
Make a failed connect leave ClickUp readable as disconnected.
If the token save fails after the new account metadata is written, and both the metadata restore and the token delete also fail, the connect call rejects. The disk still holds token A with metadata B. getContext() then returns token A with B's viewer and Workspace, because getAccountState() checks only that a token exists. The mismatch survives a restart and remains until the user disconnects or reconnects.
After this failure, reads must report disconnected, as the restoreAccountState comment already intends. Choose one of these approaches: reject token and metadata pairs that do not belong together, or write the pair in one step. A successful token replacement must stay usable. Add a regression test that fails the token save, the metadata restore write, and the token delete, then asserts that reads report disconnected.
Review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: b888e501-9d69-4e80-9f73-f1afa38d3504
Commits
Reviewing files that changed from the base of the PR and between 59583c4 and 9835853.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
- token dialog: drop a pending connect after any owner change, including A -> B -> A
- URL source: a ClickUp identity without a Workspace id counts as unbound, using
the same helper as the read scope
- status writes: a page first cached with the old status during the write gets the
written status on success; a different status it holds is kept
- pin Date.now in the task-list test
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
A parent-driven close and reopen for the same owner now invalidates a connect
that was still in flight, like an owner change does.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This branch has not been deployed
No deployments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ELI5
Orca could pull tasks from GitHub, GitLab, Linear and Jira. Teams that plan in ClickUp had to copy task links by hand. This adds ClickUp as a task source: connect once with a personal API token, then browse, search and filter your ClickUp tasks inside Orca, change status, comment, and start a workspace from a task. The workspace and branch are named after the task, and the task link travels with the workspace.
What Changed
Before: the Tasks page, the new-workspace composer, Cmd-J, Settings and the
orcaCLI offered GitHub, GitLab, Linear and Jira. ClickUp was not available anywhere.After: ClickUp is a full provider next to Linear and Jira:
CU-<id> <title>for raw ids (custom ids such asENG-7stay bare, matching ClickUp's Git integration). The workspace storeslinkedWorkItem { provider: 'clickup', … }, so the sidebar and workspace references show the task.orca clickup status | task <id|custom-id|url> | list [--all] [--include-closed] [--status …] [--page n] | search "<q>" | comment add <id> --body|--body-file | status set <id> --to "<name>", plus anorca-clickupskill guide. Task text is marked untrusted for agents.clickup.*), routed by the resource owner like Jira. A newclickup.v1runtime capability gates ClickUp on older paired runtimes and phones, which then show "update the runtime" instead of failing.Mechanism: a main-process REST client for ClickUp API v2 (
src/main/clickup/) with the token encrypted through the existing integration credential storage, IPCclickup:*, preloadwindow.api.clickup, runtime RPC methods, a renderer store slice, and UI that reuses the Linear/Jira building blocks. ClickUp has no full-text task search API, so search does a direct lookup for ids, custom ids and URLs, then scans up to 5 pages of the user's tasks and matches locally, with a short main-side page cache.Why
ClickUp is one of the most requested task trackers (#14622, #10389). Following the Jira/Linear provider shape keeps one mental model for users and one code path for remote hosts, mobile and the CLI, instead of a ClickUp-only side door. A personal API token was chosen over OAuth because Orca has no ClickUp OAuth app; the token flow matches how Linear and Jira tokens work today.
Linked Issue
Fixes #14622
Fixes #10389
Visual Proof
Before: no ClickUp anywhere: the Tasks source switcher, Settings › Integrations, Settings › Task sources, the composer sources and Cmd-J list only GitHub, GitLab, Linear and Jira.
After (Windows, UI in Portuguese, which also shows the new strings localized; personal data blurred, the only task shown is the disposable test task):
CU-86bd5zy0u [teste Orca]…created from the task1. Tasks page, ClickUp tab with filters and search
2. Task detail
3. Start workspace: composer pre-filled with the ClickUp chip
4. Settings › Integrations: ClickUp card
5. Sidebar: workspace created from the task
6. Settings › Task sources: ClickUp ready
Testing
Validated on Windows 11 in the dev build against a real ClickUp Workspace, using disposable test tasks (deleted afterwards). Re-checked after each CodeRabbit round, most recently on 9dba59d and babc5eb: open a task by URL, status change reflected in the list and in ClickUp, comment add, Load more (98 → 189 rows), token dialog draft cleared on close.
utf-8,covid-19,ENG-7fall back to text search without errors), detail page header next to the window controls.cu-<id>-…created,linkedWorkItemstored withprovider: clickup, title and URL (checked withorca worktree list --json).status,task,list,search,comment add,status setagainst the same Workspace.Not tested on macOS/Linux, a real SSH remote or a physical phone; those paths go through the same runtime RPC and capability checks as Jira.
Automated:
pnpm check:changed: 47/47 checks pass (typecheck node/web/cli/mobile, lint, format, localization, ratchets, changed tests).pnpm build:desktoppasses on Windows (typecheck, desktop assets, web client projection, mobile web bundle verification).build:nativewas not run: this machine has no Rust toolchain for the Windows CLI launcher, which this PR doesn't touch.The full
pnpm testsuite was not run locally (machine memory); leaving it to CI.New unit tests cover the risky boundaries: token revocation by ClickUp error code (only "Token not found" codes revoke; "Team not authorized" keeps the token), deadline/abort mapping (queue wait, 429 sleep, fetch; user cancel passes through), scan-cache epoch guard, task URL sanitizing, page range, id/custom-id/URL parsing,
CU-labeling, response mapping, CLI status matching, settings migration (ClickUp shown once, never re-added after the user hides it).I manually tested these changes locally
Automated tests added/updated, or explained why not below
Every added test fails without this change and avoids the test anti-patterns
Performance
Nothing runs unless ClickUp is connected and its tab, composer source or Cmd-J is used. ClickUp has its own request pool (4 concurrent), a 20s per-request and 25s per-operation deadline (under the renderer's 30s RPC timeout), at most one 429 retry, request-id cancellation of superseded searches, and a 45s / 30-page main-side cache so typing doesn't rescan pages. Results are cached in the renderer store like Jira's. Jira no longer shares its request slots with anything else.
Risk
Level: Medium
~/.orca/clickup-token.encand~/.orca/clickup-account.json; newlinkedWorkItem.provider = 'clickup'on workspaces. Older builds reading a workspace linked to ClickUp ignore the unknown provider.clickup.v1; they show an update message instead of failing.AI Disclosure
Built with Claude Code (Claude Opus 5.5 orchestrating, Sonnet 5.5 subagents for implementation). Every change went through independent AI review passes, followed by fixes, and manual validation against a real ClickUp Workspace by the author.
Review
Suggested reading order:
src/shared/clickup/→src/main/clickup/(client, error mapping, queries, scan cache) → IPC/preload/runtime RPC →src/renderer/src/store/slices/clickup/→ Tasks page, Settings, composer, Cmd-J → CLI → mobile.Out of scope, on purpose:
docs/CLI reference pages: left for the docs owners, the skill guide documents the commands.WorkspaceAttachmentSearchhas no ClickUp tab (pasting a ClickUp URL works).Happy to split this into backend / desktop / mobile / CLI PRs if that's easier to review.
Agent skill upstream boundary
Notes
Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)