Repository navigation
feat(plane): add a native Plane (plane.so) task provider - #15329
dragosboca wants to merge 4 commits into
Conversation
|
Note Reviews pausedIt 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 Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughThe 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 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)
✅ Passed checks (3 passed)
Full details: Description checkExplanation The description includes the required sections, explains the change and rationale, identifies issue 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. Comment |
There was a problem hiding this comment.
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
📒 Files selected for processing (32)
src/renderer/src/components/automations/automation-source-display.tssrc/renderer/src/components/automations/automation-target-availability.tssrc/renderer/src/components/new-workspace/SmartWorkspaceNameField.tsxsrc/renderer/src/components/settings/TasksPane.test.tsxsrc/renderer/src/components/settings/TasksPane.tsxsrc/renderer/src/components/settings/task-source-setup-state.test.tssrc/renderer/src/components/settings/use-task-source-provider-readiness.tssrc/renderer/src/components/sidebar/folder-workspace-composer-helpers.tssrc/renderer/src/components/task-page-list-chrome-visibility.tssrc/renderer/src/components/task-provider-labels.tssrc/renderer/src/components/task-source-context-summary.tssrc/renderer/src/i18n/locales/en.jsonsrc/renderer/src/lib/worktree-palette-evidence.tssrc/renderer/src/store/slices/ui.tssrc/shared/integration-credential-errors.tssrc/shared/new-workspace/work-item-lookup-text.test.tssrc/shared/new-workspace/work-item-lookup-text.tssrc/shared/new-workspace/workspace-source.test.tssrc/shared/new-workspace/workspace-source.tssrc/shared/plane-types.tssrc/shared/plane-work-item-url.test.tssrc/shared/plane-work-item-url.tssrc/shared/task-provider-identity.test.tssrc/shared/task-provider-identity.tssrc/shared/task-providers.test.tssrc/shared/task-providers.tssrc/shared/workspace-linked-item-equality.test.tssrc/shared/workspace-linked-item-source-context.tssrc/shared/workspace-linked-item.tssrc/shared/workspace-name.test.tssrc/shared/workspace-name.tssrc/shared/worktree/types.ts
Included review availability: Your plan includes up to 10 reviews per rolling hour; 9 remain after this review.
|
Pushed Also updated the Testing section now that I can run the full CI-equivalent checks locally: On the docstring-coverage check: I have deliberately not padded comments to reach 80%, because |
|
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. |
There was a problem hiding this comment.
Actionable comments posted: 13
🧹 Nitpick comments (11)
tests/e2e/plane-task-source.spec.ts (1)
5-13: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winReduce 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
@headfuldirective 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 valueMove 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 aboverequireProjectat Line 55 so the security rationale is attached to the function it explains.
68-70: 🗄️ Data Integrity & Integration | 🔵 Trivial | ⚡ Quick winSkip blank titles in
normalizeWorkItemUpdate. Plane’sIssue.nameis non-blank, but the current code sendstitle: ''asname: ''. Ignore empty or whitespace-only titles before issuing the PATCH.src/main/plane/authenticated-request.ts (1)
195-222: 🩺 Stability & Availability | 🔵 Trivial | ⚖️ Poor tradeoffThe throttle wait is outside the request deadline.
withDeadlinestarts afteradmitreturns.admitcan sleep up to five times, andgetThrottleWaitMscaps each wait at 60 s, so one call can park for about five minutes before any deadline applies. An IPC caller without anAbortSignalhas no bound. Consider starting the deadline beforeadmitor capping the total admit time.src/main/plane/provider-operations.test.ts (1)
103-110: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winThe test name claims write coverage but only exercises a read.
planeSearchWorkItemsis a read operation. No write operation such asplaneUpdateWorkItemorplaneCreateWorkItemis asserted here, and the./work-item-writemocks at lines 28-32 are never referenced. Add a case that rejects from a write mock and assertsclearToken, or rename the test.src/main/plane/client.test.ts (1)
256-262: 🩺 Stability & Availability | 🔵 Trivial | ⚡ Quick winCancel the parked second request instead of leaving it pending.
secondnever settles inside the test.admitinsrc/main/plane/authenticated-request.tssleeps on a realsetTimeoutfor up to 60 s per wait and repeats up to five times, so an unresolved timer outlives the test. Pass anAbortControllersignal 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 valueShorten 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 valueReduce 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 winType the
planebridge against thePlaneApicontract.Most methods in this block return
Promise<unknown>orPromise<unknown[]>instead of the specific types declared inPlaneApi(src/preload/api/plane-api.ts). For example,statusreturnsPromise<unknown>here but the contract declaresPromise<PlaneConnectionStatus>. OnlydisconnectandcancelSearchWorkItemsmatch the contract exactly.This PR authored both the
plane-api.tscontract and this block, so nothing prevents the two from silently diverging later. Addsatisfies PreloadApi['plane']to this object, and use the exportedPlane*types from../shared/plane-typesfor 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 winPlane'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, sopnpm run sync:localization-cataloglikely 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 astitle,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 theplaneentry's key to match the hash-based keys used by the siblinggithub/gitlab/linear/jiraentries.src/renderer/src/components/task-page-plane-surface.tsx#L78-L97: regenerateconnectTitle,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: regenerateunassigned,start,startWorkspace,open,openPlanewith the sync script.Source: Learnings
src/renderer/src/runtime/runtime-plane-client.ts (1)
32-36: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueShorten 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.mdsrc/main/ipc/cancellable-provider-requests.test.tssrc/main/ipc/cancellable-provider-requests.tssrc/main/ipc/jira.tssrc/main/ipc/plane.test.tssrc/main/ipc/plane.tssrc/main/ipc/register-core-handlers.tssrc/main/plane/authenticated-request.tssrc/main/plane/client.test.tssrc/main/plane/client.tssrc/main/plane/cursor-pagination.test.tssrc/main/plane/cursor-pagination.tssrc/main/plane/description-markdown.test.tssrc/main/plane/description-markdown.tssrc/main/plane/project-metadata.test.tssrc/main/plane/project-metadata.tssrc/main/plane/provider-operations.test.tssrc/main/plane/provider-operations.tssrc/main/plane/request-queue.tssrc/main/plane/request-rate-limit.test.tssrc/main/plane/request-rate-limit.tssrc/main/plane/work-item-mapping.test.tssrc/main/plane/work-item-mapping.tssrc/main/plane/work-item-write.tssrc/main/plane/work-items.test.tssrc/main/plane/work-items.tssrc/main/plane/workspace-credential-store.tssrc/main/plane/workspace-identity.test.tssrc/main/plane/workspace-identity.tssrc/main/runtime/orca-runtime.tssrc/main/runtime/rpc/methods/index.tssrc/main/runtime/rpc/methods/plane.test.tssrc/main/runtime/rpc/methods/plane.tssrc/preload/api-types.tssrc/preload/api/plane-api.tssrc/preload/index.tssrc/renderer/src/components/TaskPage.tsxsrc/renderer/src/components/icons/PlaneIcon.tsxsrc/renderer/src/components/plane-connect-args.test.tssrc/renderer/src/components/plane-connect-args.tssrc/renderer/src/components/plane-connect-dialog.tsxsrc/renderer/src/components/settings/IntegrationsPane.tsxsrc/renderer/src/components/settings/TaskSourceSimpleSetup.tsxsrc/renderer/src/components/settings/TasksPane.test.tsxsrc/renderer/src/components/settings/TasksPane.tsxsrc/renderer/src/components/settings/plane-integration-card.tsxsrc/renderer/src/components/settings/task-provider-integration-section-ids.tssrc/renderer/src/components/settings/use-task-source-provider-readiness.tssrc/renderer/src/components/task-page-localized-options.tsxsrc/renderer/src/components/task-page-plane-surface.tsxsrc/renderer/src/components/task-page-plane-work-item-list.test.tsxsrc/renderer/src/components/task-page-plane-work-item-list.tsxsrc/renderer/src/hooks/usePlaneConnection.tssrc/renderer/src/i18n/locales/en.jsonsrc/renderer/src/runtime/runtime-plane-client.test.tssrc/renderer/src/runtime/runtime-plane-client.tssrc/renderer/src/runtime/runtime-plane-target.tssrc/shared/plane-types.tssrc/shared/protocol-version.tssrc/shared/task-providers.test.tssrc/shared/task-providers.tstests/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.
|
Pushed Two corrections to my own reasoning, since I got them wrong first:
The Everything else I took as written and fixed as described. The ones I would call out as genuinely load-bearing:
Gates: typecheck, oxlint, max-lines ratchet, reliability gates and both localization verifiers all clean. 1,218 tests pass across the Plane and settings suites. |
|
@coderabbitai review |
|
There was a problem hiding this comment.
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 winNormalize missing IPC payloads before field access.
These handlers access
args.project,args.key, or similar fields before validatingargs. A renderer call withnullor no payload throws aTypeErrorinstead 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 winAdd
recordFeatureInteractionfor Plane, matching sibling providers.Every other "start workspace from provider item" handler records a feature interaction:
handleUseWorkItemrecords'github-tasks',handleUseGitLabItemrecords'gitlab-tasks',handleUseLinearItemrecords'linear-tasks', andhandleUseJiraItemrecords'jira-tasks'.handleUsePlaneItemdoes 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 winFailed project load leaves a persistent error banner with no retry.
The projects effect only reruns on
[settings, status.connected]. IfplaneListProjectsfails once after connecting,erroris set and stays set: nothing in this effect clears it on a later run, and the refresh button in the header only bumpsrefreshNonce, 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
refreshNoncein 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.tssrc/main/ipc/plane.tssrc/main/plane/authenticated-request.tssrc/main/plane/client.test.tssrc/main/plane/request-rate-limit.tssrc/main/plane/work-item-mapping.tssrc/main/plane/work-item-write.tssrc/main/plane/work-items.test.tssrc/main/plane/work-items.tssrc/renderer/src/components/TaskPage.tsxsrc/renderer/src/components/plane-connect-dialog.tsxsrc/renderer/src/components/settings/plane-integration-card.tsxsrc/renderer/src/components/task-page-plane-item-source-context.test.tssrc/renderer/src/components/task-page-plane-item-source-context.tssrc/renderer/src/components/task-page-plane-surface.tsxsrc/renderer/src/hooks/usePlaneConnection.test.tssrc/renderer/src/hooks/usePlaneConnection.tssrc/renderer/src/i18n/locales/en.jsonsrc/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.
|
Pushed 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 The selector narrowing is straightforward and correct: 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 |
|
✏️ Learnings added
✅ Action performedReview finished.
|
There was a problem hiding this comment.
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 winScope in-flight requests to the active runtime environment.
If
activeRuntimeEnvironmentIdchanges 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 winShorten 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.tssrc/main/plane/work-items.tssrc/renderer/src/hooks/usePlaneConnection.ts
Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review.
There was a problem hiding this comment.
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.tssrc/main/plane/work-items.tssrc/renderer/src/hooks/usePlaneConnection.ts
Included review availability: Your plan provides up to 10 included reviews per hour; 7 remain after this review.
|
Pushed 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 |
🧩 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.tsLength of output: 43302
The environment key and generation guard correctly prevent an older request from committing after an environment switch. The current request alone clears 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
✅ Action performedReview finished.
|
There was a problem hiding this comment.
🧹 Nitpick comments (1)
src/renderer/src/hooks/usePlaneConnection.test.ts (1)
78-79: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winAssert the final state for
env-b.This test verifies two requests start. It does not verify that the
env-bresult remains in the shared snapshot afterenv-aresolves. Assert the final status afterPromise.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.tssrc/main/plane/work-items.tssrc/renderer/src/hooks/usePlaneConnection.test.tssrc/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.
|
Pushed 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
Gates: typecheck, oxlint, max-lines ratchet and reliability gates clean. 895 tests pass across the Plane and hooks suites. @coderabbitai review |
|
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
The regression test now verifies the generation guard directly. It resolves the superseded
🧠 Learnings usedIf 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. |
|
Tested this end-to-end at What worked:
Findings:
Not covered by my run: Plane Cloud, multiple connected workspaces, remote runtime/SSH credential scope, and invalid-token error paths. |
|
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
The root cause of my missing both: I had been running Finding 2 — translations. Only Finding 3 — the 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. |
|
Too many files changed for review (102 files, 100 file limit). Bypass the limit by tagging |
9f1e941 to
7ad991f
Compare
|
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
7ad991f to
ac9ece0
Compare
|
@coderabbitai full review |
✅ Action performedFull review finished. |
There was a problem hiding this comment.
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 liftPersist and compare Plane workspace/project identity.
useTaskPageComposerActionsstores onlyplaneIdentifieron the linked item. The workspace and project IDs exist only inTaskSourceContext.providerIdentity. The matcher then accepts anyprovider: 'plane'context, so identical keys can use an unrelated Plane source. Persist the normalized Plane identity withWorkspaceLinkedItem, preserve it during normalization and creation, and compare it withcontext.providerIdentity. Treat missing identity as non-matching.
🧹 Nitpick comments (1)
src/renderer/src/i18n/locales/en.json (1)
11757-11757: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick winAdd plural forms for
connectedDescription.
connectedDescriptionreads"{{count}} workspace connected". Whenworkspaces.lengthis 2 or more, this renders as "2 workspace connected," which is grammatically incorrect. This catalog already handles the same pattern correctly elsewhere with_one/_othersuffixes (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
📒 Files selected for processing (98)
UI-NOTES.mdsrc/main/ipc/cancellable-provider-requests.test.tssrc/main/ipc/cancellable-provider-requests.tssrc/main/ipc/jira.tssrc/main/ipc/plane.test.tssrc/main/ipc/plane.tssrc/main/ipc/register-core-handlers/register-core-handlers.tssrc/main/plane/authenticated-request.tssrc/main/plane/client.test.tssrc/main/plane/client.tssrc/main/plane/cursor-pagination.test.tssrc/main/plane/cursor-pagination.tssrc/main/plane/description-markdown.test.tssrc/main/plane/description-markdown.tssrc/main/plane/project-metadata.test.tssrc/main/plane/project-metadata.tssrc/main/plane/provider-operations.test.tssrc/main/plane/provider-operations.tssrc/main/plane/request-queue.tssrc/main/plane/request-rate-limit.test.tssrc/main/plane/request-rate-limit.tssrc/main/plane/work-item-mapping.test.tssrc/main/plane/work-item-mapping.tssrc/main/plane/work-item-write.tssrc/main/plane/work-items.test.tssrc/main/plane/work-items.tssrc/main/plane/workspace-credential-store.tssrc/main/plane/workspace-identity.test.tssrc/main/plane/workspace-identity.tssrc/main/runtime/rpc/methods/index.tssrc/main/runtime/rpc/methods/plane.test.tssrc/main/runtime/rpc/methods/plane.tssrc/main/runtime/runtime-edge-command-controller.tssrc/main/runtime/runtime-plane-commands.tssrc/preload/api-types.tssrc/preload/api/plane-api.tssrc/preload/api/plane-bridge.tssrc/preload/index.tssrc/renderer/src/components/automations/automation-source-display.tssrc/renderer/src/components/automations/automation-target-availability.tssrc/renderer/src/components/icons/PlaneIcon.tsxsrc/renderer/src/components/new-workspace/smart-workspace-name-field-model.tssrc/renderer/src/components/new-workspace/smart-workspace-source-row-content.tsxsrc/renderer/src/components/plane-connect-args.test.tssrc/renderer/src/components/plane-connect-args.tssrc/renderer/src/components/plane-connect-dialog.tsxsrc/renderer/src/components/settings/IntegrationsPane.tsxsrc/renderer/src/components/settings/TaskSourceSimpleSetup.tsxsrc/renderer/src/components/settings/TasksPane.test.tsxsrc/renderer/src/components/settings/TasksPane.tsxsrc/renderer/src/components/settings/plane-integration-card.tsxsrc/renderer/src/components/settings/task-provider-integration-section-ids.tssrc/renderer/src/components/settings/task-source-setup-state.test.tssrc/renderer/src/components/settings/use-task-source-provider-readiness.tssrc/renderer/src/components/sidebar/folder-workspace-composer-helpers.tssrc/renderer/src/components/task-page-list-chrome-visibility.tssrc/renderer/src/components/task-page-localized-options.tsxsrc/renderer/src/components/task-page-plane-item-source-context.test.tssrc/renderer/src/components/task-page-plane-item-source-context.tssrc/renderer/src/components/task-page-plane-surface.tsxsrc/renderer/src/components/task-page-plane-work-item-list.test.tsxsrc/renderer/src/components/task-page-plane-work-item-list.tsxsrc/renderer/src/components/task-page-source-context.tsxsrc/renderer/src/components/task-page/Content.tsxsrc/renderer/src/components/task-page/plane/Content.tsxsrc/renderer/src/components/task-provider-labels.tssrc/renderer/src/components/task-source-context-summary.tssrc/renderer/src/components/use-task-page-composer-actions.tssrc/renderer/src/hooks/composer-state/derived-model.tssrc/renderer/src/hooks/usePlaneConnection.test.tssrc/renderer/src/hooks/usePlaneConnection.tssrc/renderer/src/i18n/locales/en.jsonsrc/renderer/src/lib/worktree-palette-evidence.tssrc/renderer/src/runtime/runtime-plane-client.test.tssrc/renderer/src/runtime/runtime-plane-client.tssrc/renderer/src/runtime/runtime-plane-target.tssrc/renderer/src/store/slices/ui/ui-slice-contract-core.tssrc/shared/integration-credential-errors.tssrc/shared/new-workspace/work-item-lookup-text.test.tssrc/shared/new-workspace/work-item-lookup-text.tssrc/shared/new-workspace/workspace-source.test.tssrc/shared/new-workspace/workspace-source.tssrc/shared/plane-types.tssrc/shared/plane-work-item-url.test.tssrc/shared/plane-work-item-url.tssrc/shared/protocol-version.tssrc/shared/task-provider-identity.test.tssrc/shared/task-provider-identity.tssrc/shared/task-providers.test.tssrc/shared/task-providers.tssrc/shared/task-source-context.tssrc/shared/workspace-linked-item-equality.test.tssrc/shared/workspace-linked-item-source-context.tssrc/shared/workspace-linked-item.tssrc/shared/workspace-name.test.tssrc/shared/workspace-name.tssrc/shared/worktree/types.tstests/e2e/plane-task-source.spec.ts
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.
- 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
|
Pushed
Gates: typecheck, oxlint, react-doctor, oxfmt, and 208 Plane tests clean. @coderabbitai review |
🧩 Analysis chain🏁 Script executed: Length of output: 50028 🏁 Script executed: Length of output: 89174
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 ✏️ Learnings added
✅ Action performedReview finished.
|
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Team
Run ID: 1dd8a480-170a-4f9f-b9bb-8dd36fc97f2e
📒 Files selected for processing (11)
src/main/ipc/plane.test.tssrc/main/ipc/plane.tssrc/main/plane/authenticated-request.tssrc/main/plane/client.test.tssrc/main/plane/cursor-pagination.test.tssrc/main/plane/cursor-pagination.tssrc/main/plane/work-item-write.tssrc/main/plane/work-items.test.tssrc/main/plane/workspace-identity.test.tssrc/main/plane/workspace-identity.tssrc/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.
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
|
Pushed Gates: typecheck, oxlint, oxfmt, and the Plane suites (134 tests) clean. @coderabbitai review |
|
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.tsLength 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
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, 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 I used the existing response-body lifecycle guidance for this review. 🧠 Learnings usedYou are interacting with an AI system. |
|
@pullfrog review |
There was a problem hiding this comment.
ℹ️ 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 —
planejoinsTaskProvider,WorkspaceLinkedItem['provider'],TaskProviderIdentity,WorkspaceSourceSelectionKindandWorkspaceIntentWorkItem; newplane-types.tsdata model andplane-work-item-url.tsparser covering both the shareable/browse/PROJ-123/and in-app/projects/<uuid>/issues/<uuid>routes. - Provider core —
src/main/plane/delivers an authenticatednet.fetchclient with a request deadline andredirect: 'error'hardening, a per-workspace encrypted credential store layered on the sharedintegration-credential-filehelper, cursor pagination with truncation reporting, a per-API-key (token-digest) rate limiter, and a 4-slot request pool. - Transport —
plane:*IPC handlers,PLANE_METHODSruntime RPC gated on a newplane.provider.v1capability, 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 —
JiraCancellableRequestsgeneralized toCancellableProviderRequests; provider-label and identity-label switches extracted intotask-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?DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
|
Pushed
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
There was a problem hiding this comment.
✅ 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
clearRateLimitexport 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 —
getMatchingPlaneWorkspacesandisResolvedPlaneWorkItemMatch(and the now-orphanedgetPlaneWorkspaceIdentity) 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.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
|
love this PR! keep up the amazing work, hopefully gets merged soon, would be an amazing feature ❤️ |




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/glabpattern — Plane ships no CLI to delegate to, so the app talks to its REST API directly.Shared contracts —
planejoinsTaskProvider,WorkspaceLinkedItem['provider'](plusplaneIdentifier),IntegrationCredentialService,WorkspaceSourceSelectionKind,TaskProviderIdentityandWorkspaceIntentWorkItem. New:shared/plane-types.ts(the data model) andshared/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'snet.fetchso requests follow Chromium proxy/session state, a per-workspace encrypted credential store on the sharedintegration-credential-filehelper, cursor pagination, a rate limiter for Plane's 60 requests/minute, and work item reads/writes.Transport —
ipcMainchannels for local hosts,PLANE_METHODSover 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→CancellableProviderRequestsincancellable-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.tsextracts 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-linemax-lineslimit; now adding a provider touches one switch per concern instead of three.Why
TaskProviderandWorkspaceLinkedItem['provider']are closed unions insrc/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:
/{workspace}/browse/PROJ-123) also satisfies the existing Jira URL pattern. Provider sniffing from a URL is therefore limited to the*.plane.socloud 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.connectverifies 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):Testing
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,
*.electronbrowser cookie tests, real-zshshell startup, relay pty timing — and I verified they reproduce on unmodifiedmainrather 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.
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:
document.documentElement'sdarkclass is not where this build carries the theme. A dark screenshot labelled "light" is worse than no light-mode coverage.en.json, so the surface renders English inside a localized UI. Happy to generateko/ja/zhentries 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.v1was declared but never added toRUNTIME_CAPABILITIES, whichgetStatus()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()andtestConnection()took a request-pool slot and then called intoexecute(), 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:
normalizePlaneBaseUrlaccepted userinfo, sohttps://user:pw@hostpersisted those credentials intoplane-workspaces.json, whichstatushands to any renderer or paired client — escaping the boundary that keeps the token in the encrypted vault.plane-work-item-url.tsalready rejected credentials for the same reason; the connect path now matches.CodeRabbit — 1 finding:
workItemKeyIdentifierpreferredlinearIdentifiereven when the item declaredprovider: '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
Notes
AGENTS.mdpoints at a skill that is not shipped. Line 7 says to use the$electronskill for rendered UI checks, but it is not in the repo'sskills/, not in Orca's bundled registry (orca skills list), andorca skills installonly 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 cannotpage.screenshot(no compositing surface) and its settings pane never settles as "stable" for pointer actions, so UI-proof specs need@headful; andopenSettingsPage()switches the view whileopenSettingsTarget()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
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass locallyAuthor