Skip to content

feat(plane): native Plane task provider (Cloud and self-hosted) - #29182

Open
pedrogiru wants to merge 18 commits into
stablyai:mainfrom
pedrogiru:feat/plane-task-provider
Open

pedrogiru wants to merge 18 commits into
stablyai:mainfrom
pedrogiru:feat/plane-task-provider

Conversation

@pedrogiru

@pedrogiru pedrogiru commented Oct 15, 2026 •

Copy link
Copy Markdown

ELI5

Orca can now show your Plane work items on the Tasks page, from Plane Cloud or your own Plane server, across one or several workspaces. You can start a workspace from a work item, move it to another state and comment, the same way Jira and Linear work today.

What Changed

Before: Tasks supports GitHub, GitLab, Linear and Jira.

After:

  • Settings → Integrations → Plane. Choose Plane Cloud or Self-hosted (base URL), paste a Personal Access Token, and add one or more workspace slugs. You can type the slugs or paste any Plane URL. Each slug is checked on its own: a workspace you can't access shows "Workspace not found or you don't have access" without blocking the others.
  • Per workspace, choose one, several or all projects. "All" follows projects created later.
  • Workspaces can be added or removed later from the card, reusing the saved token.
  • The Plane tab in Tasks has:
    • a workspace switcher, including "All workspaces";
    • project / state / assignee filters, with "open" (backlog + todo + in progress) as the default;
    • a detail panel with description, labels and comments;
    • "Create workspace", which saves the link on the worktree and shows it in the sidebar;
    • state change and comments (Cmd/Ctrl+Enter sends).
  • Like Jira, Plane is listed in Tasks before it is connected (with a "Connect Plane" state and "Hide Plane"), and the Tasks row in the sidebar gets a Plane shortcut. A one-time settings migration adds Plane to existing saved provider lists; hiding it sticks.

Mechanism: the same pattern as Jira.

  • The credential lives on the runtime host: plane-connections.json (0600) plus one encrypted token file per connection, in the Orca data directory, through the existing secret store.
  • Local calls go over IPC (plane:*) and remote runtimes over runtime RPC (plane.*).
  • Calls are gated by the plane.v1 and worktree.linked-work-item.plane.v1 capabilities, so an older host shows an update prompt instead of failing.

Provider-neutral groundwork (commits 1–3):

  • The task-provider unions and allowlists are derived from src/shared/task-providers.ts.
  • Silent fallthroughs become exhaustive switches.
  • "Provider with an identifier" and "account-backed provider" checks become shared helpers.
  • Linked work items get a generic identifier.

Why

Requested in #25885. Native support follows the established Jira/Linear pattern. If the TaskProvider extension point (#23903) lands, I'm happy to port this to it. The Plane code is isolated under src/main/plane, src/shared/plane-*, components/plane and task-page/plane, which keeps that port mechanical.

Linked Issue

Part of #25885

Out of scope here, as follow-ups once the direction is agreed:

  • Browsing Plane cycles and modules.
  • Creating new Plane work items from Orca.
  • Linking a work item directly to an agent session; today the link goes through the workspace created from the work item.

Visual Proof

Before: Plane is not available in Settings → Integrations or in Tasks.

After (captured by the Plane e2e against a local fake Plane server; all data is fake):

Screen Light Dark
Tasks → Plane list with filters
Work item detail: state, description, comments
Create workspace from a work item
Settings → Integrations: two workspaces (Cloud + self-hosted)
Add another workspace with the saved token
Workspace switcher: All workspaces

Testing

  • Unit and integration tests for every Plane module, with fake Plane server fixtures for Cloud and self-hosted base URLs (including a path prefix), plus tests/e2e/plane-tasks.spec.ts (5 tests) covering connect, list and filters, detail, state change, comment, create workspace, multiple workspaces and the switcher.
  • Checked locally on macOS, rebased on current main: tsc for every commit in the series, pnpm lint, cd mobile && pnpm typecheck, check:code-quality:changed, check:max-lines-ratchet, build:electron-vite, and the Plane e2e (5/5).
  • pnpm test: every Plane and touched suite passes. In my environment 32 unrelated files fail (cross-version wire, live shell, agent-session suites); I ran exactly those files on unmodified main and they fail there too, so they are environmental and not caused by this branch.
  • Manual on macOS: connected the dev build to a self-hosted Plane Community v1.4.2 server with a personal token and browsed real work items (connect, project scope, list, detail).
  • Linux and Windows through CI; there is no OS-specific code beyond the existing platform check for Cmd/Ctrl+Enter.

AI Disclosure

Written with Claude (Opus 5.5) in Claude Code, using several agents coordinated through Orca's orchestration. I directed the design decisions and tested the result against my own self-hosted Plane server. AI review summary:

  • Cross-platform: no OS-specific code.
  • SSH / remote / local: the credential is owned by the host, with capability gates.
  • Integrations: no Jira/Linear behavior change, and Plane links are never inferred as Jira.
  • Performance: no polling, at most 2 concurrent requests, rate-limit aware, bounded pages (500 items max).
  • UI: existing primitives and tokens, light and dark.
  • Security:
    • the token is encrypted at rest and is never returned to the renderer or logged;
    • redirect: 'error', and IDs and slugs are validated;
    • no response bodies are echoed;
    • connect, disconnect and scope changes require accounts-admin;
    • http requires an explicit acknowledgement.

Review

Reviewer guide

The commits are layered and each one compiles on its own. Suggested reading order:

Commits What Notes
1–3 Neutral refactor No behavior change.
4–7 Pure and main-process Plane domain Types, URL parsing, HTTP client with rate limit (50 req/min budget, 2 concurrent requests, honors X-RateLimit-* and 429), connection store, verification, work items.
8 IPC and runtime RPC parity Also moves Jira's chunked payload helper to methods/chunked-json-payload.ts so Plane can reuse it.
9 Settings
10–12 Tasks provider, list, filters, detail, create workspace
13 State change and comments
14–15 Multiple workspaces and the switcher
16 es/fr/ja/ko/zh translations Can be dropped if you prefer to translate separately.
17 Docs page
18 e2e for the Plane Tasks flow Uses a local fake Plane server.

Happy to split at 3 / 9 / 13 / 15 if you prefer smaller PRs.

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

  • Security: token encrypted at rest on the runtime host, never sent to the renderer or logged; redirect: 'error'; IDs and slugs validated; credential changes require accounts-admin; plain http needs an explicit acknowledgement.
  • Cross-platform: no OS-specific code.
  • Remote SSH / remote runtimes: the credential stays on the runtime host; plane.* RPC is gated by the plane.v1 capabilities, so older hosts show an update prompt.
  • Mobile: type-compatible; the mobile Tasks screen leaves Plane out for now.
  • Backwards compatibility: a one-time settings migration adds Plane to saved provider lists; no Jira/Linear behavior change.
  • Performance: no polling, at most 2 concurrent requests, rate-limit aware, bounded pages.

Checklist

  • This PR is small and focused (intentionally one complete feature as 18 layered commits; happy to split at the boundaries above)
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)
    • pnpm lint and pnpm typecheck pass locally.
    • pnpm test: see Testing.
    • pnpm build: build:electron-vite passes; locally the full build stops only at the native macOS computer-use helper, which my Xcode beta toolchain can't link.

@coderabbitai

coderabbitai Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 9427ba6c-8f28-4e53-9019-0b05333c5bfa
📥 Commits

Reviewing files that changed from the base of the PR and between 0a51f9655bf1a3b5e36e320230b23cb2ee57729a and b86a6e3.

⛔ Files ignored due to path filters: 1
  • src/shared/rpc-contract/rpc-params-catalog.generated.ts is excluded by !**/*.generated.*
📒 Files selected for processing: 2
  • src/renderer/src/components/task-page/plane/use-plane-work-items.test.tsx
  • src/renderer/src/components/task-page/plane/use-plane-work-items.ts

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

📝 Walkthrough

Added Plane Cloud and self-hosted integration support. Orca can connect multiple workspaces, select projects, browse and filter work items, view details, add comments, and update states. Plane operations are available through local IPC and remote runtime interfaces. Plane work items can be linked to workspaces. Provider settings, persistence, documentation, localization, and tests were updated.

Priority: ⬆️ High

Merge Risk: ⚪ Minimal · up to b86a6

The previously reported Plane loading, attachment, and setup failures are addressed at the reviewed head. This review identifies no remaining merge blocker.

Pre-merge checks: Passed 3 · Failed 2

Failed Failed checks: 2 warnings

Check name Status Explanation Resolution
Linked Issues check Warning [ #25885 ] The PR implements Plane Cloud and self-hosted connections, token authentication, workspace and project-scoped work-item listing, identifier search, workspace linking, state updates, comment… Implement and test Plane cycle and module browsing. Implement and test linking a Plane work item to an agent session, or provide reviewable code evidence that the existing link flow satisfies that requirement.
Docstring Coverage Warning Docstring coverage is 30.26% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 152 functions across 57 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 3 passed
Check name Status Explanation
Out of Scope Changes check Passed The changes remain connected to [ #25885 ]. Plane connection storage, API access, IPC and runtime RPC, capability checks, settings, Tasks UI, work-item linking, provider-neutral support, translations,…
Title check Passed The title clearly identifies the main change: adding native Plane task-provider support for Cloud and self-hosted servers.
Description check Passed The description is detailed and follows the repository template. It covers user impact, implementation, rationale, linked issue, visual proof, testing results, AI disclosure, compatibility considerati…
Full details: Linked Issues check

Explanation

[ #25885 ] The PR implements Plane Cloud and self-hosted connections, token authentication, workspace and project-scoped work-item listing, identifier search, workspace linking, state updates, comments, and automated tests. The issue also requests browsing and listing cycles and modules. The reviewed changes show no cycle or module API, model, UI, or test support. The changes link a work item to a created workspace, but they do not show linking a Plane work item to an agent session.

  • Fix all pre-merge checks with AI
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ 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: 3


ℹ️ Review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 6a9c1834-df3c-4ae6-9d10-0b1bb6a9d903
📥 Commits

Reviewing files that changed from the base of the PR and between 55687fb and 08ebe961b74c7afc8f5feec0044467b4870985da.

⛔ Files ignored due to path filters: 1
  • src/shared/rpc-contract/rpc-params-catalog.generated.ts is excluded by !**/*.generated.*
📒 Files selected for processing: 231
  • docs/site/content/docs/review/meta.json
  • docs/site/content/docs/review/plane.mdx
  • docs/site/content/docs/settings.mdx
  • mobile/src/components/TaskProviderLogo.tsx
  • mobile/src/components/use-new-workspace-runtime-context.ts
  • mobile/src/home/MobileHomeTasksCard.tsx
  • mobile/src/home/mobile-home-host-requests.ts
  • mobile/src/tasks/mobile-smart-source-modes.ts
  • mobile/src/tasks/mobile-task-providers.test.ts
  • mobile/src/tasks/mobile-task-providers.ts
  • mobile/src/tasks/mobile-task-view-options.tsx
  • mobile/src/tasks/use-mobile-tasks-route-and-item-state.tsx
  • mobile/src/tasks/use-mobile-tasks-runtime-hydration.tsx
  • src/main/ipc/plane.test.ts
  • src/main/ipc/plane.ts
  • src/main/ipc/register-core-handlers/register-core-handlers.test.ts
  • src/main/ipc/register-core-handlers/register-core-handlers.ts
  • src/main/network/abortable-concurrency-gate.test.ts
  • src/main/network/abortable-concurrency-gate.ts
  • src/main/persistence-settings-ui-defaults.test.ts
  • src/main/persistence-source-control-ai-migration.test.ts
  • src/main/persistence/applying-settings/settings-update.ts
  • src/main/persistence/loading-store/normalize-loaded-global-settings.ts
  • src/main/persistence/loading-store/prepare-loaded-profile-settings.ts
  • src/main/persistence/tracking-repos/worktree-metadata-normalization.test.ts
  • src/main/plane/__mocks__/plane-api-fixture.ts
  • src/main/plane/__mocks__/plane-http-module.ts
  • src/main/plane/__mocks__/plane-work-item-fixture.ts
  • src/main/plane/plane-api-error.ts
  • src/main/plane/plane-api-flavor.test.ts
  • src/main/plane/plane-api-flavor.ts
  • src/main/plane/plane-commands.ts
  • src/main/plane/plane-comment-html.ts
  • src/main/plane/plane-connection-id.ts
  • src/main/plane/plane-connection-store.test.ts
  • src/main/plane/plane-connection-store.ts
  • src/main/plane/plane-credential-verification.test.ts
  • src/main/plane/plane-credential-verification.ts
  • src/main/plane/plane-http.test.ts
  • src/main/plane/plane-http.ts
  • src/main/plane/plane-multi-workspace.test.ts
  • src/main/plane/plane-operations.ts
  • src/main/plane/plane-pagination.test.ts
  • src/main/plane/plane-pagination.ts
  • src/main/plane/plane-project-metadata.ts
  • src/main/plane/plane-project-scope.test.ts
  • src/main/plane/plane-project-scope.ts
  • src/main/plane/plane-projects.ts
  • src/main/plane/plane-rate-limit.test.ts
  • src/main/plane/plane-rate-limit.ts
  • src/main/plane/plane-redact.test.ts
  • src/main/plane/plane-redact.ts
  • src/main/plane/plane-session.ts
  • src/main/plane/plane-work-item-commands.ts
  • src/main/plane/plane-work-item-mapping.ts
  • src/main/plane/plane-work-item-mutations.test.ts
  • src/main/plane/plane-work-item-mutations.ts
  • src/main/plane/plane-work-item-read.ts
  • src/main/plane/plane-work-items.test.ts
  • src/main/plane/plane-work-items.ts
  • src/main/runtime/rpc/methods/chunked-json-payload.ts
  • src/main/runtime/rpc/methods/index.ts
  • src/main/runtime/rpc/methods/jira.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.test.ts
  • src/renderer/src/components/automations/automation-target-availability.ts
  • src/renderer/src/components/cmd-j/task-search-requests.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/new-workspace/use-work-item-source-presentation.ts
  • src/renderer/src/components/new-workspace/work-item-source-selection.ts
  • src/renderer/src/components/plane/PlaneConnectDialog.test.tsx
  • src/renderer/src/components/plane/PlaneConnectDialog.tsx
  • src/renderer/src/components/plane/PlaneConnectScopeStep.tsx
  • src/renderer/src/components/plane/PlaneOptionGroup.tsx
  • src/renderer/src/components/plane/PlaneProjectScopePicker.test.tsx
  • src/renderer/src/components/plane/PlaneProjectScopePicker.tsx
  • src/renderer/src/components/plane/PlaneWorkspaceChipsInput.tsx
  • src/renderer/src/components/plane/plane-connect-credentials-step.tsx
  • src/renderer/src/components/plane/plane-connect-form-model.test.ts
  • src/renderer/src/components/plane/plane-connect-form-model.ts
  • src/renderer/src/components/plane/plane-connect-form-selectors.ts
  • src/renderer/src/components/plane/plane-error-copy.ts
  • src/renderer/src/components/plane/plane-host-scope.ts
  • src/renderer/src/components/plane/plane-workspace-chips.ts
  • src/renderer/src/components/plane/use-plane-connect-actions.ts
  • src/renderer/src/components/plane/use-plane-host-label.ts
  • 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/integrations-search.ts
  • src/renderer/src/components/settings/plane-integration-card.test.tsx
  • src/renderer/src/components/settings/plane-integration-card.tsx
  • src/renderer/src/components/settings/provider-account-scope.ts
  • 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-integration-provider-status-refresh.ts
  • src/renderer/src/components/settings/use-task-source-provider-readiness.test.tsx
  • src/renderer/src/components/settings/use-task-source-provider-readiness.ts
  • src/renderer/src/components/sidebar/SidebarNav.test.tsx
  • src/renderer/src/components/sidebar/SidebarTaskNavButton.tsx
  • src/renderer/src/components/sidebar/WorkspaceAttachmentSearch.tsx
  • src/renderer/src/components/sidebar/WorkspaceAttachmentSourceStatus.tsx
  • src/renderer/src/components/sidebar/WorktreeReferenceStack.tsx
  • src/renderer/src/components/sidebar/workspace-reference-details.ts
  • src/renderer/src/components/sidebar/worktree-attachment-editing.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-source-context.tsx
  • src/renderer/src/components/task-page/Content.tsx
  • src/renderer/src/components/task-page/plane/PlaneCommentComposer.test.tsx
  • src/renderer/src/components/task-page/plane/PlaneCommentComposer.tsx
  • src/renderer/src/components/task-page/plane/PlaneCreateWorkspaceButton.test.tsx
  • src/renderer/src/components/task-page/plane/PlaneCreateWorkspaceButton.tsx
  • src/renderer/src/components/task-page/plane/PlaneEmptyStates.tsx
  • src/renderer/src/components/task-page/plane/PlaneFilters.test.tsx
  • src/renderer/src/components/task-page/plane/PlaneFilters.tsx
  • src/renderer/src/components/task-page/plane/PlaneListBanners.tsx
  • src/renderer/src/components/task-page/plane/PlaneListBody.tsx
  • src/renderer/src/components/task-page/plane/PlaneStatePicker.test.tsx
  • src/renderer/src/components/task-page/plane/PlaneStatePicker.tsx
  • src/renderer/src/components/task-page/plane/PlaneTasksView.tsx
  • src/renderer/src/components/task-page/plane/PlaneWorkItemDetail.test.tsx
  • src/renderer/src/components/task-page/plane/PlaneWorkItemDetail.tsx
  • src/renderer/src/components/task-page/plane/PlaneWorkItemRow.tsx
  • src/renderer/src/components/task-page/plane/PlaneWorkspaceBanners.tsx
  • src/renderer/src/components/task-page/plane/PlaneWorkspaceSwitcher.tsx
  • src/renderer/src/components/task-page/plane/TaskPagePlaneContent.test.tsx
  • src/renderer/src/components/task-page/plane/TaskPagePlaneContent.tsx
  • src/renderer/src/components/task-page/plane/TaskPagePlaneContent.workspaces.test.tsx
  • src/renderer/src/components/task-page/plane/open-plane-work-item-composer.test.ts
  • src/renderer/src/components/task-page/plane/open-plane-work-item-composer.ts
  • src/renderer/src/components/task-page/plane/plane-create-workspace-action-slots.ts
  • src/renderer/src/components/task-page/plane/plane-state-change.ts
  • src/renderer/src/components/task-page/plane/plane-work-item-filters.test.ts
  • src/renderer/src/components/task-page/plane/plane-work-item-filters.ts
  • src/renderer/src/components/task-page/plane/plane-work-item-labels.ts
  • src/renderer/src/components/task-page/plane/plane-work-item-pages.ts
  • src/renderer/src/components/task-page/plane/plane-workspace-selection.test.ts
  • src/renderer/src/components/task-page/plane/plane-workspace-selection.ts
  • src/renderer/src/components/task-page/plane/task-page-plane-item-source-context.ts
  • src/renderer/src/components/task-page/plane/use-plane-connection-projects.ts
  • src/renderer/src/components/task-page/plane/use-plane-jump.ts
  • src/renderer/src/components/task-page/plane/use-plane-tasks-view.ts
  • src/renderer/src/components/task-page/plane/use-plane-work-items.test.tsx
  • src/renderer/src/components/task-page/plane/use-plane-work-items.ts
  • src/renderer/src/components/task-provider-identity-label.ts
  • src/renderer/src/components/task-source-account-summary.ts
  • src/renderer/src/components/task-source-context-summary.ts
  • src/renderer/src/components/task-source-host-availability.ts
  • src/renderer/src/components/use-task-page-source-availability.ts
  • src/renderer/src/components/use-task-page-source-summary.ts
  • src/renderer/src/hooks/composer-state/derived-model.ts
  • src/renderer/src/i18n/en-runtime-required.json
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/zh.json
  • src/renderer/src/lib/plane-reference-hint.test.ts
  • src/renderer/src/lib/plane-reference-hint.ts
  • src/renderer/src/lib/plane-work-item-linked-context.test.ts
  • src/renderer/src/lib/plane-work-item-linked-context.ts
  • 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-workspace-attachment-capabilities.ts
  • src/renderer/src/store/folder-workspaces/folder-workspace-mutations.ts
  • src/renderer/src/store/index.ts
  • src/renderer/src/store/slices/plane-slice-contract.ts
  • src/renderer/src/store/slices/plane.test.ts
  • src/renderer/src/store/slices/plane.ts
  • src/renderer/src/store/slices/store-test-helpers.ts
  • src/renderer/src/store/slices/ui/ui-slice-contract-core.ts
  • src/renderer/src/store/slices/worktrees-remote-runtime-create.test.ts
  • src/renderer/src/store/slices/worktrees/create/create-worktree.ts
  • src/renderer/src/store/slices/worktrees/metadata/worktree-meta-persist.ts
  • src/renderer/src/store/types.ts
  • src/renderer/src/web/preload-api/web-plane-api.ts
  • src/renderer/src/web/web-preload-api-composition.test.ts
  • src/renderer/src/web/web-preload-api.ts
  • src/shared/automation-task-providers.test.ts
  • src/shared/automation-task-providers.ts
  • src/shared/default-global-settings.ts
  • src/shared/global-settings-types.ts
  • src/shared/host-operation-ownership.test.ts
  • src/shared/host-operation-ownership.ts
  • src/shared/integration-credential-errors.ts
  • src/shared/new-workspace/smart-workspace-command-value.ts
  • src/shared/new-workspace/smart-workspace-source-results.ts
  • src/shared/new-workspace/workspace-source.ts
  • src/shared/orcad-migration-dormant-automation-validation.ts
  • src/shared/plane-ids.test.ts
  • src/shared/plane-ids.ts
  • src/shared/plane-runtime-capabilities.ts
  • src/shared/plane-types.ts
  • src/shared/plane-url.test.ts
  • src/shared/plane-url.ts
  • src/shared/protocol-version.ts
  • src/shared/rpc-contract/automation-params.ts
  • src/shared/rpc-contract/plane-params.test.ts
  • src/shared/rpc-contract/plane-params.ts
  • src/shared/task-provider-identity.ts
  • src/shared/task-providers.test.ts
  • src/shared/task-providers.ts
  • src/shared/task-source-context.test.ts
  • src/shared/task-source-context.ts
  • src/shared/workspace-attachment-normalization.ts
  • src/shared/workspace-linked-item-equality.test.ts
  • src/shared/workspace-linked-item-source-context.ts
  • src/shared/workspace-linked-item.test.ts
  • src/shared/workspace-linked-item.ts
  • src/shared/workspace-name.ts
  • src/shared/workspace-plane-link.test.ts
  • src/shared/workspace-reference-external-url.ts
  • src/shared/workspace-reference-identity.ts
  • src/shared/workspace-reference-plane.ts
  • src/shared/worktree/types.ts
  • tests/e2e/plane-tasks-fixture.ts
  • tests/e2e/plane-tasks.spec.ts

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

@pedrogiru
pedrogiru force-pushed the feat/plane-task-provider branch from 08ebe96 to 52d56c8 Compare October 15, 2026 18:04

@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: Advanced
  • Run ID: b44981b3-a4a7-44ad-9d6d-a539aafb6b63
📥 Commits

Reviewing files that changed from the base of the PR and between 08ebe961b74c7afc8f5feec0044467b4870985da and 52d56c83c75620133a47cf57ec995e49a29d1ec4.

⛔ Files ignored due to path filters: 1
  • src/shared/rpc-contract/rpc-params-catalog.generated.ts is excluded by !**/*.generated.*
📒 Files selected for processing: 7
  • src/renderer/src/components/settings/TaskSourceSimpleSetup.test.tsx
  • src/renderer/src/components/settings/TaskSourceSimpleSetup.tsx
  • src/renderer/src/components/settings/TasksPane.tsx
  • src/renderer/src/components/task-page/plane/use-plane-work-items.test.tsx
  • src/renderer/src/components/task-page/plane/use-plane-work-items.ts
  • src/shared/workspace-attachment-normalization.test.ts
  • src/shared/workspace-attachment-normalization.ts

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

@pedrogiru
pedrogiru force-pushed the feat/plane-task-provider branch from 52d56c8 to 0a51f96 Compare October 15, 2026 18:14
pedrogiru and others added 18 commits October 15, 2026 15:19
Hand-written TaskProvider unions, allowlists and `linear || jira` checks are
replaced by the shared registry: isTaskProvider, TASK_PROVIDER_LABELS, and the
account-backed / identifier-keyed provider sets. Availability is an exhaustive
switch, the Tasks page router ends in a `never` guard, and automations keep an
explicit opt-in list, so a new provider fails to compile until each surface
handles it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Task-source summaries, automation labels and workspace-reference identity were
within a few lines of the 300-line cap. Host-availability and account-backed
summaries, the provider identity label and the reference external-URL helpers
move into focused modules, and provider labels come from TASK_PROVIDER_LABELS,
so a new provider needs one case per surface instead of a split.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Linked work items gain an optional provider-neutral `identifier` (e.g. ENG-12),
which the shared normalizer and equality check now keep, so the RPC schema and
persisted worktree metadata carry it without per-provider fields. The legacy
linear/jiraIdentifier fields stay for older peers; the new field is optional.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Adds the provider-neutral contracts the Plane integration builds on: renderer-safe
types (no token field), Cloud/self-hosted URL normalization with path prefixes and
insecure-http detection, work item link building and parsing, id/slug validation,
and zod params shared by IPC and runtime RPC. The runtime capability names are only
defined here; each is advertised by the commit that implements it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Every Plane call goes through getMainHttpClient() with redirect:'error' (no client
strips X-API-Key on a cross-origin hop), a 20s timeout, a per-key sliding-window
budget that adopts X-RateLimit-* headers, one GET retry on 429 and concurrency 2
via a new abortable gate. Errors are typed by kind and never echo bodies or tokens;
pagination accepts a bare array or Plane's cursor envelope.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Persists one active Plane connection in ~/.orca/plane-connections.json (0600) with the
token sealed per connection under ~/.orca/plane-tokens, flagged when stored plaintext.
Connect checks URL, token, workspace and API flavor before writing anything; the
project scope resolves live ('all' follows new projects) and is never silently widened.
Connect, status, disconnect, scope and project listing live in one module for IPC and RPC.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Lists one page per project in scope through the per-key request lane, isolating each
project's failure and capping the result at 500 items so it fits a 1 MiB RPC frame.
Detail, identifier lookup and comments read as plain text; states and members are
cached for ten minutes and only fetched when the server did not expand them.
State changes and comments are never retried, escape user text, and word a 403 as a
missing permission.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Exposes Plane as plane:* IPC and plane.* runtime RPC over one operations module, so
local, SSH and paired runtimes validate the same zod params, answer in the same
{ok, value | error{kind}} envelope and never return the token. Connect, disconnect and
scope need accounts-admin; listWorkItems streams in chunks under the 1 MiB frame cap.
The host now advertises plane.v1; the web client and preload gain a plane namespace.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Adds the Plane card to Settings > Integrations: a connect dialog with equal
Plane Cloud and self-hosted choices, explicit consent for plain-http servers,
and a project-scope step (all projects, or a chosen set). The renderer reaches
the executing host through window.api.plane locally or `plane.*` RPC remotely,
asks older servers to update, and never holds the token after submitting it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Plane joins the task-provider registry as an account-backed, identifier-keyed
provider. Like Jira, it is listed in Tasks before it is connected, so the
Tasks surface is an entry point for setup; a one-time settings migration adds
it to existing saved provider lists, after which "Hide Plane" sticks. The Tasks
tab shows connect, choose-projects and a basic work-item list. Automations,
Cmd-J search, new-workspace sources and the mobile Tasks screen leave Plane out.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The Plane tab now lists work items with project, state-group (Open by default),
exact-state, assignee, priority and text filters, and a typed ID like WEB-12
jumps to that item. Banners name failed, missing and truncated projects (with
Load more), and a side sheet shows metadata, plain-text description and
comments. Loads abort on scope changes and refresh manually or on focus, at
most once a minute.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Plane work items open the new-workspace composer with an explicit provider:'plane' link,
a generic identifier (WEB-12 and API-12 never collide), a plain-text linked context and a
source context bound to the connection's web base, slug and project. Remote hosts that
lack worktree.linked-work-item.plane.v1 get an update prompt before any create or link
write; pasted Plane URLs are claimed only on app.plane.so or the connected workspace.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The Plane detail sheet gains a grouped state picker (Backlog, Todo, In progress,
Done, Cancelled, Triage) and a comment box; list rows get the same state change
through a right-click menu. State changes apply optimistically and roll back
with a toast on failure; comments post once per submit (Cmd/Ctrl+Enter) and are
never retried, since a timed-out write may still have landed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
One personal access token reaches every workspace its user belongs to, so connect adds or
updates a connection per workspace; plane.* calls take an optional connectionId, status
lists every connection, and adding a workspace can reuse a saved token on the host.
Settings connects several slugs at once with per-workspace results and project scopes.
Plane 1.4.2 answers a missing route with a JSON 404 and an unknown slug with a 403.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
With two or more Plane workspaces connected, the Tasks tab gets a switcher: one
workspace keeps its own list, filters and detail, and "All workspaces" merges every
list newest first with a workspace badge per row. A workspace that fails, needs
projects or a new token becomes its own banner instead of hiding the others, and
an ID like WEB-12 is looked up workspace by workspace until one has it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Translates the 201 English keys the Plane provider added (plane.* plus two
workspace.links entries) into es, fr, ja, ko and zh through
apply-translation-delta, matching each locale's existing terms for workspace,
work item, project and connection. Locale files only, so it can be dropped alone.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Documents connecting Plane Cloud and self-hosted servers side by side, adding several
workspaces with one token, per-workspace project scope and management in Settings,
where tokens are stored, remote server and TLS behaviour, the Tasks tab workflow,
limits, and troubleshooting by error message. Lists Plane in the Settings docs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Drives the Plane Tasks list, filters, ID jump, detail, state change, comment, creating a
linked workspace from a row and from the detail, the workspace switcher with All workspaces,
and the Settings card with a Plane Cloud and a self-hosted workspace. Main's plane:* handlers
answer per workspace from fixtures, so no request leaves the machine; screenshot steps write
light and dark PNGs to the ignored validation-screenshots folder.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@pedrogiru
pedrogiru force-pushed the feat/plane-task-provider branch from 0a51f96 to b86a6e3 Compare October 15, 2026 18:19
decadance-dance added a commit to decadance-dance/orca-plane that referenced this pull request Nov 16, 2026
…#7)

Ports URL normalization and HTML to text from stablyai/orca#29182 (b86a6e39).

Refs #7
@Hugosquall

Hugosquall commented Nov 23, 2026 •

Copy link
Copy Markdown

@pedrogiru please, we need this!
I use Plane to manage multiple projects, and I’d use this integration in Orca daily. The part that matters most to me is being able to see tasks across projects and then filter down to one project. Once the merge conflicts are resolved, I’d be happy to test that workflow on macOS and report what I find.

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.

2 participants