Skip to content

feat(clickup): add end-to-end issue tracker integration - #9495

Open
luizeof wants to merge 25 commits into
stablyai:mainfrom
luizeof:clickup-issues
Open

luizeof wants to merge 25 commits into
stablyai:mainfrom
luizeof:clickup-issues

Conversation

@luizeof

@luizeof luizeof commented Jul 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds end-to-end ClickUp issue-tracker support across the desktop app, paired mobile app, runtime/IPC, CLI, workspace linking, Smart Workspace, board status synchronization, localization, tests, documentation, and bundled agent skills.

The review follow-up hardens request timeouts, credential failures, task pagination, tag reconciliation, renderer loading states, cache isolation, stale async writes, CLI validation/output, checkout credential handling, and the worktree-creation API. The expanded follow-up adds strict ClickUp task URL parsing, mobile task/workspace parity, Linear-style operational skill guidance, and a complete integration/macOS testing guide.

Screenshots

Not applicable. The changes extend existing issue-tracker surfaces and use the repository design system, shadcn primitives, and canonical tokens.

Testing

  • pnpm lint — changed files pass focused linting; the full command currently stops on switch-exhaustiveness findings inherited from main.
  • pnpm typecheck
  • pnpm --dir mobile typecheck
  • pnpm test — 49 focused desktop/CLI/skill tests pass on the final head; the complete root suite has unrelated existing failures and was not used as a release gate.
  • Mobile test suite: 2,059 passed and 2 skipped; 55 ClickUp-focused tests were repeated on the final head.
  • pnpm build:mac — compilation and installer generation reach electron-builder, but the fork workflow attempts GitHub publishing and exits because GH_TOKEN is intentionally unavailable. The proposed non-publishing workflow adjustment requires explicit approval before implementation.
  • Added/updated focused tests for ClickUp client, task operations, IPC/RPC validation, CLI, Smart Workspace intent, board sync, renderer cache behavior, mobile providers/workspace creation, skill guidance, and named worktree creation options.
  • Skill generation/manifest checks, localization catalog/coverage checks, mobile formatting, and max-lines ratchet passed.

AI Review Report

  • Addressed every inline review thread and each actionable follow-up in the review bodies with a focused implementation or, for the local board-routing false positive, a clarifying compatibility test.
  • All 24 review threads are resolved, and every thread has a reply containing only the SHA of its related fix commit.
  • Each review-fix commit includes the related GitHub discussion URL in its commit body; duplicated findings share the same focused commit.
  • No blanket docstrings were added because repository guidance permits comments only for non-obvious constraints.
  • Cross-platform audit: no platform-specific shortcut, path-separator, or shell assumptions were introduced. ClickUp routing preserves local, macOS, Linux, Windows/WSL, SSH, remote-runtime, and relay scopes through existing runtime abstractions. The fork build runs on macos-15 and targets Apple Silicon and Intel.

Security Audit

  • The ClickUp token uses Electron safeStorage where available; the documented host-local fallback is permission-restricted to the current user when OS encryption is unavailable.
  • Credential decryption failures degrade to a disconnected state without exposing credential contents.
  • ClickUp network and local IPC calls have bounded timeouts.
  • The development macOS checkout sets persist-credentials: false.
  • The macOS workflow is restricted to luizeof/orca and creates unsigned, seven-day test artifacts only.

Notes

  • Documentation is available in docs/reference/clickup-integration.md and linked from the English and Portuguese readmes.
  • Canonical guidance lives in skill-guides/orca-clickup.md; generated skills/orca-clickup/SKILL.md, the embedded CLI guide, and skill manifests are synchronized and validated.
  • CLI task commands accept a plain task ID or an exact HTTPS app.clickup.com task URL and reject lookalike hosts.
  • Paired mobile supports connection-aware ClickUp task discovery, details/comments, external links, linked workspace creation, and Smart Workspace selection; editing and creation remain desktop capabilities as documented.
  • Latest upstream/main is included by merge commit ebc6003aa; generated catalogs were regenerated where needed, and the PR is currently mergeable with no conflicts.

ELI5

ClickUp becomes a full issue tracker in Orca: link tasks to workspaces, see board status, use it from desktop and mobile, and manage it from the CLI. You can treat ClickUp the same way you already treat other trackers.

Add ClickUp as a first-class task provider alongside Linear, including shared task models, encrypted Personal API token storage, workspace and list hierarchy discovery, task search and CRUD operations, comments, assignees, tags, priorities, statuses, and due dates.

Expose the integration through IPC, RPC, local and remote runtimes, preload APIs, the web client, and the orca clickup CLI. Persist ClickUp links in local, SSH, relay, and folder worktrees, and support task-aware worktree creation plus --current CLI operations.

Add the complete renderer experience: connection settings, provider visibility, task list and detail surfaces, task creation and editing, comments, Smart Workspace search, feature-wall detection, sidebar navigation, and Kanban status synchronization using the existing design system.

Bundle the ClickUp agent skill and CLI guide, migrate provider defaults without overriding deliberate opt-outs, and add localized copy for every supported locale.

Cover the client, RPC, CLI, persistence, provider migration, worktree metadata, SSH passthrough, renderer store, Smart Workspace, and board synchronization paths with tests.

Add a fork-scoped GitHub Actions workflow that builds and uploads unsigned Apple Silicon and Intel DMG/ZIP artifacts only from luizeof/orca:clickup-issues.
@luizeof
luizeof marked this pull request as ready for review July 20, 2026 01:30
@coderabbitai

coderabbitai Bot commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

This PR introduces ClickUp as a new task-tracker integration across the stack. It adds shared ClickUp types, a main-process API client with token/account storage, task/comment/workspace normalization and CRUD logic, IPC and RPC method surfaces, CLI commands (get/search/list/update/comment/create, worktree linking), and renderer UI including a task list/detail/create surface, settings integration card, composer/smart-name task selection, sidebar shortcuts, and a Zustand store slice with caching. Worktree and workspace metadata gain linkedClickUpTaskId/linkedClickUpWorkspaceId fields propagated through creation, merge, and RPC paths. Persistence migration defaults ClickUp visibility for existing profiles. A new skill guide and bundled documentation describe ClickUp CLI usage, with corresponding manifest/registry entries and tests. Localization strings were added across five locales, and a new macOS dev build GitHub Actions workflow was introduced.

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Description check ⚠️ Warning It covers summary and validation, but omits required template sections like Screenshots, AI Review Report, Security Audit, and Notes. Add the missing template sections, especially Screenshots, AI Review Report, Security Audit, Notes, and the testing checklist items.
Docstring Coverage ⚠️ Warning Docstring coverage is 1.05% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly matches the main change: adding ClickUp as a full task-tracker integration.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 14

🧹 Nitpick comments (9)
src/cli/clickup-format.ts (1)

46-63: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Maintain fixed column positions for predictable TSV parsing.

Using .filter(Boolean) drops missing values (like list.folder?.name), resulting in rows with variable column counts. This breaks column alignment and makes the TSV output difficult for automated tools and scripts to parse reliably by index.

Consider mapping missing values to empty strings instead to guarantee a strict 5-column structure.

♻️ Proposed refactor
 export function formatClickUpLists(lists: ClickUpList[]): string {
   if (lists.length === 0) {
     return 'No ClickUp Lists found.'
   }
   return lists
     .map((list) =>
       [
         list.id,
         list.workspaceName ?? list.workspaceId,
-        list.space?.name,
-        list.folder?.name,
+        list.space?.name ?? '',
+        list.folder?.name ?? '',
         list.name
       ]
-        .filter(Boolean)
         .join('\t')
     )
     .join('\n')
 }
src/main/clickup/tasks.ts (1)

32-48: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Duplicate client-selection helpers across tasks.ts and workspace-directory.ts. Both files independently define near-identical requiredClient/getRequiredClient and selectedClients functions that guard against zero connected clients with the same error message. Extracting a single shared helper into client.ts (e.g. requireClient(workspaceId) / requireClients(workspaceId)) would remove this duplication and keep the "Connect ClickUp and select a Workspace first." error message in one place.

  • src/main/clickup/tasks.ts#L32-L48: replace getRequiredClient/selectedClients with the shared helper exported from ./client.
  • src/main/clickup/workspace-directory.ts#L17-L33: replace requiredClient/selectedClients with the same shared helper.
src/renderer/src/components/ClickUpTaskPageSurface.tsx (1)

265-328: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Duplicated grid-column template.

The same grid-cols-[110px_minmax(0,2fr)_140px_140px_110px_64px] literal is repeated at lines 265, 282, and 317. Extract a shared constant so the header, skeleton, and row layouts can't drift out of sync.

♻️ Extract shared grid template
+const CLICKUP_TASK_ROW_GRID = 'grid-cols-[110px_minmax(0,2fr)_140px_140px_110px_64px]'
+
 export function ClickUpTaskPageSurface({ ... }) {
   ...
-        <div className="grid grid-cols-[110px_minmax(0,2fr)_140px_140px_110px_64px] gap-3 border-b border-border bg-muted/35 px-3 py-2 text-[10px] font-medium uppercase tracking-[0.16em] text-muted-foreground">
+        <div className={cn('grid gap-3 border-b border-border bg-muted/35 px-3 py-2 text-[10px] font-medium uppercase tracking-[0.16em] text-muted-foreground', CLICKUP_TASK_ROW_GRID)}>
src/renderer/src/lib/worktree-creation-flow.ts (1)

130-172: 📐 Maintainability & Code Quality | 🔵 Trivial | 🏗️ Heavy lift

Consider an options-object signature for createWorktree.

Given the growing positional-parameter list (now ~24 args), a single options object would eliminate the risk introduced by inserting bare undefined placeholders and make future provider linkage fields (like ClickUp) additive and self-documenting.

src/renderer/src/components/task-page-localized-options.tsx (1)

124-128: 📐 Maintainability & Code Quality | 🔵 Trivial

Semantic locale key breaks the file's hash-key convention.

Every neighboring entry in this same getSourceOptions array uses a 10-char hash key under auto.components.TaskPage.*; the new clickup entry uses a semantic key (clickupSource) instead. See consolidated comment for cross-file details.

Source: Learnings

src/renderer/src/components/settings/clickup-integration-card.tsx (3)

64-186: 📐 Maintainability & Code Quality | 🔵 Trivial

Locale keys use semantic naming instead of the established hash-based convention.

All new translate() calls in this card use auto.components.settings.clickup.<semanticName> keys instead of the auto.components.settings.<ComponentFile>.<10-char-hash> convention used by other settings components. See consolidated comment for cross-file scope.

Source: Learnings


70-74: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick win

Manual English pluralization won't localize correctly.

Appending a literal 's' via value1 bakes English pluralization rules into the translated string. Other locales (or even English edge cases with irregular plurals) can't express this correctly through a plain interpolation; i18next supports plural-aware keys (e.g. count option with _one/_other suffixes) for this.


1-1: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

ClickUp UI strings use semantic locale keys instead of the codebase's hash-based convention. All three sites add new translate() keys with readable names (clickup.connectedDescription, clickupLabel, clickupSource) while sibling entries in the same files/arrays use auto.components.<Dir>.<ComponentFile>.<10-char-hash> keys, breaking the established convention used by the locale-catalog bootstrap/sync tooling.

  • src/renderer/src/components/settings/clickup-integration-card.tsx#L64-186: rename all auto.components.settings.clickup.* keys to hash-based keys and regenerate via pnpm bootstrap:locale-catalog.
  • src/renderer/src/components/settings/TasksPane.tsx#L67-79: rename clickupLabel/clickupDescription to hash-based keys matching the other TASK_PROVIDER_OPTIONS/section entries in this file.
  • src/renderer/src/components/task-page-localized-options.tsx#L124-128: rename clickupSource to a hash-based key matching the other four entries in getSourceOptions.

Based on learnings, "use hash-based locale keys with translate('auto.components.

..<10-char-hash>', 'Default English text')... then run pnpm bootstrap:locale-catalog so translations propagate to es/ja/ko/zh."

Source: Learnings

src/renderer/src/components/settings/TasksPane.tsx (1)

67-79: 📐 Maintainability & Code Quality | 🔵 Trivial

Semantic locale keys diverge from this file's hash-key convention.

The new clickup entry's label/description use semantic keys (clickupLabel, clickupDescription) rather than the hash-based keys used by other TasksPane.tsx translate() calls. See consolidated comment for cross-file scope.

Source: Learnings


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 674d553d-a294-40d3-9553-a6fb2f5660e5

📥 Commits

Reviewing files that changed from the base of the PR and between e3721e8 and 4b13561.

📒 Files selected for processing (115)
  • .github/workflows/dev-macos-build.yml
  • config/scripts/generate-bundled-skill-guides.mjs
  • config/scripts/orca-clickup-skill-guidance.test.mjs
  • resources/skills/current-manifest.json
  • resources/skills/snapshot-registry.json
  • skill-guides/orca-clickup.md
  • skills/orca-clickup/SKILL.md
  • src/cli/bundled-skill-guides.ts
  • src/cli/clickup-format.ts
  • src/cli/dispatch.ts
  • src/cli/handlers/clickup.test.ts
  • src/cli/handlers/clickup.ts
  • src/cli/handlers/worktree-clickup-task-link.ts
  • src/cli/handlers/worktree.ts
  • src/cli/help.ts
  • src/cli/specs/clickup.ts
  • src/cli/specs/core.ts
  • src/cli/specs/index.ts
  • src/main/clickup/client.ts
  • src/main/clickup/connection-storage.ts
  • src/main/clickup/task-comments.ts
  • src/main/clickup/task-mapping.ts
  • src/main/clickup/tasks.test.ts
  • src/main/clickup/tasks.ts
  • src/main/clickup/workspace-directory.ts
  • src/main/codex-accounts/runtime-home-service.test.ts
  • src/main/codex-accounts/service.test.ts
  • src/main/ipc/clickup.ts
  • src/main/ipc/register-core-handlers.test.ts
  • src/main/ipc/register-core-handlers.ts
  • src/main/ipc/repos.ts
  • src/main/ipc/worktree-logic.test.ts
  • src/main/ipc/worktree-metadata-merge.ts
  • src/main/ipc/worktree-remote.ts
  • src/main/ipc/worktrees.ts
  • src/main/persistence.test.ts
  • src/main/persistence.ts
  • src/main/runtime/orca-runtime.test.ts
  • src/main/runtime/orca-runtime.ts
  • src/main/runtime/rpc/methods/automations.ts
  • src/main/runtime/rpc/methods/clickup.test.ts
  • src/main/runtime/rpc/methods/clickup.ts
  • src/main/runtime/rpc/methods/folder-workspace.ts
  • src/main/runtime/rpc/methods/index.ts
  • src/main/runtime/rpc/methods/worktree-schemas.ts
  • src/main/runtime/rpc/methods/worktree.ts
  • src/main/runtime/runtime-rpc.ts
  • src/main/ssh/ssh-remote-cli-host-passthrough.test.ts
  • src/preload/api-types.ts
  • src/preload/index.ts
  • src/renderer/src/components/ClickUpTaskDetailSheet.tsx
  • src/renderer/src/components/ClickUpTaskPageSurface.tsx
  • src/renderer/src/components/NewWorkspaceComposerCard.tsx
  • src/renderer/src/components/TaskPage.tsx
  • src/renderer/src/components/automations/automation-source-display.ts
  • src/renderer/src/components/automations/automation-target-availability.ts
  • src/renderer/src/components/clickup-api-token-dialog.tsx
  • src/renderer/src/components/clickup-create-task-dialog.tsx
  • src/renderer/src/components/clickup-task-page-model.ts
  • src/renderer/src/components/feature-wall/ConnectIntegrationsList.tsx
  • src/renderer/src/components/feature-wall/use-integration-connection-status.ts
  • src/renderer/src/components/icons/ClickUpIcon.tsx
  • src/renderer/src/components/new-workspace/SmartWorkspaceNameField.tsx
  • src/renderer/src/components/new-workspace/smart-workspace-localized-options.tsx
  • src/renderer/src/components/new-workspace/smart-workspace-source-results.test.ts
  • src/renderer/src/components/settings/IntegrationsPane.tsx
  • src/renderer/src/components/settings/TasksPane.tsx
  • src/renderer/src/components/settings/clickup-integration-card.tsx
  • src/renderer/src/components/settings/task-tracker-integration-cards.tsx
  • src/renderer/src/components/settings/use-integration-provider-status-refresh.ts
  • src/renderer/src/components/sidebar/SidebarTaskNavButton.tsx
  • src/renderer/src/components/sidebar/WorkspaceKanbanDrawer.tsx
  • src/renderer/src/components/sidebar/WorkspaceKanbanSettingsMenu.tsx
  • src/renderer/src/components/sidebar/folder-workspace-composer-helpers.ts
  • src/renderer/src/components/sidebar/workspace-board-clickup-status-sync.ts
  • src/renderer/src/components/sidebar/workspace-board-task-status-sync-request.ts
  • src/renderer/src/components/sidebar/workspace-board-task-status-sync.test.ts
  • src/renderer/src/components/sidebar/workspace-board-task-status-sync.ts
  • src/renderer/src/components/task-page-list-chrome-visibility.ts
  • src/renderer/src/components/task-page-localized-options.tsx
  • src/renderer/src/components/task-source-context-summary.ts
  • src/renderer/src/hooks/useComposerState.ts
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/zh.json
  • src/renderer/src/lib/pending-worktree-creation.ts
  • src/renderer/src/lib/worktree-creation-flow.ts
  • src/renderer/src/runtime/runtime-clickup-client.ts
  • src/renderer/src/store/index.ts
  • src/renderer/src/store/slices/clickup-task-cache-patch.ts
  • src/renderer/src/store/slices/clickup.test.ts
  • src/renderer/src/store/slices/clickup.ts
  • src/renderer/src/store/slices/diffComments.test.ts
  • src/renderer/src/store/slices/store-test-helpers.ts
  • src/renderer/src/store/slices/worktree-helpers.ts
  • src/renderer/src/store/slices/worktrees.ts
  • src/renderer/src/store/types.ts
  • src/renderer/src/web/web-preload-api.ts
  • src/shared/clickup-types.ts
  • src/shared/constants.ts
  • src/shared/folder-workspace-worktree.test.ts
  • src/shared/folder-workspace-worktree.ts
  • src/shared/folder-workspaces.ts
  • src/shared/integration-credential-errors.ts
  • src/shared/new-workspace/smart-workspace-command-value.ts
  • src/shared/new-workspace/smart-workspace-source-results.ts
  • src/shared/new-workspace/workspace-source.ts
  • src/shared/runtime-types.ts
  • src/shared/task-providers.test.ts
  • src/shared/task-providers.ts
  • src/shared/task-source-context.ts
  • src/shared/types.ts
  • src/shared/workspace-name.ts

Comment thread .github/workflows/dev-macos-build.yml Resolved
Comment thread src/main/clickup/client.ts Resolved
Comment thread src/main/clickup/client.ts Resolved
Comment thread src/main/clickup/tasks.ts Resolved
Comment thread src/main/clickup/tasks.ts Resolved
@coderabbitai

coderabbitai Bot commented Jul 20, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Note

Reviews paused

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.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

Adds end-to-end ClickUp integration, including API connectivity, task CRUD/search, comments, workspace discovery, IPC/RPC and CLI access, renderer task management, settings integration, caching, worktree linking, provider migrations, localization, skill documentation, and a macOS development build workflow.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 1.83% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title is concise and accurately summarizes the PR’s main change: adding end-to-end ClickUp issue-tracker integration.
Description check ✅ Passed The description includes all required sections and is sufficiently detailed, including testing, AI review, security, notes, and cross-platform coverage.

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 10

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
src/cli/help.ts (1)

212-215: 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Common Commands usage strings are stale vs. specs/core.ts.

specs/core.ts (lines 89, 141) now includes --clickup-task/--clickup-workspace in the worktree create/worktree set usage strings, but the corresponding lines here in ROOT_HELP_TEXT were not updated, so orca --help will omit the new flags for these two commands (unlike the existing --linear-issue flag, which is shown).

📝 Proposed fix
-  orca worktree create --name <name> [--repo <selector>|--project <id> [--host <host-id>]|--project-host-setup <id>] [--agent <id>] [--prompt <text>] [--setup run|skip|inherit] [--base-branch <ref>] [--issue <number>] [--linear-issue <identifier-or-url>] [--comment <text>] [--parent-worktree <selector>] [--no-parent] [--run-hooks] [--activate] [--json]
+  orca worktree create --name <name> [--repo <selector>|--project <id> [--host <host-id>]|--project-host-setup <id>] [--agent <id>] [--prompt <text>] [--setup run|skip|inherit] [--base-branch <ref>] [--issue <number>] [--linear-issue <identifier-or-url>] [--clickup-task <id-or-url>] [--clickup-workspace <id>] [--comment <text>] [--parent-worktree <selector>] [--no-parent] [--run-hooks] [--activate] [--json]
   ...
-  orca worktree set --worktree <selector> [--display-name <name>] [--issue <number|null>] [--linear-issue <identifier-or-url|null>] [--comment <text>] [--workspace-status <id>] [--parent-worktree <selector>|--no-parent] [--json]
+  orca worktree set --worktree <selector> [--display-name <name>] [--issue <number|null>] [--linear-issue <identifier-or-url|null>] [--clickup-task <id-or-url|null>] [--clickup-workspace <id>] [--comment <text>] [--workspace-status <id>] [--parent-worktree <selector>|--no-parent] [--json]
🧹 Nitpick comments (5)
src/cli/handlers/clickup.ts (1)

48-52: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Add a brief "why" comment for the env-var precedence.

ORCA_WORKTREE_ID is checked before falling back to resolveCurrentWorktreeSelector, mirroring the agent-shell rationale documented in worktree.ts (lines 224-226), but no comment explains it here.

As per path instructions: **/*.{ts,tsx,js,jsx}: "When code is driven by a design document or non-obvious constraint, add a brief one- or two-line comment explaining why the behavior is necessary."

Source: Path instructions

src/cli/handlers/clickup.test.ts (1)

1-107: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Tests accurately reflect handler behavior — priority mapping, worktree-linked task lookup, and create-task payload all check out.

Consider adding negative-path coverage (mutual exclusivity of task id and --current, unlinked-worktree error, invalid --priority/--filter/--due-date) given how much validation logic lives in resolveTaskTarget, getPriority, getDueDate, and getFilter.

src/main/runtime/rpc/methods/clickup.ts (1)

23-25: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Prefer Zod's .nullish() over union with z.null().

Using z.union([schema, z.null()]).optional() is equivalent to schema.nullish(), which is more concise and idiomatic in Zod.

  • src/main/runtime/rpc/methods/clickup.ts#L23-L25: refactor priority, dueDate, and timeEstimate to use .nullish().
  • src/main/runtime/rpc/methods/clickup.ts#L94-L94: refactor priority to use .nullish().
src/renderer/src/components/ClickUpTaskDetailSheet.tsx (1)

101-135: 🗄️ Data Integrity & Integration | 🔵 Trivial | ⚡ Quick win

Consider patching the store caches after a successful save.

handleSave refreshes the single-task cache via refreshTask({ force: true, ... }), but doesn't call the store's patchClickUpTask action, so other cached clickUpSearchCache/clickUpListCache entries containing the pre-edit task (e.g. the list view behind this sheet, or a different open list within the 60s TTL) keep showing stale data until they refetch.

♻️ Proposed addition
     const refreshed = await refreshTask(task.id, task.workspaceId, {
       force: true,
       sourceContext
     }).catch(() => null)
     setSaving(false)
     if (refreshed) {
+      useAppStore.getState().patchClickUpTask(task.id, refreshed, sourceContext)
       onTaskChanged(refreshed)
     }
src/renderer/src/components/settings/clickup-integration-card.tsx (1)

40-62: 🩺 Stability & Availability | 🔵 Trivial | ⚡ Quick win

ClickUp connection calls (testConnection, checkConnection, disconnect) have no client-side timeout.

If the underlying IPC/network call hangs, testing stays true indefinitely with no escape or error shown to the user.

Based on learnings, renderer IPC calls without an explicit timeout should be wrapped consistently (reusing the pattern from useCreateProjectDefaults.ts) rather than fixed ad hoc — applying that here would prevent indefinite spinner states.

Also applies to: 171-174

Source: Learnings


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 674d553d-a294-40d3-9553-a6fb2f5660e5

📥 Commits

Reviewing files that changed from the base of the PR and between e3721e8 and 4b13561.

📒 Files selected for processing (115)
  • .github/workflows/dev-macos-build.yml
  • config/scripts/generate-bundled-skill-guides.mjs
  • config/scripts/orca-clickup-skill-guidance.test.mjs
  • resources/skills/current-manifest.json
  • resources/skills/snapshot-registry.json
  • skill-guides/orca-clickup.md
  • skills/orca-clickup/SKILL.md
  • src/cli/bundled-skill-guides.ts
  • src/cli/clickup-format.ts
  • src/cli/dispatch.ts
  • src/cli/handlers/clickup.test.ts
  • src/cli/handlers/clickup.ts
  • src/cli/handlers/worktree-clickup-task-link.ts
  • src/cli/handlers/worktree.ts
  • src/cli/help.ts
  • src/cli/specs/clickup.ts
  • src/cli/specs/core.ts
  • src/cli/specs/index.ts
  • src/main/clickup/client.ts
  • src/main/clickup/connection-storage.ts
  • src/main/clickup/task-comments.ts
  • src/main/clickup/task-mapping.ts
  • src/main/clickup/tasks.test.ts
  • src/main/clickup/tasks.ts
  • src/main/clickup/workspace-directory.ts
  • src/main/codex-accounts/runtime-home-service.test.ts
  • src/main/codex-accounts/service.test.ts
  • src/main/ipc/clickup.ts
  • src/main/ipc/register-core-handlers.test.ts
  • src/main/ipc/register-core-handlers.ts
  • src/main/ipc/repos.ts
  • src/main/ipc/worktree-logic.test.ts
  • src/main/ipc/worktree-metadata-merge.ts
  • src/main/ipc/worktree-remote.ts
  • src/main/ipc/worktrees.ts
  • src/main/persistence.test.ts
  • src/main/persistence.ts
  • src/main/runtime/orca-runtime.test.ts
  • src/main/runtime/orca-runtime.ts
  • src/main/runtime/rpc/methods/automations.ts
  • src/main/runtime/rpc/methods/clickup.test.ts
  • src/main/runtime/rpc/methods/clickup.ts
  • src/main/runtime/rpc/methods/folder-workspace.ts
  • src/main/runtime/rpc/methods/index.ts
  • src/main/runtime/rpc/methods/worktree-schemas.ts
  • src/main/runtime/rpc/methods/worktree.ts
  • src/main/runtime/runtime-rpc.ts
  • src/main/ssh/ssh-remote-cli-host-passthrough.test.ts
  • src/preload/api-types.ts
  • src/preload/index.ts
  • src/renderer/src/components/ClickUpTaskDetailSheet.tsx
  • src/renderer/src/components/ClickUpTaskPageSurface.tsx
  • src/renderer/src/components/NewWorkspaceComposerCard.tsx
  • src/renderer/src/components/TaskPage.tsx
  • src/renderer/src/components/automations/automation-source-display.ts
  • src/renderer/src/components/automations/automation-target-availability.ts
  • src/renderer/src/components/clickup-api-token-dialog.tsx
  • src/renderer/src/components/clickup-create-task-dialog.tsx
  • src/renderer/src/components/clickup-task-page-model.ts
  • src/renderer/src/components/feature-wall/ConnectIntegrationsList.tsx
  • src/renderer/src/components/feature-wall/use-integration-connection-status.ts
  • src/renderer/src/components/icons/ClickUpIcon.tsx
  • src/renderer/src/components/new-workspace/SmartWorkspaceNameField.tsx
  • src/renderer/src/components/new-workspace/smart-workspace-localized-options.tsx
  • src/renderer/src/components/new-workspace/smart-workspace-source-results.test.ts
  • src/renderer/src/components/settings/IntegrationsPane.tsx
  • src/renderer/src/components/settings/TasksPane.tsx
  • src/renderer/src/components/settings/clickup-integration-card.tsx
  • src/renderer/src/components/settings/task-tracker-integration-cards.tsx
  • src/renderer/src/components/settings/use-integration-provider-status-refresh.ts
  • src/renderer/src/components/sidebar/SidebarTaskNavButton.tsx
  • src/renderer/src/components/sidebar/WorkspaceKanbanDrawer.tsx
  • src/renderer/src/components/sidebar/WorkspaceKanbanSettingsMenu.tsx
  • src/renderer/src/components/sidebar/folder-workspace-composer-helpers.ts
  • src/renderer/src/components/sidebar/workspace-board-clickup-status-sync.ts
  • src/renderer/src/components/sidebar/workspace-board-task-status-sync-request.ts
  • src/renderer/src/components/sidebar/workspace-board-task-status-sync.test.ts
  • src/renderer/src/components/sidebar/workspace-board-task-status-sync.ts
  • src/renderer/src/components/task-page-list-chrome-visibility.ts
  • src/renderer/src/components/task-page-localized-options.tsx
  • src/renderer/src/components/task-source-context-summary.ts
  • src/renderer/src/hooks/useComposerState.ts
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/zh.json
  • src/renderer/src/lib/pending-worktree-creation.ts
  • src/renderer/src/lib/worktree-creation-flow.ts
  • src/renderer/src/runtime/runtime-clickup-client.ts
  • src/renderer/src/store/index.ts
  • src/renderer/src/store/slices/clickup-task-cache-patch.ts
  • src/renderer/src/store/slices/clickup.test.ts
  • src/renderer/src/store/slices/clickup.ts
  • src/renderer/src/store/slices/diffComments.test.ts
  • src/renderer/src/store/slices/store-test-helpers.ts
  • src/renderer/src/store/slices/worktree-helpers.ts
  • src/renderer/src/store/slices/worktrees.ts
  • src/renderer/src/store/types.ts
  • src/renderer/src/web/web-preload-api.ts
  • src/shared/clickup-types.ts
  • src/shared/constants.ts
  • src/shared/folder-workspace-worktree.test.ts
  • src/shared/folder-workspace-worktree.ts
  • src/shared/folder-workspaces.ts
  • src/shared/integration-credential-errors.ts
  • src/shared/new-workspace/smart-workspace-command-value.ts
  • src/shared/new-workspace/smart-workspace-source-results.ts
  • src/shared/new-workspace/workspace-source.ts
  • src/shared/runtime-types.ts
  • src/shared/task-providers.test.ts
  • src/shared/task-providers.ts
  • src/shared/task-source-context.ts
  • src/shared/types.ts
  • src/shared/workspace-name.ts

Comment thread .github/workflows/dev-macos-build.yml Resolved
Comment thread src/cli/handlers/clickup.ts Resolved
Comment thread src/cli/handlers/clickup.ts Resolved
Comment thread src/main/clickup/client.ts Resolved
Comment thread src/main/clickup/tasks.ts Resolved
Comment thread src/main/ipc/clickup.ts Resolved
luizeof added 15 commits July 19, 2026 23:22
Apply a 30-second AbortSignal to ClickUp net.fetch calls so stalled requests release the concurrency slot. Treat token decryption failures as a disconnected state and cover both behaviors with focused tests.

Review comments:
- stablyai#9495 (comment)
- stablyai#9495 (comment)
- stablyai#9495 (comment)
Scan raw ClickUp pages until the requested client-side filter/search limit is satisfied, using the raw response size so normalization cannot terminate pagination early. Run every tag mutation with allSettled and report the exact failed operations. Centralize required-client selection shared by task and workspace modules.

Review comments:
- stablyai#9495 (comment)
- stablyai#9495 (comment)
- stablyai#9495 (comment)
- stablyai#9495 (review)
Reject malformed priority, due-date, and time-estimate values before local task creation reaches ClickUp. Keep the equivalent RPC schemas concise with nullish fields and cover invalid IPC payloads.

Review comments:
- stablyai#9495 (comment)
- stablyai#9495 (comment)
- stablyai#9495 (review)
Use the shared Textarea primitive for task editing, always release comment/test loading states after rejected requests, and patch known task fields before the forced refresh. Force the task cache once per refresh nonce instead of permanently bypassing it. Localize connection status and singular/plural Workspace copy, with catalog parity across locales.

Review comments:
- stablyai#9495 (comment)
- stablyai#9495 (comment)
- stablyai#9495 (comment)
- stablyai#9495 (comment)
- stablyai#9495 (comment)
Apply the same 15-60 second operation-specific limits to local window.api ClickUp calls that remote runtime RPC calls already use, preventing UI actions from waiting indefinitely on a stalled IPC request.

Review comment:
- stablyai#9495 (comment)
Prefix local-runtime cache entries with an explicit sentinel so unscoped patches cannot mutate task-source caches. Ignore search/list writes that finish after a connection or Workspace mutation, refresh the status context key on Workspace selection, and extract cache policy to keep the slice within the line limit. Cover local-versus-explicit scope isolation and stale read races.

Review comments:
- stablyai#9495 (comment)
- stablyai#9495 (comment)
- stablyai#9495 (comment)
- stablyai#9495 (comment)
Document and verify that omitted runtime settings intentionally select the local runtime for ClickUp board synchronization. Returning early for undefined settings, as suggested by the review, would disable the valid local path.

Review comment:
- stablyai#9495 (comment)
Extend Smart Workspace source intent with ClickUp and prioritize the matching ClickUp row when the picker is in ClickUp mode. Add a resolver regression test so Enter cannot fall back to the typed-name row for an explicit ClickUp lookup.

Review comment:
- stablyai#9495 (comment)
Set persist-credentials to false on the development macOS checkout so the workflow token is not written into local Git configuration or carried into build artifacts.

Review comments:
- stablyai#9495 (comment)
- stablyai#9495 (comment)
Normalize list filters case-insensitively, use a comment-specific success message, preserve all five TSV destination columns, and validate real calendar dates. Document launcher worktree-ID precedence and add negative coverage for selector conflicts, missing links, filters, priorities, and due dates.

Review comments:
- stablyai#9495 (comment)
- stablyai#9495 (comment)
- stablyai#9495 (review)
- stablyai#9495 (review)
Merge upstream/main into clickup-issues without rewriting the review-fix commits. Resolve the five generated locale catalog conflicts by retaining the current main catalogs and regenerating all ClickUp and upstream keys from the merged source, preserving parity across en, es, ja, ko, and zh.

Validation:
- pnpm typecheck
- 54 focused ClickUp/CLI/board/cache tests
- localization catalog and coverage checks
- max-lines ratchet
Introduce CreateWorktreeOptions and migrate every renderer caller and affected assertion to named fields. This removes the fragile 28-argument contract, makes provider metadata explicit, and preserves local, SSH, WSL, runtime, automation, and ClickUp creation paths.

Addresses review: stablyai#9495 (review)
Replace semantic ClickUp-only keys with deterministic 10-character catalog keys alongside their neighboring components. Pass count through singular and plural workspace descriptions, migrate every locale catalog, and remove the superseded entries.

Addresses review: stablyai#9495 (review)
Add --clickup-task and --clickup-workspace to the root Common Commands examples for both worktree create and worktree set, including the nullable unlink form. Extend root-help coverage so the summary cannot drift from the command specs again.

Addresses review: stablyai#9495 (review)
After the optimistic task patch, write the forced refresh result back through patchClickUpTask before notifying the detail-sheet owner. This keeps list, board, detail, and source-scoped caches aligned with server-normalized fields after a successful save.

Addresses review: stablyai#9495 (review)
@luizeof

luizeof commented Jul 20, 2026 •

Copy link
Copy Markdown
Contributor Author

Follow-up for review 4731841310:

  • b5508cb3c replaces the fragile positional createWorktree signature with named CreateWorktreeOptions and migrates every renderer caller/test.
  • 7e9f9507f makes the migrated mock-call assertions compatible with the native TypeScript compiler used by the macOS build runner.
  • b593fae23 replaces the ClickUp semantic locale keys with deterministic 10-character keys, removes superseded catalog entries, and passes count through the workspace singular/plural copy.

Earlier TSV, client-helper, and grid-template findings from this review remain covered by 9b0f9fd44, 039f63637, and edc69cf54, respectively.

@luizeof

luizeof commented Jul 20, 2026

Copy link
Copy Markdown
Contributor Author

Follow-up for review 4731869444:

  • b9bea5026 adds the ClickUp task/workspace flags to the root CLI Common Commands help and locks them in with assertions.
  • 3249fda77 writes the authoritative refreshed ClickUp task through patchClickUpTask, keeping all source-scoped task caches synchronized after save.

Earlier environment rationale, negative CLI cases, nullable Zod fields, and local timeout findings from this review remain covered by 9b0f9fd44, d4bf4b3b6, and d299071a8.

@luizeof

luizeof commented Jul 20, 2026

Copy link
Copy Markdown
Contributor Author

Follow-up for comment 5018153133: the PR description now follows the repository template with Summary, Screenshots, Testing, AI Review Report, Security Audit, and Notes. No blanket docstrings were added because the repository AGENTS.md requires brief comments only for non-obvious reasons and constraints; adding coverage-only comments would conflict with that project rule.

@luizeof

luizeof commented Jul 20, 2026

Copy link
Copy Markdown
Contributor Author

Follow-up for comment 5018226331: the AI Review Report now explicitly records the macOS, Linux, Windows/WSL, SSH, remote-runtime, keyboard-label, path, shell, and Electron compatibility audit. No blanket docstrings were added because the repository AGENTS.md requires comments to document only a non-obvious reason or constraint.

luizeof added 5 commits July 19, 2026 23:58
Cast the Vitest mock call records to an explicit one-argument tuple before inspecting CreateWorktreeOptions. This keeps the refactor assertions compatible with the native TypeScript compiler used by the macOS packaging runner.

Addresses review: stablyai#9495 (review)

Fixes CI run: https://github.com/luizeof/orca/actions/runs/29715706025
Centralize ClickUp task reference parsing so task reads and mutations match worktree link behavior. Accept only plain task IDs or HTTPS app.clickup.com task URLs, normalize URLs before RPC calls, reject lookalike hosts, and expose the accepted id-or-url form in command help. Cover valid URLs, slugged URLs, malformed references, malicious hosts, and mutation dispatch.
Document ClickUp connection scoping and credential storage, desktop/mobile task workflows, CLI discovery and mutation commands, linked workspace behavior, SSH/runtime considerations, and troubleshooting. Describe the fork-only unsigned macOS workflow and local checkout commands, then link the guide from the English and Portuguese readmes.
Bring the ClickUp skill in line with the repository's Linear-style operational guidance. Clarify the CLI namespace, runtime-scoped credentials across local, WSL, SSH, and relay hosts, task URL support, exact non-regressive status selection, single-comment completion behavior, and safe handling of uncertain writes. Regenerate the distributed skill, embedded CLI guide, and bundle manifests, with contract tests for the new safety boundaries.
Expose ClickUp as a runtime-scoped mobile Tasks provider with connection-aware home shortcuts, search and assigned-task loading, task details and comments, provider branding, external links, and linked workspace creation. Add ClickUp to Smart Workspace discovery and fan-out, preserve task and Workspace IDs through create RPCs, and reject incomplete linked sources before mutation. Extract task item models and source-selection dispatch into domain-named modules so the existing max-lines budgets remain unchanged. Cover provider availability, task mapping, Smart mode fan-out, composer linking, workspace parameters, and invalid identity handling; update the integration guide to distinguish desktop editing from paired-mobile read/start behavior.
@AmethystLiang

Copy link
Copy Markdown
Contributor

thank you so much for this PR! we're working on refactoring the issue tracker modules this week, so will help land the PR once that's in!

@luizeof

luizeof commented Jul 26, 2026

Copy link
Copy Markdown
Contributor Author

thank you so much for this PR! we're working on refactoring the issue tracker modules this week, so will help land the PR once that's in!

Hello, is there still interest in this PR?

@nwparker nwparker added the enhancement New feature or request label Jul 27, 2026
@luizeof

luizeof commented Aug 9, 2026

Copy link
Copy Markdown
Contributor Author

thank you so much for this PR! we're working on refactoring the issue tracker modules this week, so will help land the PR once that's in!

Hello, is there still interest in this PR?

@B-Kingston

Copy link
Copy Markdown

I would like to see this land for sure.

@luizeof

luizeof commented Sep 10, 2026

Copy link
Copy Markdown
Contributor Author

hello @brennanb2025 Is there still interest in this? I can perform a rebase to update this code, as it's been a while.

@austinChappell

Copy link
Copy Markdown

hello @brennanb2025 Is there still interest in this? I can perform a rebase to update this code, as it's been a while.

I would love to see this land

return `${item.source.type}-${item.source.number}`
}
return item.source.identifier.toLowerCase()
return item.provider === 'linear'

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If another provider is added, this ternary might need to change. At this point, it could be worth using a switch statement instead.


function isTaskProvider(value: unknown): value is TaskProvider {
return value === 'github' || value === 'gitlab' || value === 'linear'
return value === 'github' || value === 'gitlab' || value === 'linear' || value === 'clickup'

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is getting pretty long. What about something like this?

[
  // providers 
].includes(value);

defaultLinearTeamSelectionRef.current = settings.defaultLinearTeamSelection ?? null
const nextQuery =
nextProvider === 'github' ? githubQuery : nextProvider === 'linear' ? nextLinearQuery : ''
nextProvider === 'github'

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure what the standard is in this codebase, but it might be worth avoiding nested ternaries.

: ((selectedCreateTarget as LinearTeam | null)?.name ?? 'Select target')
const providerLabel =
provider === 'github' ? 'GitHub' : provider === 'gitlab' ? 'GitLab' : 'Linear'
provider === 'github'

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar comment as above about nested ternaries. At looks like there was already a single nested ternary.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, I have to imagine these provider labels might be useful in more than one spot in the code. Maybe it would be good to add a shared constant as a Record<Provider, string>

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking farther down this PR, it looks like this constant already exists in the mobile app home page, but it's not exported. I suggest moving it to a file intended to be shared, and export it from there, and then reference that constant here. This becomes a simple object key lookup instead of an if/else statement.


{provider === 'gitlab' && gitlabView === 'todos' ? null : provider === 'linear' &&
!linearConnected ? null : (
{provider === 'gitlab' && gitlabView === 'todos' ? null : (provider === 'linear' &&

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: this could be a good spot to add some constants to make this cleaner, easier to grok.

composer.handleSmartLinearIssueSelect(row.issue)
return
case 'clickup':
composer.handleSmartClickUpTaskSelect(row.task)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: add a return after this line to reduce the git diff when a new provider is added. Also, the function that was refactored used breaks instead of returns. This might be a style preference of this repo.

Comment thread src/cli/clickup-format.ts
task.dueDate ? `Due: ${task.dueDate.slice(0, 10)}` : null,
`URL: ${task.url}`,
task.description ? `\n${task.description}` : null
]

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The custom task ID would be a nice-to-have if it exists.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants