Skip to content

Add native Plane task tracker integration - #14692

Open
ugoenyioha wants to merge 12 commits into
stablyai:mainfrom
ugoenyioha:plane-native-task-tracker
Open

ugoenyioha wants to merge 12 commits into
stablyai:mainfrom
ugoenyioha:plane-native-task-tracker

Conversation

@ugoenyioha

@ugoenyioha ugoenyioha commented Aug 15, 2026 •

Copy link
Copy Markdown

ELI5

Plane work items can now be used in Orca the same way Linear and Jira tasks are used: connect a Plane workspace, search or list work items, and create linked Orca workspaces from them. Plane can be connected with either a Personal Access Token or a Plane OAuth app.

What Changed

  • Added native Plane task tracker support across desktop runtime, IPC/RPC/preload, renderer state, settings UI, CLI, and mobile smart-source flows.
  • Added Plane support for projects, states, labels, members, work items, comments, cycles, modules, work item types, estimates, links, and attachment metadata.
  • Added multi-instance Plane connection handling with encrypted credentials, selected-instance fallback, request timeouts, and paginated project/work-item loading.
  • Added Plane link parsing, provider availability, source filtering, workspace naming, and linked-work-item metadata.
  • Added Plane OAuth connection mode alongside PAT/API-key mode; OAuth uses Plane's browser authorization flow and Bearer tokens.

Why

  • Closes the gap for teams using Plane as their task tracker so they can drive Orca workspaces from Plane work items without relying on Linear or Jira.
  • Supports both self-hosted SSO users who generate PATs and Plane deployments that expose OAuth app authorization.

Linked Issue

Visual Proof

  • N/A: this was validated headlessly per request; no Orca GUI launch was used.

Testing

  • npx [email protected] exec vitest run --config config/vitest.config.ts src/main/plane/api-request.test.ts src/main/plane/client.test.ts src/main/plane/issues.test.ts src/shared/plane/links.test.ts src/main/runtime/mobile-rpc-allowlist.test.ts src/cli/handler-group-manifest.test.ts src/renderer/src/components/settings/TasksPane.test.tsx src/renderer/src/components/settings/task-source-setup-state.test.ts src/renderer/src/components/feature-wall/use-integration-connection-status.test.ts
  • npx [email protected] exec tsc --noEmit -p config/tsconfig.node.json
  • npx [email protected] exec tsc --noEmit -p config/tsconfig.tc.cli.json
  • npx [email protected] exec tsc --noEmit -p config/tsconfig.tc.web.json
  • Pre-commit hook passed.
  • Fable 5 review sign-off: APPROVED.

AI Disclosure

  • Implemented with AI assistance and reviewed with Fable plus CodeRabbit feedback.

Review

  • CodeRabbit actionable feedback addressed, including Plane availability, URL parsing safety, timeouts, pagination, selected-instance fallback, credential defaults, icon rendering, localization, and preload typing.

Checklist

  • Headless tests pass
  • Typechecks pass
  • Pre-commit hook passes
  • No GUI launch required for validation
  • No secrets committed

Author

@coderabbitai

coderabbitai Bot commented Aug 15, 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

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: b111069d-8132-4083-9a8c-8d4e05209cd2

📥 Commits

Reviewing files that changed from the base of the PR and between 5e384e5 and 54e8201.

📒 Files selected for processing (11)
  • src/main/plane/issue-mutations.ts
  • src/main/plane/issues.test.ts
  • src/renderer/src/runtime/runtime-plane-client.ts
  • src/renderer/src/store/slices/plane-read-actions.ts
  • src/renderer/src/store/slices/plane-stale-fallback.ts
  • src/renderer/src/store/slices/plane.test.ts
  • src/renderer/src/store/slices/plane.ts
  • src/shared/plane/links.test.ts
  • src/shared/plane/links.ts
  • src/shared/task-providers.test.ts
  • src/shared/task-providers.ts
💤 Files with no reviewable changes (1)
  • src/shared/task-providers.ts
🚧 Files skipped from review as they are similar to previous changes (5)
  • src/renderer/src/store/slices/plane-read-actions.ts
  • src/renderer/src/runtime/runtime-plane-client.ts
  • src/renderer/src/store/slices/plane.ts
  • src/shared/plane/links.ts
  • src/main/plane/issue-mutations.ts

Included review availability: Your plan includes up to 10 reviews per rolling hour; 8 remain after this review.


📝 Walkthrough

<hidden_new_layer>
<cohort_id>plane-integration</cohort_id>
<insert_after_layer_id>plane-integration-stack</insert_after_layer_id>

Completes Plane command wiring, renderer integration, mobile source handling, API validation, pagination, caching, and test coverage. range_bb2fdf87a158 range_cb65de568736 range_8902042e15b1 range_ead313cef4d9 range_620b28763f8f range_49a4f5b2dcca range_9ac127849fa3 range_f84e4dfe50d3 range_db94e19df9ef range_9880473a0d78 range_2006a0760974 range_fa0883728682 range_d82a7976759f range_ebd994730314 range_27d0e3f8a080 range_5b0dae173920 range_8b5b89fe5f33 range_5e3195d3b904 range_3936ed48d175 range_44246f47fa07 range_668a015601cc range_6752b01f6103 range_dce4fe0d7b48 range_dd056b5429e5 range_1252ed4680d6 range_3c1470113ab4 range_c42dd72d8e0b range_c8272e45384d range_45bbe69de2b8 range_f49d31bf1320 range_99c485edca98 range_272a537ef59e range_5c797e9f9b1a range_e764265da8ef range_cdfb16507092 range_c32b8ca0a54c range_346cc8c4eebf range_6ab6bcb7cda1 range_f64b4d5ed766 range_b95661cab87e range_de79d05160fb range_1529ba39591b range_1fc28fe56243 range_8cb0dc54bc7c range_c3dd0d1b9c5c range_007a57f66a9e range_0c70d8e5193c range_0cd67d4647dd range_c8632f654e6e range_d1fd30e7738e range_3b01481f7270 range_87e80e3118fa range_e7fc54b99cfb range_c03c9938741c range_cd143fe3520a range_40f92d641a09 range_f7d727493f1d range_af7fe330a4f4 range_c8a5a9e1abf7 range_2ec7db7951e5 range_6979fa8e53db range_9dd646dd2402 range_39fb6173858e range_b99b9cd53069 range_85864d4ebc97 range_5ef6e832e479 range_b281a5ea1118 range_f6f75f7e5227 range_0b0996900ff6 range_ca1dc2e37aa7 range_003a9ef3cc88 range_9577379a62da range_c3ada6e552d4 range_7c25e73bfafd range_ace4069fb60e range_e7ba92c92a9a range_e7cb380094b3 range_19cee2676c52 range_b60b2357f2a0 range_9d945ce8223d range_0e285071a6cb range_a5b722f47b1f range_6d5cc68c12c8 range_e47ca614d9a5 range_d1f81504af0e range_cb10f9d0110e range_788beb0978fa range_a7ca8ac48be1 range_6c90dfdd873c range_73b35da6f0b2 range_bf99a85e25e4 range_75cdab4bb728 range_3770ccad2902 range_4402666a2c6b range_41e5a66a9325 range_2edce3c5ed79 range_2bb174174db0 range_44ed97959075 range_9589d2d6b308 range_eb6a0d87f9d9 range_344ab0dd726c range_89c6f1290c82 range_673d665d810d range_b39298f627b2 range_200ba7d65e2a range_a0cea1928095 range_abca695b798d range_18fcbd8ca9da range_59d586856ad2 range_45bbe0322a98 range_33bf21fd665a range_27b6115f2b50 range_861bc8590c07 range_b034b428999e range_5ee194ab084e range_19bbc25a62cb range_532932be29a4 range_f073e9534566 range_38dd6238b964 range_7d2d499e5b5c range_4edb72dcfe28 range_c93987effd95 range_6f7149a9418c range_ae69064d964e range_838f7085d00e range_bb1c97164989 range_ee2137f70089 range_a121e4850fdf range_280d8f251f02 range_a027b0e0ba8a range_07a314652f75 range_17e09f7f1bfc range_3212deba739b range_0c5120f7cba4 range_5a848d0044db range_eb3a51e45ba9 range_4906165f1931 range_f41b82cb9d59 range_54b0c620067d range_3740d9e635ee range_8b170f96e89f range_028aebca0c78 range_ebd039bd33fb range_988fc923224f range_f4d3962f130d range_fadf2d761074 range_f84ad31fc80d range_1a22a22479ab range_92aa41eb8733 range_5a237bcb5ac0 range_50ab3b96125d range_6fc5c47a27b8 range_6fa56c56f42c range_3beba4f3b1b8 range_ed86ce88e9c8 range_7ff0346d8022 range_328fffe08832 range_067d5ecf8da4 range_8c45b7085cc9 range_08ea7ba42b77 range_79dee8578071 range_1f22cc92bea6 range_bef628e8bddb range_b1dd2af80f60 range_ffa0fa60063b range_6a574110a015 range_f9739849cf5c range_158768432ea3 range_7b116ad21e0a range_4685c94e1db6 range_600a5a95959d range_112d0dc44801 range_8e0fa1d167cc range_51bd39e01987 range_a5808a3c2e77 range_721f35456bfb range_74aff593a1ff range_6e45511332b1 range_6286367e7379 range_fa42e7b2d435 range_5160d8654257 range_f70ddd8723c2 range_72204e3051bd range_1771938bb886 range_a65950786fb8 range_b424e6d58d50 range_8033339bc63f range_af3912920b24 range_078781676a73 range_3fd9c839d961 range_8cf010b183e6 range_6c6ddd029187 range_5bcd7106325f range_b88c6b9bb91d range_5ada2db48fc3 range_8d3000191673 range_bc0b28676e6c range_7ca20bbeee28 range_be58d952af10 range_7c80a29d5859 range_8f77bf806a3e range_afe7d35c6596 range_d336eef2a692 range_a01727579b52 range_c2ed9dadf974 range_337d1328fde6 range_726be4000387 range_c45a01c3f56d range_3a9d1009a761

Merge Risk: 🟠 High · up to 54e82

The Plane integration can leave users unable to connect, load, search, or update work items reliably: settings may stay stuck loading, multi-instance results can be incomplete or misrouted, expired OAuth sessions may fail without a useful recovery path, documented links may not open, and provider visibility changes may not persist. These current issues create a high merge-readiness risk and should be resolved before release.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 2.27% 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
Title check ✅ Passed The title clearly and concisely identifies the main change: adding native Plane task tracker integration.
Description check ✅ Passed The description covers the main template sections and provides testing details; only the boundary and notes sections are omitted.
Linked Issues check ✅ Passed The changes implement the linked issue’s Plane integration requirements across connections, work items, workspace linking, runtime layers, settings, CLI, and mobile flows.
Out of Scope Changes check ✅ Passed The changes remain focused on implementing Plane as a task-tracker provider across the required runtime, UI, CLI, and mobile surfaces.

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: 15

🧹 Nitpick comments (2)
src/shared/issue-link-input.ts (1)

6-7: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Remove or shorten this comment.

The comment is two lines and explains an obvious provider-list decision. It also refers to Jira in this Plane change.

As per coding guidelines: “Comments must be concise, non-obvious, and brief—prefer one line; do not explain obvious behavior or walk through code.”

Source: Coding guidelines

src/preload/index.ts (1)

2006-2099: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick win

Type the Plane bridge against PlaneApi.

PreloadApi.plane declares concrete shared result types, but the plane object is not checked against that contract. Add satisfies PreloadApi['plane'] and replace the unknown return types with the corresponding PlaneApi types.


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 0187e036-ae20-48ba-ae0e-8e51e8797880

📥 Commits

Reviewing files that changed from the base of the PR and between e570cad and f0dbee70df263fb692103cf39cbe0c15b1a74eb4.

📒 Files selected for processing (81)
  • mobile/src/components/NewWorktreeModal.tsx
  • mobile/src/components/SmartWorkspaceSourceDrawer.tsx
  • mobile/src/components/SmartWorkspaceSourceField.tsx
  • mobile/src/components/SmartWorkspaceSourceRow.tsx
  • mobile/src/components/TaskProviderLogo.tsx
  • mobile/src/tasks/composer-linked-work-item.test.ts
  • mobile/src/tasks/composer-linked-work-item.ts
  • mobile/src/tasks/mobile-composer-source-types.ts
  • mobile/src/tasks/mobile-smart-source-modes.ts
  • mobile/src/tasks/mobile-task-providers.ts
  • mobile/src/tasks/smart-source-fan-out.test.ts
  • mobile/src/tasks/smart-source-fan-out.ts
  • mobile/src/tasks/smart-source-search-requests.ts
  • mobile/src/tasks/source-workspace-create.ts
  • mobile/src/tasks/use-mobile-composer-source.ts
  • mobile/src/tasks/use-smart-workspace-source.ts
  • mobile/src/tasks/workspace-create-params.test.ts
  • mobile/src/tasks/workspace-create-params.ts
  • src/cli/args.ts
  • src/cli/handler-group-manifest.ts
  • src/cli/handlers/plane.ts
  • src/cli/specs/index.ts
  • src/cli/specs/plane.ts
  • src/main/ipc/plane.ts
  • src/main/ipc/register-core-handlers.ts
  • src/main/plane/client.ts
  • src/main/plane/issues.test.ts
  • src/main/plane/issues.ts
  • src/main/plane/response-mappers.ts
  • src/main/plane/storage-paths.ts
  • src/main/runtime/orca-runtime.ts
  • src/main/runtime/rpc/methods/index.ts
  • src/main/runtime/rpc/methods/plane.ts
  • src/preload/api-types.ts
  • src/preload/api/plane-api.ts
  • src/preload/index.ts
  • src/renderer/src/components/NewWorkspaceComposerCard.tsx
  • src/renderer/src/components/automations/automation-source-display.ts
  • src/renderer/src/components/automations/automation-target-availability.ts
  • src/renderer/src/components/feature-wall/ConnectIntegrationsList.tsx
  • src/renderer/src/components/feature-wall/use-feature-wall-task-source-presentation.ts
  • src/renderer/src/components/feature-wall/use-integration-connection-status.test.ts
  • src/renderer/src/components/feature-wall/use-integration-connection-status.ts
  • src/renderer/src/components/icons/PlaneIcon.tsx
  • src/renderer/src/components/new-workspace/SmartWorkspaceNameField.tsx
  • src/renderer/src/components/new-workspace/smart-workspace-localized-options.tsx
  • src/renderer/src/components/plane-api-key-dialog.tsx
  • src/renderer/src/components/settings/IntegrationsPane.tsx
  • src/renderer/src/components/settings/TasksPane.test.tsx
  • src/renderer/src/components/settings/TasksPane.tsx
  • src/renderer/src/components/settings/task-provider-integration-section-ids.ts
  • src/renderer/src/components/settings/task-source-setup-state.test.ts
  • src/renderer/src/components/settings/task-tracker-integration-cards.tsx
  • src/renderer/src/components/settings/use-task-source-provider-readiness.ts
  • src/renderer/src/components/setup-guide/use-setup-guide-progress.ts
  • src/renderer/src/components/sidebar/worktree-meta-updates.ts
  • src/renderer/src/components/task-page-list-chrome-visibility.ts
  • src/renderer/src/components/task-source-context-summary.ts
  • src/renderer/src/hooks/useComposerState.ts
  • src/renderer/src/runtime/runtime-plane-client.ts
  • src/renderer/src/store/index.ts
  • src/renderer/src/store/slices/plane.ts
  • src/renderer/src/store/slices/store-test-helpers.ts
  • src/renderer/src/store/slices/ui.ts
  • src/renderer/src/store/types.ts
  • src/shared/integration-credential-errors.ts
  • src/shared/issue-link-input.ts
  • src/shared/new-workspace/smart-workspace-command-value.ts
  • src/shared/new-workspace/smart-workspace-source-results.ts
  • src/shared/new-workspace/work-item-lookup-text.ts
  • src/shared/new-workspace/workspace-source.ts
  • src/shared/plane/links.test.ts
  • src/shared/plane/links.ts
  • src/shared/plane/types.ts
  • src/shared/task-provider-identity.ts
  • src/shared/task-providers.ts
  • src/shared/task-source-context.ts
  • src/shared/workspace-linked-item-source-context.ts
  • src/shared/workspace-linked-item.ts
  • src/shared/workspace-name.ts
  • src/shared/worktree/types.ts

Comment thread src/main/plane/client.ts Resolved
Comment thread src/main/plane/client.ts Resolved
Comment thread src/main/plane/issues.ts Resolved
Comment thread src/shared/plane/links.ts Resolved
Comment thread src/shared/plane/links.ts Resolved

@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: 2


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 4f560279-fb20-474c-8b35-28ed24ed95e0

📥 Commits

Reviewing files that changed from the base of the PR and between f0dbee70df263fb692103cf39cbe0c15b1a74eb4 and e72faf73df2ba1164bfbd7e05350d44a9f092851.

📒 Files selected for processing (17)
  • mobile/src/components/NewWorktreeModal.tsx
  • mobile/src/components/SmartWorkspaceSourceDrawer.tsx
  • src/main/ipc/plane.ts
  • src/main/plane/client.ts
  • src/main/plane/issue-activity.ts
  • src/main/plane/issues.test.ts
  • src/main/plane/issues.ts
  • src/main/plane/project-resources.ts
  • src/main/plane/response-mappers.ts
  • src/main/runtime/orca-runtime.ts
  • src/renderer/src/components/new-workspace/SmartWorkspaceNameField.tsx
  • src/renderer/src/components/plane-api-key-dialog.tsx
  • src/renderer/src/components/settings/task-tracker-integration-cards.tsx
  • src/renderer/src/runtime/runtime-plane-client.ts
  • src/shared/integration-credential-errors.ts
  • src/shared/plane/links.test.ts
  • src/shared/plane/links.ts
🚧 Files skipped from review as they are similar to previous changes (13)
  • src/shared/integration-credential-errors.ts
  • src/renderer/src/components/plane-api-key-dialog.tsx
  • src/shared/plane/links.ts
  • mobile/src/components/SmartWorkspaceSourceDrawer.tsx
  • src/shared/plane/links.test.ts
  • src/renderer/src/components/settings/task-tracker-integration-cards.tsx
  • mobile/src/components/NewWorktreeModal.tsx
  • src/main/runtime/orca-runtime.ts
  • src/main/plane/response-mappers.ts
  • src/main/plane/issues.test.ts
  • src/main/plane/issues.ts
  • src/renderer/src/runtime/runtime-plane-client.ts
  • src/renderer/src/components/new-workspace/SmartWorkspaceNameField.tsx

Comment thread src/main/plane/client.ts Resolved
Comment thread src/main/plane/project-resources.ts Resolved

@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: 6


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 84072fab-ce47-44d5-b6a1-e6d060f494c3

📥 Commits

Reviewing files that changed from the base of the PR and between b80c37ac3dee6a047ee8fa56231216531f26a71e and f95b6b755779bbe8b86a816d3244e29867f7d75a.

📒 Files selected for processing (17)
  • src/main/ipc/plane-normalizers.ts
  • src/main/ipc/plane.ts
  • src/main/plane/api-request.test.ts
  • src/main/plane/api-request.ts
  • src/main/plane/client.test.ts
  • src/main/plane/client.ts
  • src/main/plane/instance-storage.ts
  • src/main/plane/issues.test.ts
  • src/main/plane/oauth.ts
  • src/main/runtime/orca-runtime.ts
  • src/main/runtime/rpc/methods/plane.ts
  • src/preload/api/plane-api.ts
  • src/preload/index.ts
  • src/renderer/src/components/plane-api-key-dialog.tsx
  • src/renderer/src/runtime/runtime-plane-client.ts
  • src/renderer/src/store/slices/plane.ts
  • src/shared/plane/types.ts
🚧 Files skipped from review as they are similar to previous changes (8)
  • src/preload/index.ts
  • src/main/ipc/plane.ts
  • src/main/runtime/orca-runtime.ts
  • src/main/plane/client.test.ts
  • src/renderer/src/runtime/runtime-plane-client.ts
  • src/preload/api/plane-api.ts
  • src/renderer/src/store/slices/plane.ts
  • src/main/plane/issues.test.ts

Comment thread src/main/plane/api-request.ts Resolved
Comment thread src/main/plane/client.ts Resolved
Comment thread src/main/plane/instance-storage.ts Resolved
Comment thread src/main/plane/oauth.ts Resolved
Comment thread src/main/plane/oauth.ts Resolved
@ugoenyioha

Copy link
Copy Markdown
Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Aug 15, 2026 •

Copy link
Copy Markdown
Contributor
✅ Action performed

Review finished.

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.

@ugoenyioha

Copy link
Copy Markdown
Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Aug 15, 2026 •

Copy link
Copy Markdown
Contributor
⚠️ Action not completed

Already reviewed.

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.

@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: 2

🧹 Nitpick comments (4)
src/main/plane/oauth.ts (1)

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

Surface the provider error from the callback query.

Plane redirects with error and error_description when the user denies access. The handler reports Plane OAuth callback was invalid for that case, so the user sees no cause. Read error from the query and include it in the rejection message.

♻️ Proposed change
   const url = new URL(req.url ?? '/', redirectUri)
   const code = url.searchParams.get('code')
   const receivedState = url.searchParams.get('state')
+  const providerError = url.searchParams.get('error')
   if (url.pathname !== '/plane/oauth/callback' || !code || receivedState !== state) {
     res.writeHead(400).end('Plane OAuth failed. You can close this window.')
-    reject(new Error('Plane OAuth callback was invalid'))
+    reject(new Error(providerError ? `Plane OAuth failed: ${providerError}` : 'Plane OAuth callback was invalid'))
     return
   }
src/main/plane/api-request.test.ts (1)

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

Add coverage for the OAuth refresh failure paths.

The suite covers only a successful refresh. Two error paths in currentAuth and refreshOAuthToken stay untested: an expired token without a refreshToken, and a non-ok refresh response. Both produce user-facing reconnect errors. Add cases for them.

src/main/plane/client.test.ts (1)

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

Rename this test to match its assertion.

The test asserts that getClient() throws Plane OAuth client credentials are missing. The name says it returns bearer clients, and it duplicates the name of the next test. Rename it, for example to throws when stored OAuth credentials lack client credentials.

src/main/plane/oauth.test.ts (1)

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

Exercise the callback request handler.

on is a bare vi.fn(), so no test runs handleCallback. The state comparison in the callback is the CSRF defense of this flow, and it is untested. Capture the registered request listener in the mock and invoke it with a matching state, a mismatched state, and a wrong path.

♻️ Proposed mock change
+const listeners = vi.hoisted(() => new Map<string, (...args: unknown[]) => void>())
+
 vi.mock('node:http', () => ({
   createServer: () => ({
     address: () => ({ port: 18181 }),
     close: closeMock,
     listen: (_port: number, _host: string, callback: () => void) => callback(),
-    on: vi.fn(),
+    on: (event: string, listener: (...args: unknown[]) => void) => listeners.set(event, listener),
     once: vi.fn()
   })
 }))

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 1a995273-3609-4378-b171-12dc6125a11c

📥 Commits

Reviewing files that changed from the base of the PR and between b80c37ac3dee6a047ee8fa56231216531f26a71e and 2eaca7a90fa3ed29500b87f276a55cfdeb0527e1.

📒 Files selected for processing (18)
  • src/main/ipc/plane-normalizers.ts
  • src/main/ipc/plane.ts
  • src/main/plane/api-request.test.ts
  • src/main/plane/api-request.ts
  • src/main/plane/client.test.ts
  • src/main/plane/client.ts
  • src/main/plane/instance-storage.ts
  • src/main/plane/issues.test.ts
  • src/main/plane/oauth.test.ts
  • src/main/plane/oauth.ts
  • src/main/runtime/orca-runtime.ts
  • src/main/runtime/rpc/methods/plane.ts
  • src/preload/api/plane-api.ts
  • src/preload/index.ts
  • src/renderer/src/components/plane-api-key-dialog.tsx
  • src/renderer/src/runtime/runtime-plane-client.ts
  • src/renderer/src/store/slices/plane.ts
  • src/shared/plane/types.ts
🚧 Files skipped from review as they are similar to previous changes (13)
  • src/main/ipc/plane.ts
  • src/main/runtime/rpc/methods/plane.ts
  • src/renderer/src/store/slices/plane.ts
  • src/shared/plane/types.ts
  • src/renderer/src/runtime/runtime-plane-client.ts
  • src/preload/api/plane-api.ts
  • src/preload/index.ts
  • src/main/runtime/orca-runtime.ts
  • src/main/ipc/plane-normalizers.ts
  • src/main/plane/client.ts
  • src/renderer/src/components/plane-api-key-dialog.tsx
  • src/main/plane/issues.test.ts
  • src/main/plane/instance-storage.ts

Comment thread src/main/plane/api-request.ts Resolved
Comment thread src/main/plane/api-request.ts Resolved
@ugoenyioha

Copy link
Copy Markdown
Author

@coderabbitai resume

@coderabbitai

coderabbitai Bot commented Aug 15, 2026

Copy link
Copy Markdown
Contributor
✅ Action performed

Reviews resumed.

@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: 1

🧹 Nitpick comments (1)
src/main/plane/api-request.test.ts (1)

135-150: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick win

Assert the refreshed bearer token for both API requests.

The mock returns success for API requests with any headers. A broken deduplication path can make one refresh request but send expired-token for one concurrent API request. Assert that both /api/v1/users/me/ calls use Authorization: Bearer fresh-token.


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 40cb8f1c-8816-4735-b523-55aefb612610

📥 Commits

Reviewing files that changed from the base of the PR and between 2eaca7a90fa3ed29500b87f276a55cfdeb0527e1 and 33f6b96dc0f7628c946109cbb583b01d1b8a748c.

📒 Files selected for processing (5)
  • src/main/plane/api-request.test.ts
  • src/main/plane/api-request.ts
  • src/main/plane/client.test.ts
  • src/main/plane/oauth.test.ts
  • src/main/plane/oauth.ts
🚧 Files skipped from review as they are similar to previous changes (3)
  • src/main/plane/client.test.ts
  • src/main/plane/oauth.ts
  • src/main/plane/api-request.ts

Comment thread src/main/plane/oauth.test.ts Resolved
@ugoenyioha

Copy link
Copy Markdown
Author

@coderabbitai summary

@coderabbitai

coderabbitai Bot commented Aug 15, 2026

Copy link
Copy Markdown
Contributor
✅ Action performed

Summary regeneration triggered.

@ugoenyioha
ugoenyioha force-pushed the plane-native-task-tracker branch from d883a6b to b7e8f6f Compare August 16, 2026 14:41
@greptile-apps

greptile-apps Bot commented Aug 16, 2026 •

Copy link
Copy Markdown

Too many files changed for review (105 files, 100 file limit).

Bypass the limit by tagging @greptile-apps to review.

@coderabbitai

coderabbitai Bot commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

Note

GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer.

@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: 8

🧹 Nitpick comments (1)
src/shared/task-providers.ts (1)

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

planeConnected is never read.

isTaskProviderAvailable returns true for 'plane' unconditionally, so the new planeConnected field on TaskProviderAvailability has no effect. TaskPage.tsx line 3230 still computes and passes it, and restoreAvailableDefaultTaskProvider lists it as a dependency. Remove the field, or use it if a future gate is intended.

Also applies to: 119-123


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 8d403fa4-9753-4763-bcdf-d4aee10590f0

📥 Commits

Reviewing files that changed from the base of the PR and between e4e54a1 and b7e8f6f.

📒 Files selected for processing (102)
  • mobile/src/components/NewWorktreeModal.tsx
  • mobile/src/components/SmartWorkspaceSourceDrawer.tsx
  • mobile/src/components/SmartWorkspaceSourceField.tsx
  • mobile/src/components/SmartWorkspaceSourceRow.tsx
  • mobile/src/components/TaskProviderLogo.tsx
  • mobile/src/tasks/composer-linked-work-item.test.ts
  • mobile/src/tasks/composer-linked-work-item.ts
  • mobile/src/tasks/mobile-composer-source-types.ts
  • mobile/src/tasks/mobile-smart-source-modes.ts
  • mobile/src/tasks/mobile-task-providers.ts
  • mobile/src/tasks/smart-source-fan-out.test.ts
  • mobile/src/tasks/smart-source-fan-out.ts
  • mobile/src/tasks/smart-source-search-requests.ts
  • mobile/src/tasks/source-workspace-create.ts
  • mobile/src/tasks/use-mobile-composer-source.ts
  • mobile/src/tasks/use-smart-workspace-source.ts
  • mobile/src/tasks/workspace-create-params.test.ts
  • mobile/src/tasks/workspace-create-params.ts
  • src/cli/args.ts
  • src/cli/handler-group-manifest.ts
  • src/cli/handlers/plane.ts
  • src/cli/specs/index.ts
  • src/cli/specs/plane.ts
  • src/main/ipc/plane-normalizers.ts
  • src/main/ipc/plane.ts
  • src/main/ipc/register-core-handlers.ts
  • src/main/plane/api-request.test.ts
  • src/main/plane/api-request.ts
  • src/main/plane/client.test.ts
  • src/main/plane/client.ts
  • src/main/plane/instance-storage.ts
  • src/main/plane/issue-activity.test.ts
  • src/main/plane/issue-activity.ts
  • src/main/plane/issue-pages.ts
  • src/main/plane/issue-query.ts
  • src/main/plane/issues.test.ts
  • src/main/plane/issues.ts
  • src/main/plane/oauth.test.ts
  • src/main/plane/oauth.ts
  • src/main/plane/project-resource-mappers.ts
  • src/main/plane/project-resources.test.ts
  • src/main/plane/project-resources.ts
  • src/main/plane/response-mappers.ts
  • src/main/plane/storage-paths.ts
  • src/main/runtime/orca-runtime.ts
  • src/main/runtime/rpc/methods/index.ts
  • src/main/runtime/rpc/methods/plane.ts
  • src/main/runtime/runtime-rpc.ts
  • src/preload/api-types.ts
  • src/preload/api/plane-api.ts
  • src/preload/index.ts
  • 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/feature-wall/ConnectIntegrationsList.tsx
  • src/renderer/src/components/feature-wall/use-feature-wall-task-source-presentation.ts
  • src/renderer/src/components/feature-wall/use-integration-connection-status.test.ts
  • src/renderer/src/components/feature-wall/use-integration-connection-status.ts
  • src/renderer/src/components/icons/PlaneIcon.tsx
  • src/renderer/src/components/new-workspace/SmartWorkspaceNameField.tsx
  • src/renderer/src/components/new-workspace/smart-workspace-localized-options.tsx
  • src/renderer/src/components/plane-api-key-dialog.tsx
  • src/renderer/src/components/settings/IntegrationsPane.tsx
  • src/renderer/src/components/settings/TasksPane.test.tsx
  • src/renderer/src/components/settings/TasksPane.tsx
  • src/renderer/src/components/settings/task-provider-integration-section-ids.ts
  • src/renderer/src/components/settings/task-source-setup-state.test.ts
  • src/renderer/src/components/settings/task-tracker-integration-cards.tsx
  • src/renderer/src/components/settings/use-task-source-provider-readiness.ts
  • src/renderer/src/components/setup-guide/use-setup-guide-progress.ts
  • src/renderer/src/components/sidebar/worktree-meta-updates.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/runtime/runtime-plane-client.ts
  • src/renderer/src/store/index.ts
  • src/renderer/src/store/slices/plane-cache.ts
  • src/renderer/src/store/slices/plane-read-actions.ts
  • src/renderer/src/store/slices/plane.test.ts
  • src/renderer/src/store/slices/plane.ts
  • src/renderer/src/store/slices/store-test-helpers.ts
  • src/renderer/src/store/slices/ui.ts
  • src/renderer/src/store/types.ts
  • src/shared/integration-credential-errors.ts
  • src/shared/issue-link-input.ts
  • src/shared/new-workspace/smart-workspace-command-value.ts
  • src/shared/new-workspace/smart-workspace-source-results.ts
  • src/shared/new-workspace/work-item-lookup-text.ts
  • src/shared/new-workspace/workspace-source.ts
  • src/shared/plane/links.test.ts
  • src/shared/plane/links.ts
  • src/shared/plane/types.ts
  • src/shared/task-provider-identity.ts
  • src/shared/task-providers.test.ts
  • src/shared/task-providers.ts
  • src/shared/task-source-context.ts
  • src/shared/workspace-linked-item-source-context.ts
  • src/shared/workspace-linked-item.ts
  • src/shared/workspace-name.ts
  • src/shared/worktree/types.ts
🚧 Files skipped from review as they are similar to previous changes (86)
  • src/shared/worktree/types.ts
  • src/preload/api-types.ts
  • src/shared/task-source-context.ts
  • src/shared/plane/links.test.ts
  • mobile/src/components/SmartWorkspaceSourceRow.tsx
  • src/renderer/src/components/icons/PlaneIcon.tsx
  • src/main/runtime/runtime-rpc.ts
  • src/renderer/src/components/settings/IntegrationsPane.tsx
  • src/renderer/src/components/automations/automation-target-availability.ts
  • src/main/runtime/rpc/methods/index.ts
  • mobile/src/tasks/source-workspace-create.ts
  • src/renderer/src/store/types.ts
  • src/shared/workspace-name.ts
  • src/preload/api/plane-api.ts
  • src/shared/integration-credential-errors.ts
  • mobile/src/tasks/mobile-composer-source-types.ts
  • mobile/src/components/SmartWorkspaceSourceField.tsx
  • src/renderer/src/components/task-source-context-summary.ts
  • src/renderer/src/components/setup-guide/use-setup-guide-progress.ts
  • src/renderer/src/components/settings/TasksPane.test.tsx
  • src/renderer/src/components/feature-wall/ConnectIntegrationsList.tsx
  • src/shared/workspace-linked-item.ts
  • src/shared/workspace-linked-item-source-context.ts
  • src/renderer/src/components/sidebar/worktree-meta-updates.ts
  • src/cli/specs/index.ts
  • src/renderer/src/store/slices/ui.ts
  • mobile/src/tasks/workspace-create-params.ts
  • src/main/ipc/register-core-handlers.ts
  • mobile/src/tasks/mobile-smart-source-modes.ts
  • src/cli/args.ts
  • src/main/plane/oauth.test.ts
  • src/cli/handler-group-manifest.ts
  • src/renderer/src/components/settings/TasksPane.tsx
  • src/cli/handlers/plane.ts
  • src/renderer/src/store/index.ts
  • mobile/src/tasks/smart-source-fan-out.test.ts
  • src/renderer/src/components/settings/use-task-source-provider-readiness.ts
  • mobile/src/components/NewWorktreeModal.tsx
  • mobile/src/tasks/use-smart-workspace-source.ts
  • src/renderer/src/components/feature-wall/use-feature-wall-task-source-presentation.ts
  • src/main/plane/storage-paths.ts
  • src/main/ipc/plane.ts
  • src/shared/issue-link-input.ts
  • mobile/src/components/SmartWorkspaceSourceDrawer.tsx
  • src/renderer/src/components/new-workspace/smart-workspace-localized-options.tsx
  • src/shared/new-workspace/work-item-lookup-text.ts
  • src/shared/new-workspace/smart-workspace-source-results.ts
  • src/renderer/src/components/settings/task-tracker-integration-cards.tsx
  • src/renderer/src/components/automations/automation-source-display.ts
  • src/main/plane/client.test.ts
  • src/renderer/src/components/task-page-list-chrome-visibility.ts
  • src/shared/task-provider-identity.ts
  • mobile/src/tasks/use-mobile-composer-source.ts
  • src/renderer/src/components/plane-api-key-dialog.tsx
  • src/renderer/src/components/settings/task-source-setup-state.test.ts
  • src/shared/new-workspace/smart-workspace-command-value.ts
  • src/renderer/src/components/settings/task-provider-integration-section-ids.ts
  • src/renderer/src/hooks/useComposerState.ts
  • mobile/src/tasks/smart-source-fan-out.ts
  • mobile/src/tasks/smart-source-search-requests.ts
  • src/main/runtime/rpc/methods/plane.ts
  • mobile/src/tasks/mobile-task-providers.ts
  • src/main/plane/instance-storage.ts
  • src/cli/specs/plane.ts
  • src/renderer/src/components/NewWorkspaceComposerCard.tsx
  • mobile/src/components/TaskProviderLogo.tsx
  • src/shared/new-workspace/workspace-source.ts
  • src/renderer/src/components/feature-wall/use-integration-connection-status.ts
  • src/renderer/src/store/slices/store-test-helpers.ts
  • src/main/plane/response-mappers.ts
  • mobile/src/tasks/workspace-create-params.test.ts
  • src/main/plane/api-request.test.ts
  • mobile/src/tasks/composer-linked-work-item.test.ts
  • mobile/src/tasks/composer-linked-work-item.ts
  • src/renderer/src/components/feature-wall/use-integration-connection-status.test.ts
  • src/preload/index.ts
  • src/main/plane/project-resource-mappers.ts
  • src/main/plane/oauth.ts
  • src/main/plane/project-resources.ts
  • src/main/plane/client.ts
  • src/main/runtime/orca-runtime.ts
  • src/renderer/src/runtime/runtime-plane-client.ts
  • src/main/plane/issue-activity.ts
  • src/main/plane/issues.ts
  • src/renderer/src/components/new-workspace/SmartWorkspaceNameField.tsx
  • src/main/plane/api-request.ts

Included review availability: Your plan includes up to 10 reviews per rolling hour; 9 remain after this review.

Comment thread src/main/ipc/plane-normalizers.ts Resolved
Comment thread src/main/plane/issues.test.ts Resolved
Comment thread src/shared/plane/links.ts Resolved
Comment thread src/shared/task-providers.ts Resolved

@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: 1

Caution

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

⚠️ Outside diff range comments (3)
src/main/plane/issues.ts (2)

20-76: 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Legacy 'all'-string path can undercount totalResults on early return.

Inside the per-project loop, totalResults accumulates page.totalResults for projects visited so far. When items.length >= limit is reached and unvisitedProjects is true, the function returns this partial sum as the final total. The result understates the true total because it excludes totals from projects not yet visited.

Only report totalResults when every project has actually been visited (or omit it, matching the hasMore semantics), rather than returning a partial sum as if it were the true total.


78-121: 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

totalResults is overwritten, not summed, across multiple Plane instances.

totalResults = page.totalResults (line 103) replaces the previous value on each clientIndex iteration instead of accumulating it. When getClients returns multiple clients (the "All Plane instances" selection, exposed in TaskPage.tsx), the final totalResults reflects only the last client processed without early return, or only the first client on early return — not the sum across instances. This directly affects the pagination totals this PR's commit message calls out ("Updated Plane task pagination to use server-provided totals"), and the wrong value flows straight into TaskPage.tsx's advertisedPlaneIssueTotalPages calculation.

Accumulate totalResults (and totalPages, if it is meant to reflect all instances) across clients instead of overwriting.

🐛 Proposed fix
   let totalPages: number | undefined
-  let totalResults: number | undefined
+  let totalResults: number | undefined
+  let sawTotalResults = false
   for (let clientIndex = 0; clientIndex < clients.length; clientIndex += 1) {
     const client = clients[clientIndex]
     const project = await singleProjectForQuery(client, query)
     let cursor: string | null = null
     do {
       const pageCursor = cursor
       const page = await fetchWorkItemQueryPage(
         client,
         project,
         query,
         cursor,
         limit,
         WORK_ITEM_EXPAND
       )
       cursor = nextPageCursor(pageCursor, page)
       if (page.totalResults !== undefined && pageCursor === null) {
-        totalResults = page.totalResults
+        totalResults = (totalResults ?? 0) + page.totalResults
+        sawTotalResults = true
       }
src/renderer/src/components/TaskPage.tsx (1)

8153-8177: 🩺 Stability & Availability | 🔴 Critical | ⚡ Quick win

checkPlaneConnection() is never called; the Plane tab can be stuck loading forever.

The status-refresh effect calls refreshPreflightStatus, checkLinearConnection, and checkJiraConnection, but never checkPlaneConnection. planeStatusReady (planeStatusCurrent && planeStatusChecked) stays false until something calls checkPlaneConnection. The "not ready" branch at line 11748 renders only a spinner, and the "Re-check Plane" / "Connect" button is only reachable once planeStatusReady is already true. With no automatic call, a user who opens the Plane tab sees a permanent loading spinner with no way to reach the connect action.

Call checkPlaneConnection() from this effect when !planeStatusReady, mirroring the Linear and Jira checks.

🐛 Proposed fix
   useEffect(() => {
     if (!preflightStatusCurrent || !preflightStatusChecked) {
       void refreshPreflightStatus()
     }
     if (!linearStatusReady) {
       void checkLinearConnection()
     }
     if (!jiraStatusReady) {
       void checkJiraConnection()
     }
+    if (!planeStatusReady) {
+      void checkPlaneConnection()
+    }
   }, [
     checkJiraConnection,
     checkLinearConnection,
+    checkPlaneConnection,
     expectedPreflightContextKey,
     jiraStatusContextKey,
     jiraStatusReady,
     linearStatusContextKey,
     linearStatusReady,
+    planeStatusReady,
     providerRuntimeContextKey,
     preflightStatusContextKey,
     preflightStatusChecked,
     preflightStatusCurrent,
     refreshPreflightStatus
   ])
♻️ Duplicate comments (2)
src/main/ipc/plane-normalizers.ts (1)

136-163: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Sparse arrays still bypass validation in optionalStringList and optionalEnumList.

Array.prototype.every skips holes in a sparse array, so a sparse assigneeIds, labelIds, stateGroups, etc. passes validation. In optionalStringList, Array.prototype.map then preserves the hole, so normalized contains an undefined entry despite the string[] return type. In optionalEnumList, the function returns value as T[] directly, so a hole surfaces as a literal undefined in the returned list.

Convert the input with Array.from before validating, in both functions.

🐛 Proposed fix for both helpers
 function optionalStringList(value: unknown, fieldName: string): string[] | undefined {
   if (value === undefined) {
     return undefined
   }
-  if (!Array.isArray(value) || !value.every((item) => typeof item === 'string' && item.trim())) {
+  const items = Array.isArray(value) ? Array.from(value) : value
+  if (!Array.isArray(items) || !items.every((item) => typeof item === 'string' && item.trim())) {
     throw new Error(`Invalid ${fieldName}`)
   }
-  const normalized = value.map((item) => item.trim())
+  const normalized = items.map((item) => item.trim())
   return normalized.length > 0 ? normalized : undefined
 }
 function optionalEnumList<T extends string>(
   value: unknown,
   allowed: readonly T[],
   fieldName: string
 ): T[] | undefined {
   if (value === undefined) {
     return undefined
   }
-  if (!Array.isArray(value) || !value.every((item) => allowed.includes(item as T))) {
+  const items = Array.isArray(value) ? Array.from(value) : value
+  if (!Array.isArray(items) || !items.every((item) => allowed.includes(item as T))) {
     throw new Error(`Invalid ${fieldName}`)
   }
-  return value.length > 0 ? (value as T[]) : undefined
+  return items.length > 0 ? items : undefined
 }
src/renderer/src/components/TaskPage.tsx (1)

10577-10593: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Estimate option ids can still be "undefined" and collide.

id: String(point.value) produces the literal string "undefined" when point.value is nullish, and two estimates that share the same point value get the same id. This causes duplicate SelectItem keys and an ambiguous selected value in the Estimate filter.

Use point.id for the option id and keep point.value only in the label.

🐛 Proposed fix
                           ...planeEstimates.flatMap((estimate) =>
                             (estimate.points ?? []).map((point) => ({
-                              id: String(point.value),
+                              id: point.id,
                               label: `${estimate.name}: ${point.key ?? point.description ?? point.value ?? point.id}`
                             }))
                           )

If the request payload needs the numeric point value, map the selected id back to its point before building estimatePoint.


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: acb11060-cf0f-4bf6-a200-56b8e2f181c3

📥 Commits

Reviewing files that changed from the base of the PR and between b7e8f6f and 29f0fb0.

📒 Files selected for processing (13)
  • src/main/ipc/plane-normalizers.ts
  • src/main/plane/issue-mutations.ts
  • src/main/plane/issue-pages.ts
  • src/main/plane/issue-query.ts
  • src/main/plane/issues.test.ts
  • src/main/plane/issues.ts
  • src/main/plane/project-resources.test.ts
  • src/main/plane/project-resources.ts
  • src/main/runtime/rpc/methods/plane-query-schema.ts
  • src/main/runtime/rpc/methods/plane.ts
  • src/renderer/src/components/TaskPage.tsx
  • src/renderer/src/store/slices/plane-cache.ts
  • src/shared/plane/types.ts
🚧 Files skipped from review as they are similar to previous changes (5)
  • src/main/plane/project-resources.test.ts
  • src/main/plane/issue-pages.ts
  • src/main/plane/issue-query.ts
  • src/main/plane/project-resources.ts
  • src/shared/plane/types.ts

Included review availability: Your plan includes up to 10 reviews per rolling hour; 9 remain after this review.

Comment thread src/main/plane/issue-mutations.ts Resolved
@ugoenyioha

Copy link
Copy Markdown
Author

@coderabbitai resume
@coderabbitai review

@coderabbitai

coderabbitai Bot commented Aug 16, 2026 •

Copy link
Copy Markdown
Contributor

@ugoenyioha Reviews are active. I will review the current pull request changes.

✅ Action performed

Review finished.

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.

@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.

Caution

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

⚠️ Outside diff range comments (5)
src/renderer/src/components/TaskPage.tsx (5)

3515-3519: 🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win

Normalize the "all" instance sentinel before Plane API calls.

selectedPlaneInstanceId can be "all". This code treats "all" as “no specific instance” when building selectedPlaneInstance and planeTaskSourceContext, but Lines [8899-8900], [8977-8982], and [9020-9021] pass "all" to Plane APIs as a real instance ID. Normalize "all" to undefined and use that value for all Plane requests.

Proposed fix
 const selectedPlaneInstanceId =
   planeStatus.selectedInstanceId ??
   planeStatus.activeInstanceId ??
   planeStatus.instances[0]?.id ??
   null
+
+const planeApiInstanceId =
+  selectedPlaneInstanceId && selectedPlaneInstanceId !== 'all'
+    ? selectedPlaneInstanceId
+    : undefined

-    listPlaneIssues(query, requestLimit, selectedPlaneInstanceId ?? undefined, {
+    listPlaneIssues(query, requestLimit, planeApiInstanceId, {
       sourceContext: planeTaskSourceContext,
       force: ...
     })

Apply the same normalization to project, member, and resource requests.


5629-5664: 🚀 Performance & Scalability | 🟠 Major | ⚡ Quick win

Prevent duplicate requests during Plane page expansion.

When the user requests another page, this code increases planeIssueLimit. This effect runs before the later Plane fetch effect sets planeLoading to true. It can increase the limit a second time, so one page click starts two requests. The first request is then discarded as stale. Set planeLoading before changing the limit, or expand only after the current request completes.


8883-8889: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Do not parse the request signature with a user-controlled delimiter.

querySignature contains the free-text search. If the search contains ::limit::, .split('::limit::')[0] truncates the signature before comparison. The component then treats every request as a new query, resets pagination, and can repeatedly reload the first page. Store querySignature separately instead.


10562-10608: 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Localize the Plane filter option labels.

All cycles, No cycle, All modules, No module, All types, and All estimates bypass translate(...) while the surrounding Plane UI uses localized keys. Generate locale keys for these renderer strings and pass translated labels into the option builders.

Based on learnings: use the renderer localization workflow, which generates keys from the first 10 characters of the SHA-1 hash of <filePath>:<text> and reuses keys for identical source text.

Source: Learnings


11853-11864: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Guard the Plane row handler from child buttons.

The row opens issue.url on Enter or Space without checking event.target. When focus is on the nested Start workspace or Open in Plane button, the child action can also trigger the row handler and open the browser. Return when event.target !== event.currentTarget, as the Linear row handlers do.

Proposed fix
onKeyDown={(e) => {
+  if (e.target !== e.currentTarget) {
+    return
+  }
   if (e.key === 'Enter' || e.key === ' ') {
     e.preventDefault()
     void window.api.shell.openUrl(issue.url)
   }
}}

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: a73204d0-899c-4699-b60e-7b4b99c373e7

📥 Commits

Reviewing files that changed from the base of the PR and between 29f0fb0 and 5e384e5.

📒 Files selected for processing (2)
  • src/main/ipc/plane-normalizers.ts
  • src/renderer/src/components/TaskPage.tsx
🚧 Files skipped from review as they are similar to previous changes (1)
  • src/main/ipc/plane-normalizers.ts

Included review availability: Your plan includes up to 10 reviews per rolling hour; 8 remain after this review.

@ugoenyioha

Copy link
Copy Markdown
Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Aug 16, 2026 •

Copy link
Copy Markdown
Contributor
✅ Action performed

Review finished.

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.

@nwparker nwparker removed the P2 label Aug 19, 2026
@rmerk

rmerk commented Sep 21, 2026

Copy link
Copy Markdown

Any update on this?

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Add native Plane task tracker integration

6 participants