Skip to content

feat(plane): add a native Plane (plane.so) task provider - #15329

Open
dragosboca wants to merge 4 commits into
stablyai:mainfrom
dragosboca:feat/plane-task-provider-contracts
Open

dragosboca wants to merge 4 commits into
stablyai:mainfrom
dragosboca:feat/plane-task-provider-contracts

Conversation

@dragosboca

@dragosboca dragosboca commented Aug 18, 2026 •

Copy link
Copy Markdown

ELI5

Orca can browse tasks from GitHub, GitLab, Linear and Jira. This adds Plane as a fifth. You connect it in Settings with a personal access token and your workspace slug — Plane Cloud or self-hosted — and Plane work items show up in the Tasks surface like any other provider.

What Changed

A native Plane task provider, following the account-backed pattern Linear and Jira use rather than the repo-backed gh/glab pattern — Plane ships no CLI to delegate to, so the app talks to its REST API directly.

Shared contracts — plane joins TaskProvider, WorkspaceLinkedItem['provider'] (plus planeIdentifier), IntegrationCredentialService, WorkspaceSourceSelectionKind, TaskProviderIdentity and WorkspaceIntentWorkItem. New: shared/plane-types.ts (the data model) and shared/plane-work-item-url.ts (parses both Plane routes — the shareable /{workspace}/browse/PROJ-123/ link and the in-app /projects/<uuid>/issues/<uuid> route).

Provider (src/main/plane/) — HTTP client over Electron's net.fetch so requests follow Chromium proxy/session state, a per-workspace encrypted credential store on the shared integration-credential-file helper, cursor pagination, a rate limiter for Plane's 60 requests/minute, and work item reads/writes.

Transport — ipcMain channels for local hosts, PLANE_METHODS over runtime RPC for remote/SSH hosts, the preload surface, and a renderer client that dispatches between them.

UI — connect dialog (Cloud/self-hosted), settings integration card, Tasks source entry and work item list.

Two changes outside Plane, both forced by the work rather than opportunistic:

  • JiraCancellableRequests → CancellableProviderRequests in cancellable-provider-requests.ts. Plane's search is hit per keystroke and needs the same cancellation, including its cancel-before-run tombstones; duplicating that race handling would have been worse than making it provider-neutral, which CONTRIBUTING.md asks for anyway. Jira's behaviour is unchanged and its tests still pass.
  • task-provider-labels.ts extracts the provider-label and provider-identity-label switches that were duplicated across the automations and task-source surfaces. Adding a fifth provider pushed two files past the 300-line max-lines limit; now adding a provider touches one switch per concern instead of three.

Why

TaskProvider and WorkspaceLinkedItem['provider'] are closed unions in src/shared/, and the plugin API exposes exactly one extension point (command) — so Plane support cannot come from a plugin. It has to be native.

Design decisions worth stating, since they are the ones a reviewer would otherwise have to reverse-engineer:

  • Plane stays visible in the source switcher while disconnected, following Jira rather than Linear. Jira's rule exists so the Tasks surface is its own onboarding entry point; hiding Plane until connected would mean a user has to already know it exists. Easy to flip if you disagree.
  • Self-hosted Plane and self-hosted Jira are indistinguishable from a bare URL — a Plane path (/{workspace}/browse/PROJ-123) also satisfies the existing Jira URL pattern. Provider sniffing from a URL is therefore limited to the *.plane.so cloud host; self-hosted items are identified by their stored identifier or by matching a connected workspace. Existing Jira classification is unchanged and asserted by test.
  • Plane exposes no workspace-list endpoint, so connect verifies the token with /users/me/ and then verifies the slug with one cheap scoped read. Without that a mistyped slug connects successfully and then 404s on every request.

Linked Issue

Part of #15328, which has the four-step plan and two open questions. This PR delivers the working feature; worktree linking (creating a workspace from a Plane URL) is the remaining step.

Visual Proof

Rendered with the repo's Playwright harness (tests/e2e/plane-task-source.spec.ts, @headful):

  1. Task Sources settings — Plane listed alongside the existing providers, disconnected, with its setup steps.
  2. Connect dialog, Plane Cloud — workspace slug + personal access token, no base URL.
  3. Connect dialog, self-hosted — the same, plus a base URL field.

Screenshots are attached below. There is no "before" for the Plane surfaces because they did not exist; the before state is the same pane without a Plane row.

Testing

pnpm typecheck                          # clean, all four projects
pnpm exec oxlint                        # clean, whole repo
pnpm run check:max-lines-ratchet        # clean
pnpm run check:reliability-gates        # clean
pnpm run verify:localization-catalog    # clean
pnpm run verify:localization-extraction # clean
pnpm run build                          # exit 0
pnpm run test
SKIP_BUILD=1 pnpm exec playwright test --project=electron-headful tests/e2e/plane-task-source.spec.ts

Unit/integration: 165 tests across the Plane modules, plus the e2e spec. Full suite: 20,575 passing. The failures on this machine are environment-specific — WSL separator behaviour, Windows shell quoting, *.electron browser cookie tests, real-zsh shell startup, relay pty timing — and I verified they reproduce on unmodified main rather than assuming it. A few perf-budget specs are load-sensitive under a 20k-test parallel run and pass in isolation.

Platforms: developed and tested on Linux. Nothing in the provider or transport is platform-dependent — no paths, shells, process spawning or keyboard handling.

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below

Verified by a maintainer (comment): end-to-end on macOS (Apple Silicon) against a real self-hosted Plane instance over HTTPS — connect, the Tasks surface, and creating a worktree from a work item with the link and deep link resolving. That covers the live-connection and macOS gaps this section previously listed.

Still not verified:

  • Light mode. I wrote a light-mode capture and deleted it: the theme assertion passed while the captured image stayed dark, so document.documentElement's dark class is not where this build carries the theme. A dark screenshot labelled "light" is worse than no light-mode coverage.
  • Plane Cloud, multiple connected workspaces, remote/SSH credential scope, and invalid-token error paths.
  • Windows.
  • Translations. Plane strings exist only in en.json, so the surface renders English inside a localized UI. Happy to generate ko/ja/zh entries on request; see the discussion below.

AI Disclosure

Written with Claude Opus 5 (Claude Code). The UI was implemented by Codex (gpt-5.6-sol) in a parallel worktree and reviewed before merging. Research, implementation, tests and this description were AI-assisted and reviewed by me before submitting.

Review

Three independent review passes ran over this branch, and they found disjoint problems — which is the main reason I would trust it more than a single pass:

Claude (/code-review) — 13 findings, including two that would have shipped broken:

  • plane.provider.v1 was declared but never added to RUNTIME_CAPABILITIES, which getStatus() filters to build the advertised set. A fully capable host never advertised it, so the renderer's gate refused every remote Plane call. The renderer test mocked the capability probe, so nothing caught it; there is now an assertion that the constant is registered.
  • connect() and testConnection() took a request-pool slot and then called into execute(), which takes another. Four concurrent calls held every outer slot while waiting for inner slots that could never free — wedging the provider for the process lifetime. Jira is safe with the same queue only because its request layer does not acquire internally.

Codex — 3 further findings Claude missed:

  • The rate budget was keyed by workspace, but Plane's allowance is per API key. One token connected to two workspaces could spend it twice and earn 429s for both. Worse, the existing test asserted the per-workspace split — it documented the bug as intended behaviour. Now keyed by a digest of the token; the raw token is never a map key nor logged.
  • Budget admission raced the request pool: requests already queued had passed the throttle check while the allowance was positive, and an earlier response exhausting it did not stop them being released. Admission now re-checks after taking a slot and gives the slot back if the budget went away.
  • normalizePlaneBaseUrl accepted userinfo, so https://user:pw@host persisted those credentials into plane-workspaces.json, which status hands to any renderer or paired client — escaping the boundary that keeps the token in the encrypted vault. plane-work-item-url.ts already rejected credentials for the same reason; the connect path now matches.

CodeRabbit — 1 finding: workItemKeyIdentifier preferred linearIdentifier even when the item declared provider: 'plane', so a stale cross-provider identifier could name the workspace.

Every finding is fixed and covered by a regression test.

Checked and clean across the passes: credential storage (atomic write, safeStorage, owner-only mode, never returned by status/list); the IPC/RPC trust boundary (the renderer echoes back a project it read earlier — only its identifier and name are trusted, and only for display keys and links, never authorization); ids are URL-encoded before entering Plane paths; no protocol-version bump needed since capability gating is the compatibility mechanism; cross-platform path handling; and credential ownership staying host-local so remote RPC resolves credentials on the remote runtime.

Agent skill upstream boundary

  • Not applicable — no skill-installer source, tests, fixtures, registry entries, path tables, comments or documentation is touched.

Notes

AGENTS.md points at a skill that is not shipped. Line 7 says to use the $electron skill for rendered UI checks, but it is not in the repo's skills/, not in Orca's bundled registry (orca skills list), and orca skills install only reads that registry — so an outside contributor cannot obtain it. I used the repo's own Playwright harness instead, which works well. Two things there cost me time and might be worth documenting: headless Electron cannot page.screenshot (no compositing surface) and its settings pane never settles as "stable" for pointer actions, so UI-proof specs need @headful; and openSettingsPage() switches the view while openSettingsTarget() only records the pane, so both are needed.

Happy to split this differently if a single PR is too large to review — it started as four incremental PRs and I consolidated it because the early ones changed no behaviour and gave a maintainer nothing to evaluate.

Checklist

  • This PR is small and focused — one feature, though not small
  • I explained what changed and why (including ELI5)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass locally

Author

  • X / Twitter: not on X — GitHub handle is @dragosboca if you credit contributors.

@coderabbitai

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

The change adds full Plane provider support. It introduces shared Plane types, URL parsing, workspace identity, credential storage, API clients, pagination, rate limiting, work-item mapping, and mutations. It adds IPC, preload, runtime RPC, and remote-client bridges. It adds settings integration, connection dialogs, task-page browsing, workspace creation flows, localization, provider identity handling, and linked-item support. Tests cover unit, integration, runtime, settings, and E2E behavior.

Merge Risk: 🟡 Moderate · up to bb910

Plane rate-limit responses can escape request bounds, and some Plane flows can mishandle malformed calls, multi-workspace grammar, or linked-item identity. These behaviors should be corrected before merge.

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description includes the required sections, explains the change and rationale, identifies issue #15328, provides visual proof details, testing results, AI disclosure, notes, and checklist status. … Resolve the reported blocking 429 response-body issue, or update the description to document its current status. Use the required Linked Issue format with an explicit issue reference such as “Fixes #15328” if appropriate.
Docstring Coverage ⚠️ Warning Docstring coverage is 17.79% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 163 functions across 54 files. 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 identifies the primary change: adding a native Plane task provider.
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.
Full details: Description check

Explanation

The description includes the required sections, explains the change and rationale, identifies issue #15328, provides visual proof details, testing results, AI disclosure, notes, and checklist status. However, it states that every review finding was fixed, while the latest review summary reports an unresolved blocking 429 response-body issue. It also uses “Part of #15328” instead of the template’s required “Fixes #” format.


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


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 58c34d7a-ba41-47e7-a4ab-5ebf8dedc3f3

📥 Commits

Reviewing files that changed from the base of the PR and between 2f0f9a8 and 3717040.

📒 Files selected for processing (32)
  • src/renderer/src/components/automations/automation-source-display.ts
  • src/renderer/src/components/automations/automation-target-availability.ts
  • src/renderer/src/components/new-workspace/SmartWorkspaceNameField.tsx
  • src/renderer/src/components/settings/TasksPane.test.tsx
  • src/renderer/src/components/settings/TasksPane.tsx
  • src/renderer/src/components/settings/task-source-setup-state.test.ts
  • src/renderer/src/components/settings/use-task-source-provider-readiness.ts
  • src/renderer/src/components/sidebar/folder-workspace-composer-helpers.ts
  • src/renderer/src/components/task-page-list-chrome-visibility.ts
  • src/renderer/src/components/task-provider-labels.ts
  • src/renderer/src/components/task-source-context-summary.ts
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/lib/worktree-palette-evidence.ts
  • src/renderer/src/store/slices/ui.ts
  • src/shared/integration-credential-errors.ts
  • src/shared/new-workspace/work-item-lookup-text.test.ts
  • src/shared/new-workspace/work-item-lookup-text.ts
  • src/shared/new-workspace/workspace-source.test.ts
  • src/shared/new-workspace/workspace-source.ts
  • src/shared/plane-types.ts
  • src/shared/plane-work-item-url.test.ts
  • src/shared/plane-work-item-url.ts
  • src/shared/task-provider-identity.test.ts
  • src/shared/task-provider-identity.ts
  • src/shared/task-providers.test.ts
  • src/shared/task-providers.ts
  • src/shared/workspace-linked-item-equality.test.ts
  • src/shared/workspace-linked-item-source-context.ts
  • src/shared/workspace-linked-item.ts
  • src/shared/workspace-name.test.ts
  • src/shared/workspace-name.ts
  • src/shared/worktree/types.ts

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

Comment thread src/shared/workspace-name.ts Resolved
@dragosboca

Copy link
Copy Markdown
Author

Pushed f5f2692 addressing the review note on workItemKeyIdentifier: the declared provider now selects which identifier field names the workspace (a partially populated item could otherwise be named after a stale key from another provider), and identifiers are trimmed before the truthiness check so a whitespace-only value reads as absent — matching what normalizeWorkspaceLinkedItem already stores. Two regression tests added.

Also updated the Testing section now that I can run the full CI-equivalent checks locally: pnpm test gives 55,826 passed / 34 failed across 20 files, and pnpm build succeeds. None of the failures are in code this PR touches — 17 of the 20 files fail identically on unmodified main (WSL, Windows shell quoting, *.electron, real-zsh, relay pty timing), and the other 3 pass in isolation on this branch, so they are load-sensitive under a 56k-test concurrent run. I checked palette-match-performance specifically because worktree-palette-document does transitively reach the worktree-palette-evidence.ts touched here; it passes alone.

On the docstring-coverage check: I have deliberately not padded comments to reach 80%, because AGENTS.md asks for the opposite — "Concise/Brief Non-obvious comments ONLY … DO NOT be verbose, explain the obvious". Happy to change that if you would rather satisfy the threshold.

@dragosboca
dragosboca marked this pull request as draft August 18, 2026 17:21
@dragosboca

Copy link
Copy Markdown
Author

Converting this to a draft and changing the plan: I had scoped this as the first of four incremental PRs (contracts → provider → Tasks surface → worktree linking), which was the wrong call for an outside contribution. On its own this PR changes no behaviour, so there is nothing for a maintainer to evaluate and no reason to merge it — and the same would have been true of the second. Incremental PRs like that need shared roadmap context I have not earned here.

So I am growing this branch into the complete feature instead: connect flow, Tasks surface entry, and creating a workspace from a Plane work item, as one reviewable change with a working feature at the end of it. I will retitle it, rewrite the description, and mark it ready for review once it actually does something a user can try.

The two design questions in #15328 still stand and would save me guessing — particularly whether Plane should follow Jira's always-visible availability gating or Linear's connected-gating. Happy to be told this is not a direction the project wants before I go further.

@dragosboca dragosboca changed the title feat(plane): add Plane to the shared task-provider contracts feat(plane): add a native Plane (plane.so) task provider Aug 19, 2026
@dragosboca
dragosboca marked this pull request as ready for review August 19, 2026 13:06

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

🧹 Nitpick comments (11)
tests/e2e/plane-task-source.spec.ts (1)

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

Reduce explanatory test comments.

These comments repeat the test title, assertions, or direct code behavior. Keep one short comment only where the direct store access and @headful directive need rationale.

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

Also applies to: 15-25, 29-31, 40-51, 67-67, 77-77, 85-85

Source: Coding guidelines

src/main/ipc/plane.ts (2)

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

Move this comment above requireProject.

The comment describes project fields taken on trust from the renderer. It sits above requireId, which validates a single id string. Place it above requireProject at Line 55 so the security rationale is attached to the function it explains.


68-70: 🗄️ Data Integrity & Integration | 🔵 Trivial | ⚡ Quick win

Skip blank titles in normalizeWorkItemUpdate. Plane’s Issue.name is non-blank, but the current code sends title: '' as name: ''. Ignore empty or whitespace-only titles before issuing the PATCH.

src/main/plane/authenticated-request.ts (1)

195-222: 🩺 Stability & Availability | 🔵 Trivial | ⚖️ Poor tradeoff

The throttle wait is outside the request deadline.

withDeadline starts after admit returns. admit can sleep up to five times, and getThrottleWaitMs caps each wait at 60 s, so one call can park for about five minutes before any deadline applies. An IPC caller without an AbortSignal has no bound. Consider starting the deadline before admit or capping the total admit time.

src/main/plane/provider-operations.test.ts (1)

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

The test name claims write coverage but only exercises a read.

planeSearchWorkItems is a read operation. No write operation such as planeUpdateWorkItem or planeCreateWorkItem is asserted here, and the ./work-item-write mocks at lines 28-32 are never referenced. Add a case that rejects from a write mock and asserts clearToken, or rename the test.

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

256-262: 🩺 Stability & Availability | 🔵 Trivial | ⚡ Quick win

Cancel the parked second request instead of leaving it pending.

second never settles inside the test. admit in src/main/plane/authenticated-request.ts sleeps on a real setTimeout for up to 60 s per wait and repeats up to five times, so an unresolved timer outlives the test. Pass an AbortController signal and abort it at the end so the sleep unwinds deterministically.

♻️ Proposed change
-    const second = plane.planeRequest(client, 'workspaces/acme/projects/')
+    const controller = new AbortController()
+    const second = plane.planeRequest(client, 'workspaces/acme/projects/', {
+      signal: controller.signal
+    })
     await new Promise((resolve) => setTimeout(resolve, 50))
     expect(released).toBe(1)
     void second.catch(() => undefined)
+    controller.abort()
src/main/plane/description-markdown.ts (1)

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

Shorten the implementation comments.

Keep only the non-obvious rationale. Remove comparisons and behavior descriptions that the code already shows.

  • src/main/plane/description-markdown.ts#L1-L6: Reduce the header to the conversion contract and parser rationale.
  • src/main/plane/cursor-pagination.ts#L1-L5: Reduce the pagination header to the rate-budget rationale.
  • src/main/plane/cursor-pagination.ts#L42-L44: State the exact-boundary reason in one line.
  • src/main/plane/work-item-mapping.ts#L24-L28: Reduce the null-mapping rationale to one line.
  • src/main/plane/work-items.ts#L46-L49: Reduce the workspace lookup explanation to one line.
  • src/main/plane/work-items.ts#L119-L121: Reduce the fallback explanation to one line.

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/main/runtime/rpc/methods/plane.ts (1)

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

Reduce the new implementation comments.

Keep the non-obvious rationale. Reduce each comment to one short sentence.

  • src/main/runtime/rpc/methods/plane.ts#L6-L8: shorten the limit-validation rationale.
  • src/main/runtime/rpc/methods/plane.ts#L24-L33: shorten the echoed-project and normalization rationale.
  • src/main/runtime/rpc/methods/plane.ts#L97-L101: shorten the capability-advertisement rationale.
  • src/main/runtime/rpc/methods/plane.ts#L169-L171: shorten the search-cancellation rationale.
  • src/shared/protocol-version.ts#L60-L64: shorten the capability-gating rationale.
  • src/main/runtime/rpc/methods/plane.test.ts#L9-L13: shorten the regression-history note.

As per coding guidelines: comments must be concise, non-obvious, and brief; prefer one line.

Source: Coding guidelines

src/preload/index.ts (1)

1951-2028: 🗄️ Data Integrity & Integration | 🔵 Trivial | ⚡ Quick win

Type the plane bridge against the PlaneApi contract.

Most methods in this block return Promise<unknown> or Promise<unknown[]> instead of the specific types declared in PlaneApi (src/preload/api/plane-api.ts). For example, status returns Promise<unknown> here but the contract declares Promise<PlaneConnectionStatus>. Only disconnect and cancelSearchWorkItems match the contract exactly.

This PR authored both the plane-api.ts contract and this block, so nothing prevents the two from silently diverging later. Add satisfies PreloadApi['plane'] to this object, and use the exported Plane* types from ../shared/plane-types for the loosely typed arguments and return values. The file's own top comment calls out "type-drift review" as the reason this surface is co-located, which this change does not yet benefit from.

♻️ Example of tightening a subset of the methods
-    status: (): Promise<unknown> => ipcRenderer.invoke('plane:status'),
+    status: (): Promise<PlaneConnectionStatus> => ipcRenderer.invoke('plane:status'),

-    selectWorkspace: (args: { workspaceId: string }): Promise<unknown> =>
+    selectWorkspace: (args: { workspaceId: PlaneWorkspaceSelection }): Promise<PlaneConnectionStatus> =>
       ipcRenderer.invoke('plane:selectWorkspace', args),

-    listProjects: (args?: { workspaceId?: string }): Promise<unknown[]> =>
+    listProjects: (args?: { workspaceId?: string }): Promise<PlaneProject[]> =>
       ipcRenderer.invoke('plane:listProjects', args),
-  plane: {
+  plane: {
     ...
-  },
+  } satisfies PreloadApi['plane'],
src/renderer/src/components/plane-connect-dialog.tsx (1)

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

Plane's new locale keys were hand-authored instead of generated by localize-renderer-strings.mjs. Every other localized string in this codebase uses a key made of the first 10 characters of the SHA-1 hash of <filePath>:<text>; the new Plane strings use literal words instead, so pnpm run sync:localization-catalog likely will not track or propagate them into the other locale files the same way.

  • src/renderer/src/components/plane-connect-dialog.tsx#L102-L141: regenerate keys such as title, description, deployment, selfHosted (and the remaining keys in this file at L58-L65, L146-L201, L219-L229) with the sync script.
  • src/renderer/src/components/task-page-localized-options.tsx#L135-L139: regenerate the plane entry's key to match the hash-based keys used by the sibling github/gitlab/linear/jira entries.
  • src/renderer/src/components/task-page-plane-surface.tsx#L78-L97: regenerate connectTitle, connectDescription, connect, hide (and the remaining keys at L111-L141, L157-L162) with the sync script.
  • src/renderer/src/components/task-page-plane-work-item-list.tsx#L21-L24: regenerate unassigned, start, startWorkspace, open, openPlane with the sync script.

Source: Learnings

src/renderer/src/runtime/runtime-plane-client.ts (1)

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

Shorten the capability comment.

Keep the non-obvious intent. Remove the detailed failure walkthrough.

Proposed change
-/**
- * A host built before the Plane provider has no `plane.*` methods at all, so an
- * ungated call fails with method_not_found and reads as a Plane outage. Callers
- * get this instead, which the UI can explain.
- */
+/** Map missing Plane capability to a user-actionable error. */

As per coding guidelines, “Comments must be concise, non-obvious, and brief—prefer one line.”

Source: Coding guidelines


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 59d25b43-688c-468e-85c4-61c43fc9b3bf

📥 Commits

Reviewing files that changed from the base of the PR and between f5f2692 and 2caed9864e93563cf25ed696e0d6c9b5177d26c1.

📒 Files selected for processing (62)
  • UI-NOTES.md
  • src/main/ipc/cancellable-provider-requests.test.ts
  • src/main/ipc/cancellable-provider-requests.ts
  • src/main/ipc/jira.ts
  • src/main/ipc/plane.test.ts
  • src/main/ipc/plane.ts
  • src/main/ipc/register-core-handlers.ts
  • src/main/plane/authenticated-request.ts
  • src/main/plane/client.test.ts
  • src/main/plane/client.ts
  • src/main/plane/cursor-pagination.test.ts
  • src/main/plane/cursor-pagination.ts
  • src/main/plane/description-markdown.test.ts
  • src/main/plane/description-markdown.ts
  • src/main/plane/project-metadata.test.ts
  • src/main/plane/project-metadata.ts
  • src/main/plane/provider-operations.test.ts
  • src/main/plane/provider-operations.ts
  • src/main/plane/request-queue.ts
  • src/main/plane/request-rate-limit.test.ts
  • src/main/plane/request-rate-limit.ts
  • src/main/plane/work-item-mapping.test.ts
  • src/main/plane/work-item-mapping.ts
  • src/main/plane/work-item-write.ts
  • src/main/plane/work-items.test.ts
  • src/main/plane/work-items.ts
  • src/main/plane/workspace-credential-store.ts
  • src/main/plane/workspace-identity.test.ts
  • src/main/plane/workspace-identity.ts
  • src/main/runtime/orca-runtime.ts
  • src/main/runtime/rpc/methods/index.ts
  • src/main/runtime/rpc/methods/plane.test.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/TaskPage.tsx
  • src/renderer/src/components/icons/PlaneIcon.tsx
  • src/renderer/src/components/plane-connect-args.test.ts
  • src/renderer/src/components/plane-connect-args.ts
  • src/renderer/src/components/plane-connect-dialog.tsx
  • src/renderer/src/components/settings/IntegrationsPane.tsx
  • src/renderer/src/components/settings/TaskSourceSimpleSetup.tsx
  • src/renderer/src/components/settings/TasksPane.test.tsx
  • src/renderer/src/components/settings/TasksPane.tsx
  • src/renderer/src/components/settings/plane-integration-card.tsx
  • src/renderer/src/components/settings/task-provider-integration-section-ids.ts
  • src/renderer/src/components/settings/use-task-source-provider-readiness.ts
  • src/renderer/src/components/task-page-localized-options.tsx
  • src/renderer/src/components/task-page-plane-surface.tsx
  • src/renderer/src/components/task-page-plane-work-item-list.test.tsx
  • src/renderer/src/components/task-page-plane-work-item-list.tsx
  • src/renderer/src/hooks/usePlaneConnection.ts
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/runtime/runtime-plane-client.test.ts
  • src/renderer/src/runtime/runtime-plane-client.ts
  • src/renderer/src/runtime/runtime-plane-target.ts
  • src/shared/plane-types.ts
  • src/shared/protocol-version.ts
  • src/shared/task-providers.test.ts
  • src/shared/task-providers.ts
  • tests/e2e/plane-task-source.spec.ts
🚧 Files skipped from review as they are similar to previous changes (1)
  • src/renderer/src/i18n/locales/en.json

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

Comment thread src/main/ipc/plane.test.ts Resolved
Comment thread src/main/ipc/plane.ts Resolved
Comment thread src/main/plane/authenticated-request.ts Resolved
Comment thread src/main/plane/client.test.ts Resolved
Comment thread src/main/plane/request-rate-limit.ts Resolved
@dragosboca

Copy link
Copy Markdown
Author

Pushed 5b697fe — all fourteen findings addressed in one commit, each with a regression test.

Two corrections to my own reasoning, since I got them wrong first:

normalizeTaskSourceContext really did reject plane. I initially checked isTaskProvider (which does accept it) and concluded the premise was wrong. It isn't — task-source-context.ts carries its own hand-written switch with default: return null, so every Plane source context normalized to null and tsc had nothing to flag. It now delegates to isTaskProvider so the two cannot drift again. This is the second finding of exactly this shape in the PR (the first was normalizeWorkspaceLinkedItem, an if-chain), which suggests it is worth knowing that adding a TaskProvider silently misses these two runtime validators.

The node:os mock. The existing 'os' mock does intercept it — the suite writes a token and reads it back from the temp home, and passes, which could not happen if the store were resolving the real homedir. So no credentials were being written outside the sandbox. I still added the explicit node:os mock, because relying on that resolution would silently put real credentials under a developer's home directory if it ever changed.

Everything else I took as written and fixed as described. The ones I would call out as genuinely load-bearing:

  • a retried 429 threw without parking the budget, so the next caller sent immediately;
  • a reset header reported in milliseconds parked a token beyond any wait a caller performs, guaranteeing admission gave up rather than recovering;
  • writes swallowed 401s, so a revoked token was never cleared until an unrelated read failed;
  • usePlaneConnection gave every consumer its own state, so connecting in the settings pane left the provider card showing "Connect required".

Gates: typecheck, oxlint, max-lines ratchet, reliability gates and both localization verifiers all clean. 1,218 tests pass across the Plane and settings suites.

@dragosboca

Copy link
Copy Markdown
Author

@coderabbitai review

@coderabbitai

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

Caution

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

⚠️ Outside diff range comments (2)
src/main/ipc/plane.ts (1)

154-160: 🩺 Stability & Availability | 🟡 Minor | ⚡ Quick win

Normalize missing IPC payloads before field access.

These handlers access args.project, args.key, or similar fields before validating args. A renderer call with null or no payload throws a TypeError instead of returning the channel-specific validation error.

  • src/main/ipc/plane.ts#L154-L160: normalize the payload before reading list-work-item fields.
  • src/main/ipc/plane.ts#L163-L180: normalize the payload before reading get-work-item and search fields.
  • src/main/ipc/plane.ts#L187-L226: normalize the payload before reading comment and mutation fields.
src/renderer/src/components/TaskPage.tsx (1)

8882-8908: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Add recordFeatureInteraction for Plane, matching sibling providers.

Every other "start workspace from provider item" handler records a feature interaction: handleUseWorkItem records 'github-tasks', handleUseGitLabItem records 'gitlab-tasks', handleUseLinearItem records 'linear-tasks', and handleUseJiraItem records 'jira-tasks'. handleUsePlaneItem does not record any interaction. Add the call so Plane usage is tracked consistently with the other providers.

🔧 Proposed fix
   const handleUsePlaneItem = useCallback(
     (item: PlaneWorkItem): void => {
+      useAppStore.getState().recordFeatureInteraction('plane-tasks')
       const linkedWorkItem: LinkedWorkItemSummary = {
🧹 Nitpick comments (1)
src/renderer/src/components/task-page-plane-surface.tsx (1)

42-69: 🩺 Stability & Availability | 🔵 Trivial | ⚡ Quick win

Failed project load leaves a persistent error banner with no retry.

The projects effect only reruns on [settings, status.connected]. If planeListProjects fails once after connecting, error is set and stays set: nothing in this effect clears it on a later run, and the refresh button in the header only bumps refreshNonce, which does not re-trigger this effect. The only way to retry is to leave the Plane tab and come back (remounting the component), which is not obvious to the user.

Give the project list its own retry path, for example by including refreshNonce in this effect's dependency list, or by adding a dedicated "Retry" action next to the error banner.


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: efc43692-234e-451a-a7fb-b4a8e29e0ec7

📥 Commits

Reviewing files that changed from the base of the PR and between 2caed9864e93563cf25ed696e0d6c9b5177d26c1 and 5b697fe8713b0fab4094f5a5c5dafbf2aa672987.

📒 Files selected for processing (19)
  • src/main/ipc/plane.test.ts
  • src/main/ipc/plane.ts
  • src/main/plane/authenticated-request.ts
  • src/main/plane/client.test.ts
  • src/main/plane/request-rate-limit.ts
  • src/main/plane/work-item-mapping.ts
  • src/main/plane/work-item-write.ts
  • src/main/plane/work-items.test.ts
  • src/main/plane/work-items.ts
  • src/renderer/src/components/TaskPage.tsx
  • src/renderer/src/components/plane-connect-dialog.tsx
  • src/renderer/src/components/settings/plane-integration-card.tsx
  • src/renderer/src/components/task-page-plane-item-source-context.test.ts
  • src/renderer/src/components/task-page-plane-item-source-context.ts
  • src/renderer/src/components/task-page-plane-surface.tsx
  • src/renderer/src/hooks/usePlaneConnection.test.ts
  • src/renderer/src/hooks/usePlaneConnection.ts
  • src/renderer/src/i18n/locales/en.json
  • src/shared/task-source-context.ts
🚧 Files skipped from review as they are similar to previous changes (2)
  • src/renderer/src/i18n/locales/en.json
  • src/main/ipc/plane.test.ts

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

Comment thread src/main/plane/work-items.ts Resolved
@dragosboca

Copy link
Copy Markdown
Author

Pushed 57d860d — both findings from this pass, in one commit.

The first one is worth naming as mine rather than the original code's: the relationship fallback I added last round only fired when mapping returned null, which only happens when the state cannot be resolved. A payload can expand state and still return bare ids for labels and assignees — mapping then succeeded and silently produced empty arrays. Reads and lists now compare what the payload offered against what resolved, so a partially expanded row is retried too. Covered by a test with an expanded state and bare label/assignee ids.

The selector narrowing is straightforward and correct: refreshPlaneConnection only reads activeRuntimeEnvironmentId, so subscribing to the whole settings object made every unrelated settings change re-fire the effect in every consumer and flip checking on a connection that had not moved.

Gates: typecheck, oxlint, max-lines ratchet, reliability gates and localization all clean. 1,980 tests pass across the Plane, hooks and settings suites.

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Aug 19, 2026 •

Copy link
Copy Markdown
Contributor

@dragosboca, thanks for the detailed update. I will review commit 57d860d, including the partial relationship-expansion fallback and the narrowed activeRuntimeEnvironmentId subscription.


✏️ Learnings added
Learnt from: dragosboca
URL: https://github.com/stablyai/orca/pull/15329

Timestamp: 2026-08-19T14:11:14.264Z
Learning: For the Plane provider, a work-item payload can expand `state` while returning bare IDs for labels and assignees. In `src/main/plane/work-items.ts`, relationship fallback must compare the relationships offered by the payload with the mapped relationships, not only retry when `mapPlaneWorkItem` returns `null`.

Note: Learnings are effective only in the context of similar code segments. To apply general coding guidelines, please configure review instructions. You can manage existing learnings in the app.

✅ 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 (1)
src/renderer/src/hooks/usePlaneConnection.ts (1)

45-66: 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Scope in-flight requests to the active runtime environment.

If activeRuntimeEnvironmentId changes while a request is pending, Lines 46-48 return the request for the previous environment. That request can commit its result at Line 52 after the new environment is active. The UI can then show the previous environment’s Plane connection status until another manual refresh.

Key the in-flight request by activeRuntimeEnvironmentId. Start a new request when the ID changes. Guard state commits and in-flight cleanup with a request generation so an older request cannot overwrite the newer result. Add a test that switches environments before the first status request resolves.

🧹 Nitpick comments (1)
src/main/plane/work-items.ts (1)

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

Shorten the new implementation comments.

Keep only the non-obvious rationale in each comment. Use one concise line where possible.

  • src/main/plane/work-items.ts#L88-L93: reduce the fallback rationale to one short statement.
  • src/main/plane/work-items.test.ts#L207-L209: reduce the regression note to one short statement.
  • src/renderer/src/hooks/usePlaneConnection.ts#L77-L79: reduce the selector rationale to one short statement.

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


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 4984b1ab-c1e1-481f-a15a-871d70e69187

📥 Commits

Reviewing files that changed from the base of the PR and between 5b697fe8713b0fab4094f5a5c5dafbf2aa672987 and 57d860d4a14452c2c55d34a61702f43e2517c419.

📒 Files selected for processing (3)
  • src/main/plane/work-items.test.ts
  • src/main/plane/work-items.ts
  • src/renderer/src/hooks/usePlaneConnection.ts

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

@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


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: aaae03c5-b75c-477e-b8e4-ed1b7c0e60f6

📥 Commits

Reviewing files that changed from the base of the PR and between 5b697fe8713b0fab4094f5a5c5dafbf2aa672987 and 57d860d4a14452c2c55d34a61702f43e2517c419.

📒 Files selected for processing (3)
  • src/main/plane/work-items.test.ts
  • src/main/plane/work-items.ts
  • src/renderer/src/hooks/usePlaneConnection.ts

Included review availability: Your plan provides up to 10 included reviews per hour; 7 remain after this review.

@dragosboca

Copy link
Copy Markdown
Author

Pushed 77ccdcf.

The in-flight scoping issue was raised twice this pass — once as an outside-diff comment on the review body and once inline — and both describe the same defect. It is fixed: the in-flight entry is keyed by runtime environment, and a generation counter stops a superseded request committing over a newer result. Two tests cover it, one asserting a mid-flight environment switch starts a second request, one asserting repeat refreshes for a single environment still collapse into one call.

Worth being explicit that this was a regression from my own shared-store change two commits ago, not from the original per-hook state — as was the settings-selector issue in the previous pass. Consolidating four independent hooks into one store fixed the stale-card problem and introduced two narrower ones; each subsequent pass caught the next.

Also trimmed three implementation comments to one line each, per AGENTS.md.

Gates: typecheck, oxlint, max-lines ratchet, reliability gates and localization all clean.

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Aug 19, 2026 •

Copy link
Copy Markdown
Contributor
🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

git show --stat --oneline --decorate --no-renames 77ccdcf
git show --format=fuller --no-ext-diff --unified=80 --no-renames 77ccdcf -- \
  src/renderer/src/hooks/usePlaneConnection.ts \
  src/renderer/src/hooks/usePlaneConnection.test.ts

ast-grep outline src/renderer/src/hooks/usePlaneConnection.ts --items all
ast-grep outline src/renderer/src/hooks/usePlaneConnection.test.ts --items all

rg -n -C 4 '\b(refreshPlaneConnection|usePlaneConnection)\s*\(' \
  src/renderer/src -g '*.ts' -g '*.tsx'

Length of output: 23447


🏁 Script executed:

#!/bin/bash
set -euo pipefail

git show --format= --no-ext-diff --unified=100 77ccdcf -- \
  src/main/plane/work-items.ts \
  src/main/plane/work-items.test.ts

sed -n '1,160p' src/renderer/src/hooks/usePlaneConnection.ts
sed -n '1,150p' src/renderer/src/hooks/usePlaneConnection.test.ts

rg -n -C 3 '\bplaneStatus\s*\(' \
  src/renderer/src/runtime src/main/runtime src/preload src/main/ipc \
  -g '*.ts' -g '*.tsx'

rg -n -C 3 '\b(status|checking|error)\b' \
  src/renderer/src/components/settings/plane-integration-card.tsx \
  src/renderer/src/components/task-page-plane-surface.tsx \
  src/renderer/src/components/settings/use-task-source-provider-readiness.ts

Length of output: 43302


@dragosboca: I reviewed commit 77ccdcf.

The environment key and generation guard correctly prevent an older request from committing after an environment switch. The current request alone clears inFlight.

I found no blocking implementation issue.

One non-blocking test gap remains. The environment-switch test verifies that both requests start. It does not verify that the second environment status remains in the shared snapshot after the first request resolves. Add a state assertion after both promises settle to cover the generation guard directly.

🐇


✏️ Learnings added
Learnt from: dragosboca
URL: https://github.com/stablyai/orca/pull/15329

Timestamp: 2026-08-19T14:19:50.438Z
Learning: In `src/renderer/src/hooks/usePlaneConnection.ts`, the shared Plane connection refresh state must scope in-flight requests to `activeRuntimeEnvironmentId`. A generation guard must prevent a request for a previous runtime environment from committing after a newer environment refresh begins.

Note: Learnings are effective only in the context of similar code segments. To apply general coding guidelines, please configure review instructions. You can manage existing learnings in the app.

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

🧹 Nitpick comments (1)
src/renderer/src/hooks/usePlaneConnection.test.ts (1)

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

Assert the final state for env-b.

This test verifies two requests start. It does not verify that the env-b result remains in the shared snapshot after env-a resolves. Assert the final status after Promise.all.


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 2642dfdc-dea4-4056-861b-277c0a584fbb

📥 Commits

Reviewing files that changed from the base of the PR and between 57d860d4a14452c2c55d34a61702f43e2517c419 and 77ccdcfb7c9aa155ad1ed3fc50f9ae1e60beb807.

📒 Files selected for processing (4)
  • src/main/plane/work-items.test.ts
  • src/main/plane/work-items.ts
  • src/renderer/src/hooks/usePlaneConnection.test.ts
  • src/renderer/src/hooks/usePlaneConnection.ts
🚧 Files skipped from review as they are similar to previous changes (2)
  • src/main/plane/work-items.test.ts
  • src/main/plane/work-items.ts

Included review availability: Your plan provides up to 10 included reviews per hour; 6 remain after this review.

@dragosboca

Copy link
Copy Markdown
Author

Pushed e415f21.

Fair nitpick and worth taking: the environment-scoping test asserted that two requests start, but not that the newer result survives — which is the only thing the generation guard exists to do. It now resolves the superseded env-a request last, with a status that disagrees with env-b's, and asserts the shared snapshot still holds env-b's result. Without the guard that assertion fails, which is what makes it worth having.

getPlaneConnectionSnapshot exposes the shared state for that assertion, and is useful for any non-React caller.

Gates: typecheck, oxlint, max-lines ratchet and reliability gates clean. 895 tests pass across the Plane and hooks suites.

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Tip

For best results, initiate chat on the files or code changes.

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

git show --stat --oneline --decorate --no-renames e415f21
git show --format=fuller --no-ext-diff --unified=100 --no-renames e415f21 -- \
  src/renderer/src/hooks/usePlaneConnection.ts \
  src/renderer/src/hooks/usePlaneConnection.test.ts

ast-grep outline src/renderer/src/hooks/usePlaneConnection.ts --items all
ast-grep outline src/renderer/src/hooks/usePlaneConnection.test.ts --items all

rg -n -C 4 '\b(getPlaneConnectionSnapshot|refreshPlaneConnection|usePlaneConnection)\s*\(' \
  src/renderer/src -g '*.ts' -g '*.tsx'

Length of output: 24193


@dragosboca: I reviewed commit e415f21.

The regression test now verifies the generation guard directly. It resolves the superseded env-a request last and confirms that the shared snapshot keeps the newer env-b status.

getPlaneConnectionSnapshot() provides the required non-React test access. I found no blocking issue.


🧠 Learnings used
Learnt from: dragosboca
Repo: stablyai/orca PR: 0
File: :0-0
Timestamp: 2026-08-19T14:19:50.438Z
Learning: In `src/renderer/src/hooks/usePlaneConnection.ts`, the shared Plane connection refresh state must scope in-flight requests to `activeRuntimeEnvironmentId`. A generation guard must prevent a request for a previous runtime environment from committing after a newer environment refresh begins.

If you found this review helpful, would you consider giving us a shout-out on X?

Thank you for using CodeRabbit!

You are interacting with an AI system.

@kimnamwook1

Copy link
Copy Markdown

Tested this end-to-end at e415f213fe on macOS (Apple Silicon), dev build, against a real self-hosted Plane instance over HTTPS with a personal access token.

What worked:

  • Connect dialog (Self-hosted → base URL + workspace slug + PAT) → Connected on the first try; credentials stored runtime-side as described.
  • Tasks surface: Plane appears next to GitHub/GitLab/Jira, the project combo populated, and 7 work items rendered with identifier, title, project, state group, and assignee. Refresh works.
  • "Start workspace from TECHT-5" opened the worktree composer with the smart name prefilled (techt-5-4.-visualize-your-work), and the created worktree carries the linked work item — provider: plane, planeIdentifier: TECHT-5, and a deep link (…/techtainment/browse/TECHT-5/) that resolves against my instance.
  • vitest run over the 11 Plane test files: 161/161 pass locally.

Findings:

  1. pnpm run verify:localization-coverage currently fails on this branch: src/renderer/src/components/plane-connect-dialog.tsx:141 (jsx-text "Plane Cloud"), :155 and :171 (placeholders). These need catalog entries or reviewed allowlist exclusions, since this gate runs as part of pnpm lint.
  2. The Plane strings only exist in en.json — ko/ja/zh have no Plane entries, so the whole Plane surface renders in English inside a localized UI. Fine if translations land separately; just flagging the intent question.
  3. Cosmetic: a work item titled "4. Visualize your work 🔮" produces the branch techt-5-4.-visualize-your-work — the embedded ordinal leaves a .- cluster. The smart-name sanitizer might want to strip trailing dots from segments.

Not covered by my run: Plane Cloud, multiple connected workspaces, remote runtime/SSH credential scope, and invalid-token error paths.

@dragosboca

Copy link
Copy Markdown
Author
1-task-sources-settings 2-connect-dialog-cloud 3-connect-dialog-self-hosted

@dragosboca

Copy link
Copy Markdown
Author

Thanks — that's the most useful thing anyone could have done with this, and it caught something I had verified badly.

Finding 1 is fixed in d24cbb3, and it was worse than one gate. Chasing it turned up a second failure in the same pipeline:

  • verify:localization-coverage — the three connect-dialog strings now go through translate() rather than an allowlist exclusion, matching jira-connect-dialog.tsx, which localizes its own example URL and username placeholders.
  • oxlint --type-aware — declaredKeyIdentifier in workspace-name.ts used a default clause, leaving the switch non-exhaustive. The remaining providers are listed explicitly now, so the exhaustiveness check flags the next provider added to the union instead of it silently falling through.

The root cause of my missing both: I had been running oxlint and the individual localization verifiers directly rather than pnpm lint, so I reported "lint clean" against a subset. pnpm lint now passes end to end, alongside typecheck, the max-lines ratchet and the reliability gates.

Finding 2 — translations. Only en.json has Plane entries, so the surface renders English inside a localized UI, exactly as you describe. I'd rather not guess your intent here, so: I'm happy to generate ko/ja/zh entries for the Plane strings if you want them in this PR — they'd be machine translations that a native speaker should review before they're trusted, and the repo's existing coverage sits around 89-90% for those locales, so shipping Plane English-only is consistent with the current state. Say the word either way and I'll do it or leave it.

Finding 3 — the .- cluster. Leaving it, deliberately. The fix belongs in slugifyForWorkspaceName, which every provider's branch naming flows through, so stripping trailing dots from segments would change branch names for GitHub, GitLab, Linear and Jira too. That's a behaviour change to shared naming that has nothing to do with Plane, and it doesn't belong in this PR. Happy to open it separately if you'd like it fixed.

Also noting what your run covered that mine could not: a real self-hosted instance over HTTPS, on macOS, through the full create-workspace loop. Both were listed as unverified in the description — I'll update that section.

@greptile-apps

greptile-apps Bot commented Aug 24, 2026

Copy link
Copy Markdown

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

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

@dragosboca
dragosboca force-pushed the feat/plane-task-provider-contracts branch from 9f1e941 to 7ad991f Compare August 25, 2026 01:31
@iSevenDays

Copy link
Copy Markdown

I did test it on couple of my projects and it worked pretty well! When people search for alternative to Linear, Plane comes up first. I think this should be merged and natively supported. Thanks for the PR!

Adds Plane (Cloud and self-hosted) as a first-class task provider: shared
contracts and work-item URL parsing, a main-process client with credential
storage, request queueing and rate-limit handling, IPC/preload/runtime RPC
wiring behind the plane.provider.v1 capability, the Tasks-page surface,
settings integration card and connect dialog, and workspace creation from a
Plane work item.

Rebased onto main after the task page, smart workspace name field, preload
bridges and runtime edge commands were restructured upstream; the Plane
pieces now follow those layouts (task-page/plane/Content.tsx,
preload/api/plane-bridge.ts, runtime-plane-commands.ts).

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Dyq2hpQqTMJGhgtQvd9pdz
@dragosboca
dragosboca force-pushed the feat/plane-task-provider-contracts branch from 7ad991f to ac9ece0 Compare September 4, 2026 13:23
@dragosboca

Copy link
Copy Markdown
Author

@coderabbitai full review

@coderabbitai

coderabbitai Bot commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor
✅ Action performed

Full review finished.

@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/shared/workspace-linked-item-source-context.ts (1)

40-41: 🗄️ Data Integrity & Integration | 🟠 Major | 🏗️ Heavy lift

Persist and compare Plane workspace/project identity.

useTaskPageComposerActions stores only planeIdentifier on the linked item. The workspace and project IDs exist only in TaskSourceContext.providerIdentity. The matcher then accepts any provider: 'plane' context, so identical keys can use an unrelated Plane source. Persist the normalized Plane identity with WorkspaceLinkedItem, preserve it during normalization and creation, and compare it with context.providerIdentity. Treat missing identity as non-matching.

🧹 Nitpick comments (1)
src/renderer/src/i18n/locales/en.json (1)

11757-11757: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick win

Add plural forms for connectedDescription.

connectedDescription reads "{{count}} workspace connected". When workspaces.length is 2 or more, this renders as "2 workspace connected," which is grammatically incorrect. This catalog already handles the same pattern correctly elsewhere with _one/_other suffixes (for example, connectedHostCount_one/connectedHostCount_other).

Add plural variants for this key:

💚 Proposed fix
-        "connectedDescription": "{{count}} workspace connected",
+        "connectedDescription_one": "{{count}} workspace connected",
+        "connectedDescription_other": "{{count}} workspaces connected",

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Team

Run ID: 385d49ac-2d06-47fb-a89d-ee529e891aba

📥 Commits

Reviewing files that changed from the base of the PR and between 0d2375a and ac9ece0.

📒 Files selected for processing (98)
  • UI-NOTES.md
  • src/main/ipc/cancellable-provider-requests.test.ts
  • src/main/ipc/cancellable-provider-requests.ts
  • src/main/ipc/jira.ts
  • src/main/ipc/plane.test.ts
  • src/main/ipc/plane.ts
  • src/main/ipc/register-core-handlers/register-core-handlers.ts
  • src/main/plane/authenticated-request.ts
  • src/main/plane/client.test.ts
  • src/main/plane/client.ts
  • src/main/plane/cursor-pagination.test.ts
  • src/main/plane/cursor-pagination.ts
  • src/main/plane/description-markdown.test.ts
  • src/main/plane/description-markdown.ts
  • src/main/plane/project-metadata.test.ts
  • src/main/plane/project-metadata.ts
  • src/main/plane/provider-operations.test.ts
  • src/main/plane/provider-operations.ts
  • src/main/plane/request-queue.ts
  • src/main/plane/request-rate-limit.test.ts
  • src/main/plane/request-rate-limit.ts
  • src/main/plane/work-item-mapping.test.ts
  • src/main/plane/work-item-mapping.ts
  • src/main/plane/work-item-write.ts
  • src/main/plane/work-items.test.ts
  • src/main/plane/work-items.ts
  • src/main/plane/workspace-credential-store.ts
  • src/main/plane/workspace-identity.test.ts
  • src/main/plane/workspace-identity.ts
  • src/main/runtime/rpc/methods/index.ts
  • src/main/runtime/rpc/methods/plane.test.ts
  • src/main/runtime/rpc/methods/plane.ts
  • src/main/runtime/runtime-edge-command-controller.ts
  • src/main/runtime/runtime-plane-commands.ts
  • src/preload/api-types.ts
  • src/preload/api/plane-api.ts
  • src/preload/api/plane-bridge.ts
  • src/preload/index.ts
  • src/renderer/src/components/automations/automation-source-display.ts
  • src/renderer/src/components/automations/automation-target-availability.ts
  • src/renderer/src/components/icons/PlaneIcon.tsx
  • src/renderer/src/components/new-workspace/smart-workspace-name-field-model.ts
  • src/renderer/src/components/new-workspace/smart-workspace-source-row-content.tsx
  • src/renderer/src/components/plane-connect-args.test.ts
  • src/renderer/src/components/plane-connect-args.ts
  • src/renderer/src/components/plane-connect-dialog.tsx
  • src/renderer/src/components/settings/IntegrationsPane.tsx
  • src/renderer/src/components/settings/TaskSourceSimpleSetup.tsx
  • src/renderer/src/components/settings/TasksPane.test.tsx
  • src/renderer/src/components/settings/TasksPane.tsx
  • src/renderer/src/components/settings/plane-integration-card.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/use-task-source-provider-readiness.ts
  • src/renderer/src/components/sidebar/folder-workspace-composer-helpers.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-page-plane-item-source-context.test.ts
  • src/renderer/src/components/task-page-plane-item-source-context.ts
  • src/renderer/src/components/task-page-plane-surface.tsx
  • src/renderer/src/components/task-page-plane-work-item-list.test.tsx
  • src/renderer/src/components/task-page-plane-work-item-list.tsx
  • src/renderer/src/components/task-page-source-context.tsx
  • src/renderer/src/components/task-page/Content.tsx
  • src/renderer/src/components/task-page/plane/Content.tsx
  • src/renderer/src/components/task-provider-labels.ts
  • src/renderer/src/components/task-source-context-summary.ts
  • src/renderer/src/components/use-task-page-composer-actions.ts
  • src/renderer/src/hooks/composer-state/derived-model.ts
  • src/renderer/src/hooks/usePlaneConnection.test.ts
  • src/renderer/src/hooks/usePlaneConnection.ts
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/lib/worktree-palette-evidence.ts
  • src/renderer/src/runtime/runtime-plane-client.test.ts
  • src/renderer/src/runtime/runtime-plane-client.ts
  • src/renderer/src/runtime/runtime-plane-target.ts
  • src/renderer/src/store/slices/ui/ui-slice-contract-core.ts
  • src/shared/integration-credential-errors.ts
  • src/shared/new-workspace/work-item-lookup-text.test.ts
  • src/shared/new-workspace/work-item-lookup-text.ts
  • src/shared/new-workspace/workspace-source.test.ts
  • src/shared/new-workspace/workspace-source.ts
  • src/shared/plane-types.ts
  • src/shared/plane-work-item-url.test.ts
  • src/shared/plane-work-item-url.ts
  • src/shared/protocol-version.ts
  • src/shared/task-provider-identity.test.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-equality.test.ts
  • src/shared/workspace-linked-item-source-context.ts
  • src/shared/workspace-linked-item.ts
  • src/shared/workspace-name.test.ts
  • src/shared/workspace-name.ts
  • src/shared/worktree/types.ts
  • tests/e2e/plane-task-source.spec.ts

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

Comment thread src/main/ipc/plane.ts Resolved
Comment thread src/main/plane/authenticated-request.ts Resolved
Comment thread src/main/plane/authenticated-request.ts Resolved
Comment thread src/main/plane/client.test.ts Resolved
Comment thread src/main/plane/cursor-pagination.ts Resolved
Comment thread src/main/plane/work-item-write.ts Resolved
Comment thread src/main/plane/workspace-identity.ts Resolved
- Credentialed requests no longer follow redirects, so X-API-Key cannot be
  replayed against another origin.
- Plain http base URLs are rejected except for loopback hosts; the PAT
  otherwise travels in the clear.
- The request-pool slot and 30s deadline now cover body consumption, and a
  429 retry re-admits only after the first slot is released.
- Array ids are trimmed at the IPC boundary; a create response with a
  non-positive sequence id is reported instead of producing a key the parser
  refuses; a non-array `results` page is treated as empty.
- The Tasks surface is keyed by the active Plane workspace so a reconnect
  drops the previous workspace's projects and items.
- The throttle test aborts its parked request instead of leaking the timer.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Dyq2hpQqTMJGhgtQvd9pdz
@dragosboca

Copy link
Copy Markdown
Author

Pushed bb910a834 — all nine findings from this pass, each with a regression test:

  • Redirects: credentialed requests now use redirect: 'error', so X-API-Key can never be replayed against a redirect target (covers both the cross-origin and https→http cases).
  • Plain http: normalizePlaneBaseUrl rejects http: except for loopback hosts (localhost, 127.x, [::1]), so a local dev instance still works but a PAT never leaves the machine in the clear. Main-process validation is authoritative; the renderer's connect args pass through to it.
  • Slot and deadline through the body: execute now consumes the body inside the same try/finally that owns the pool slot and the 30s deadline; the 429 retry re-admits only after the first slot is given back. Test drives five requests with stalled bodies and asserts the fifth fetch waits for a body to finish.
  • Trim array ids, positive sequence id on create (same rule as parsePlaneWorkItemKey), non-array results treated as an empty page.
  • Stale workspace data: the Tasks surface renders the project/work-item state in a child keyed by activeWorkspaceId, so a reconnect remounts it instead of showing the previous workspace until the next fetch lands.
  • Throttle test aborts its parked request and awaits the AbortError.

Gates: typecheck, oxlint, react-doctor, oxfmt, and 208 Plane tests clean.

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor
🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

git show --stat --oneline --decorate --no-renames bb910a834
git diff-tree --no-commit-id --name-only -r bb910a834

git show --format=fuller --no-ext-diff --unified=100 --no-renames bb910a834 -- \
  src/main/plane/authenticated-request.ts \
  src/main/plane/authenticated-request.test.ts \
  src/main/plane/workspace-identity.ts \
  src/main/plane/workspace-identity.test.ts \
  src/main/plane/work-items.ts \
  src/main/plane/work-items.test.ts \
  src/main/plane/work-item-write.ts \
  src/main/plane/work-items.test.ts \
  src/renderer/src/components/task-page-plane-surface.tsx \
  src/main/plane/request-rate-limit.test.ts \
  src/main/plane/request-queue.ts

ast-grep outline src/main/plane/authenticated-request.ts --items all
ast-grep outline src/main/plane/workspace-identity.ts --items all
ast-grep outline src/main/plane/work-items.ts --items all
ast-grep outline src/main/plane/work-item-write.ts --items all
ast-grep outline src/renderer/src/components/task-page-plane-surface.tsx --items all

Length of output: 50028


🏁 Script executed:

#!/bin/bash
set -euo pipefail

git show --format= --no-ext-diff --unified=120 bb910a834 -- \
  src/main/ipc/plane.ts \
  src/main/ipc/plane.test.ts \
  src/main/plane/client.test.ts \
  src/main/plane/cursor-pagination.ts \
  src/main/plane/cursor-pagination.test.ts

sed -n '1,320p' src/main/plane/authenticated-request.ts
sed -n '1,130p' src/main/plane/cursor-pagination.ts
sed -n '1,280p' src/main/ipc/plane.ts
sed -n '1,280p' src/renderer/src/components/task-page-plane-surface.tsx

rg -n -C 4 '\b(TaskPagePlaneSurface|PlaneWorkspaceWorkItems)\b' \
  src/renderer/src -g '*.test.ts' -g '*.test.tsx' -g '*.tsx'

rg -n -C 4 '\b(getPlaneRuntimeTarget|planeListProjects|planeListWorkItems)\s*\(' \
  src/renderer/src/runtime src/renderer/src/components -g '*.ts' -g '*.tsx'

rg -n -C 4 '\b(redirect|stalled|429|REQUEST_DEADLINE_MS|response\.json|response\.body)\b' \
  src/main/plane -g '*.test.ts' -g '*.ts'

Length of output: 89174


@dragosboca: I found one blocking issue in commit bb910a834.

execute does not consume or cancel the first HTTP 429 response body before it releases the request-pool slot and starts the retry. At Line 242, the code sets retry = true. It then reaches the finally block at Line 252. The deadline ends and the slot releases, but response.body remains unread.

If a server sends 429 headers and stalls its body, that response escapes both the 30-second deadline and the four-request pool bound. The retry can then start while the original stream remains open.

Before setting up the retry, consume the body or call await response.body?.cancel(). Add a regression test with a first 429 response that has a stalled ReadableStream. The test should verify that the retry does not start until the first response body is cancelled or completed.


✏️ Learnings added
Learnt from: dragosboca
URL: https://github.com/stablyai/orca/pull/15329

Timestamp: 2026-09-04T14:15:59.885Z
Learning: In `src/main/plane/authenticated-request.ts`, every Plane HTTP response, including a retryable first 429 response, must have its body consumed or cancelled before the request deadline ends and the request-pool slot is released. Otherwise, a stalled 429 response body can escape request concurrency and deadline bounds while a retry begins.

Note: Learnings are effective only in the context of similar code segments. To apply general coding guidelines, please configure review instructions. You can manage existing learnings in the app.

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

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Team

Run ID: 1dd8a480-170a-4f9f-b9bb-8dd36fc97f2e

📥 Commits

Reviewing files that changed from the base of the PR and between ac9ece0 and bb910a8.

📒 Files selected for processing (11)
  • src/main/ipc/plane.test.ts
  • src/main/ipc/plane.ts
  • src/main/plane/authenticated-request.ts
  • src/main/plane/client.test.ts
  • src/main/plane/cursor-pagination.test.ts
  • src/main/plane/cursor-pagination.ts
  • src/main/plane/work-item-write.ts
  • src/main/plane/work-items.test.ts
  • src/main/plane/workspace-identity.test.ts
  • src/main/plane/workspace-identity.ts
  • src/renderer/src/components/task-page-plane-surface.tsx
🚧 Files skipped from review as they are similar to previous changes (1)
  • src/main/ipc/plane.test.ts

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

Comment thread src/main/plane/authenticated-request.ts Resolved
The retry path never reads the 429 body, so it was left to stall after the
pool slot and deadline were released. Cancel it while both still apply.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Dyq2hpQqTMJGhgtQvd9pdz
@dragosboca

Copy link
Copy Markdown
Author

Pushed 7ac54edc4 for the remaining finding: the retried first 429 now has its body cancelled (await response.body?.cancel()) inside the same try that owns the pool slot and deadline, before retry is set. Regression test returns a 429 with a stalled ReadableStream body and asserts it was cancelled before the second fetch is issued.

Gates: typecheck, oxlint, oxfmt, and the Plane suites (134 tests) clean.

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Tip

For best results, initiate chat on the files or code changes.

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

git show --stat --oneline --decorate --no-renames 7ac54edc4
git show --format=fuller --no-ext-diff --unified=100 --no-renames 7ac54edc4 -- \
  src/main/plane/authenticated-request.ts \
  src/main/plane/authenticated-request.test.ts \
  src/main/plane/client.test.ts

ast-grep outline src/main/plane/authenticated-request.ts --items all
ast-grep outline src/main/plane/authenticated-request.test.ts --items all

rg -n -C 6 '\b(execute|retry|noteRateLimited|response\.body|\.cancel\(|REQUEST_DEADLINE_MS|release)\b' \
  src/main/plane/authenticated-request.ts \
  src/main/plane/authenticated-request.test.ts \
  src/main/plane/client.test.ts

Length of output: 29044


🏁 Script executed:

#!/bin/bash
set -euo pipefail

sed -n '45,165p' src/main/plane/authenticated-request.ts
sed -n '214,265p' src/main/plane/authenticated-request.ts
sed -n '1,180p' src/main/plane/request-queue.ts
sed -n '1,150p' src/main/plane/request-queue.test.ts 2>/dev/null || true

rg -n -C 5 '\b(cancel\(\).*Promise|cancel\(\).*new Promise|ReadableStream|withDeadline|TimeoutError|REQUEST_DEADLINE_MS' \
  src/main/plane src/main -g '*.test.ts' -g '*.ts'

Length of output: 8343


@dragosboca: I reviewed commit 7ac54edc4.

The retry no longer starts before the first 429 body cancellation completes. The regression test verifies that behavior.

I found one blocking issue. At Line 245, await response.body?.cancel() is not bounded by deadline.signal. If the stream’s cancel() promise never settles, the deadline aborts but execute() remains blocked. The finally block does not run, so the request-pool slot remains held after REQUEST_DEADLINE_MS.

Race body cancellation against the deadline signal. Ensure the slot releases when the deadline expires, even if stream cancellation does not settle. Add a regression test with a 429 ReadableStream whose cancel() returns a pending promise. Verify that the request rejects at the deadline and that a queued request can acquire the released slot.

I used the existing response-body lifecycle guidance for this review.


🧠 Learnings used
Learnt from: dragosboca
URL: https://github.com/stablyai/orca/pull/15329

Timestamp: 2026-09-04T14:15:59.896Z
Learning: In `src/main/plane/authenticated-request.ts`, every Plane HTTP response, including a retryable first 429 response, must have its body consumed or cancelled before the request deadline ends and the request-pool slot is released. Otherwise, a stalled 429 response body can escape request concurrency and deadline bounds while a retry begins.

You are interacting with an AI system.

@dragosboca

Copy link
Copy Markdown
Author

@pullfrog review

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

ℹ️ No critical issues — the Plane provider is well-structured and heavily tested; two minor suggestions inline plus one scoping question below.

Reviewed changes

Reviewed the full addition of a native Plane (plane.so) task provider plus two supporting refactors, 98 files spanning shared contracts, the main-process provider, IPC/RPC transport, and renderer surfaces.

  • Shared contracts — plane joins TaskProvider, WorkspaceLinkedItem['provider'], TaskProviderIdentity, WorkspaceSourceSelectionKind and WorkspaceIntentWorkItem; new plane-types.ts data model and plane-work-item-url.ts parser covering both the shareable /browse/PROJ-123/ and in-app /projects/<uuid>/issues/<uuid> routes.
  • Provider core — src/main/plane/ delivers an authenticated net.fetch client with a request deadline and redirect: 'error' hardening, a per-workspace encrypted credential store layered on the shared integration-credential-file helper, cursor pagination with truncation reporting, a per-API-key (token-digest) rate limiter, and a 4-slot request pool.
  • Transport — plane:* IPC handlers, PLANE_METHODS runtime RPC gated on a new plane.provider.v1 capability, the preload bridge, and a renderer client that dispatches between local and remote.
  • UI — connect dialog (Cloud/self-hosted), settings integration card, Tasks source entry with setup steps, and the work-item list surface.
  • Refactors — JiraCancellableRequests generalized to CancellableProviderRequests; provider-label and identity-label switches extracted into task-provider-labels.ts.

ℹ️ URL-parsing and work-item-linking surface ships ahead of its consumer

getMatchingPlaneWorkspaces, isResolvedPlaneWorkItemMatch, the /projects/<uuid>/issues/<uuid> parsing path, and the isWorkItemLookupText change all land without a resolver that consumes them — worktree linking from a Plane URL is the deferred step tracked in the linked issue. isWorkItemLookupText now returns true for a pasted Plane URL, so a URL typed as a name seed is treated as auto-managed, but no lookup fills it in yet. This reads as intentional, documented groundwork rather than a bug — flagging only so you can decide whether these specific functions should ride in the linking PR instead of shipping silently unused.

Technical details
# Forward-declared Plane URL surface

## Affected sites
- src/shared/plane-work-item-url.ts — `getMatchingPlaneWorkspaces` / `isResolvedPlaneWorkItemMatch` are referenced only by tests
- src/shared/new-workspace/work-item-lookup-text.ts — `isPlaneWorkItemUrl` now drives `isWorkItemLookupText` with no resolver downstream

## Open questions for the human
- Land now as part of this contracts PR, or move to the worktree-linking PR where they gain a consumer?

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using DeepSeek Pro (free via Pullfrog for OSS) | 𝕏

Comment thread UI-NOTES.md Resolved
Comment thread src/main/plane/request-rate-limit.ts Resolved
@dragosboca

dragosboca commented Sep 4, 2026 •

Copy link
Copy Markdown
Author

Pushed 582cc5865 for the pullfrog pass — thanks, all three were fair.

  • UI-NOTES.md — dropped. It was working notes from the UI session; the durable points (source-visibility rationale, icon choice) already live in the PR description and code comments.
  • clearRateLimit — dropped with its test rather than wired up. The budget is keyed by a digest of the API token, and Plane's server-side allowance does not reset when a workspace reconnects, so clearing it on reconnect would have let a still-throttled token send immediately. The test name described behaviour that would have been a bug.
  • Scoping — getMatchingPlaneWorkspaces and isResolvedPlaneWorkItemMatch are removed (with their tests) and will ride in the worktree-linking change that consumes them. I kept the isWorkItemLookupText change and the two-route parser deliberately: they are consumed today — a pasted Plane URL is now treated the same way as a pasted GitHub/GitLab/Jira/Linear URL, i.e. not accepted as a deliberate workspace name, so the linked item's name wins in the composer. Without it, a pasted self-hosted Plane link becomes the workspace name verbatim, because Jira's pattern rejects the trailing slash.

Gates: typecheck, oxlint, oxfmt, and the affected suites clean.

…g helpers

- UI-NOTES.md was working notes from the UI session; the durable points are
  in the PR description and code comments.
- clearRateLimit had no caller. The budget is keyed by API token and Plane's
  server-side allowance does not reset on reconnect, so clearing it would be
  wrong rather than missing.
- getMatchingPlaneWorkspaces and isResolvedPlaneWorkItemMatch have no
  consumer until worktree linking from a Plane URL lands; they move to that
  change.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Dyq2hpQqTMJGhgtQvd9pdz

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

✅ No new issues found.

Reviewed changes

Reviewed the single cleanup commit 582cc58 pushed since the prior Pullfrog review, which resolves the two prior threads and the scoping note.

  • Dropped UI-NOTES.md — session working notes removed; durable guidance now lives in the PR description and code comments.
  • Removed the dead clearRateLimit export and its test — the budget is keyed by API token and Plane's server-side allowance does not reset on reconnect, so clearing it would have been wrong rather than missing.
  • Removed the unconsumed linking helpers — getMatchingPlaneWorkspaces and isResolvedPlaneWorkItemMatch (and the now-orphaned getPlaneWorkspaceIdentity) had no caller and move to the worktree-linking change.

The parsePlaneWorkItemUrl id-route branch is kept, correctly, because isWorkItemLookupText depends on recognizing pasted in-app URLs; only its projectId/workItemId output fields remain write-only until linking lands, which the author already flagged.

Pullfrog  | View workflow run | Using DeepSeek Pro (free via Pullfrog for OSS) | 𝕏

@Sedation6612

Copy link
Copy Markdown

love this PR! keep up the amazing work, hopefully gets merged soon, would be an amazing feature ❤️

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.

4 participants