Repository navigation
Conversation
|
Ready to review this PR? Stage has broken it down into 9 individual chapters for you: Chapters generated by Stage for commit ee8ddf8 on Jun 22, 2026 10:46pm UTC. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📥 CommitsReviewing files that changed from the base of the PR and between 1f59fb25640c462510312368a2ac274293c673d9 and fe0ce9d. 📒 Files selected for processing (26)
💤 Files with no reviewable changes (13)
✅ Files skipped from review due to trivial changes (1)
🚧 Files skipped from review as they are similar to previous changes (9)
📝 WalkthroughWalkthroughThis pull request introduces an experimental "Orcastrators" feature (behind 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 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: 14
🧹 Nitpick comments (2)
src/main/jira/client.test.ts (1)
173-198: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winAdd one test that exercises the
jiraRequestpath forUser-Agenttoo.This case validates
requestWithCredentialsviatestConnection, but the PR also changedjiraRequest. A companion test through ajiraRequest-backed call will lock both header injection points.src/main/jira/issues.ts (1)
350-375: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick winMake the all-sites-failed thrown error deterministic.
failures.push(error)records completion order, sothrow failures[0]can vary by timing. Prefer indexing failures byentriesorder (or keeping a dedicated first-entry failure) to keep surfaced error messaging stable.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: 097ed126-f404-46b5-9701-0c24135f056b
📒 Files selected for processing (66)
.nvmrcMAINTAINING-OUR-FORK.mdORCASTRATORS-SPEC.mdconfig/electron-builder.config.cjsscripts/rebuild-ours.shsrc/main/jira/client.test.tssrc/main/jira/client.tssrc/main/jira/issues.test.tssrc/main/jira/issues.tssrc/renderer/src/App.tsxsrc/renderer/src/assets/main.csssrc/renderer/src/components/Landing.tsxsrc/renderer/src/components/NewWorkspaceComposerCard.tsxsrc/renderer/src/components/NewWorkspaceComposerModal.tsxsrc/renderer/src/components/OrchestratorLaunchModal.tsxsrc/renderer/src/components/TaskPage.tsxsrc/renderer/src/components/right-sidebar/ChecksPanel.review-header.test.tsxsrc/renderer/src/components/right-sidebar/ChecksPanel.tsxsrc/renderer/src/components/right-sidebar/ChecksPanelInner.tsxsrc/renderer/src/components/right-sidebar/ChecksPanelReviewHeader.tsxsrc/renderer/src/components/right-sidebar/OrchestratorMissionControl.tsxsrc/renderer/src/components/right-sidebar/OrchestratorPanelNotice.tsxsrc/renderer/src/components/right-sidebar/SourceControl.tsxsrc/renderer/src/components/right-sidebar/checks-panel-gitlab-review-rpc.tssrc/renderer/src/components/right-sidebar/checks-panel-inner-types.tssrc/renderer/src/components/right-sidebar/right-sidebar-panel-content.tsxsrc/renderer/src/components/settings/ExperimentalPane.tsxsrc/renderer/src/components/settings/OrchestratorsExperimentalToggle.tsxsrc/renderer/src/components/settings/experimental-search.tssrc/renderer/src/components/settings/orchestrators-search-entry.tssrc/renderer/src/components/sidebar/OrchestratorsSidebarSection.tsxsrc/renderer/src/components/sidebar/WorktreeCardAgents.tsxsrc/renderer/src/components/sidebar/WorktreeList.tsxsrc/renderer/src/components/sidebar/index.tsxsrc/renderer/src/i18n/locales/en.jsonsrc/renderer/src/i18n/locales/es.jsonsrc/renderer/src/i18n/locales/ja.jsonsrc/renderer/src/i18n/locales/ko.jsonsrc/renderer/src/i18n/locales/zh.jsonsrc/renderer/src/lib/github-pr-search-url.test.tssrc/renderer/src/lib/github-pr-search-url.tssrc/renderer/src/lib/orcastrate-log-shipped-work.test.tssrc/renderer/src/lib/orcastrate-log-shipped-work.tssrc/renderer/src/lib/orchestrator-launch.tssrc/renderer/src/lib/orchestrator-mission-control-data.test.tssrc/renderer/src/lib/orchestrator-mission-control-data.tssrc/renderer/src/lib/orchestrator-work-item-prompt.test.tssrc/renderer/src/lib/orchestrator-work-item-prompt.tssrc/renderer/src/lib/orchestrator-worker-pr-badge.test.tssrc/renderer/src/lib/orchestrator-worker-pr-badge.tssrc/renderer/src/lib/send-work-item-to-orchestrator.tssrc/renderer/src/lib/shipped-branch-pr-match.test.tssrc/renderer/src/lib/shipped-branch-pr-match.tssrc/renderer/src/lib/use-orchestrator-active-worktree.tssrc/renderer/src/lib/worktree-agent-dot-state.tssrc/renderer/src/store/index.tssrc/renderer/src/store/slices/diffComments.test.tssrc/renderer/src/store/slices/jira.test.tssrc/renderer/src/store/slices/jira.tssrc/renderer/src/store/slices/orchestrators.test.tssrc/renderer/src/store/slices/orchestrators.tssrc/renderer/src/store/slices/store-test-helpers.tssrc/renderer/src/store/slices/ui.tssrc/renderer/src/store/slices/worktrees.tssrc/renderer/src/store/types.tssrc/shared/types.ts
| open dist/mac-arm64/Orca.app # run it | ||
| ``` | ||
|
|
||
| Install it if you like: `cp -R dist/mac-arm64/Orca.app /Applications/`. |
There was a problem hiding this comment.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
Use a non-conflicting install path in the quick-start command.
Line [19] copies to /Applications/Orca.app, which can overwrite the official app and conflicts with the isolation model documented later in this file and in the install script.
Suggested doc fix
-Install it if you like: `cp -R dist/mac-arm64/Orca.app /Applications/`.
+Install it if you like: `cp -R dist/mac-arm64/Orca.app "/Applications/Orca (Ours).app"`.📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| Install it if you like: `cp -R dist/mac-arm64/Orca.app /Applications/`. | |
| Install it if you like: `cp -R dist/mac-arm64/Orca.app "/Applications/Orca (Ours).app"`. |
| if [ "$WANT_SYNC" -eq 1 ]; then | ||
| echo "==> Pulling the latest official changes from upstream/main" | ||
| git fetch upstream | ||
| if ! git merge --no-edit upstream/main; then | ||
| echo "!! Conflict merging upstream. Resolve the files, 'git commit', then re-run." >&2 | ||
| exit 1 | ||
| fi | ||
| git push origin main || echo "(could not push main; continuing with the local build)" | ||
| fi |
There was a problem hiding this comment.
🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win
Abort --sync when push fails instead of continuing.
Line [50] masks git push failures, so a “synced” run can still leave origin/main stale while continuing to build.
Suggested fix
- git push origin main || echo "(could not push main; continuing with the local build)"
+ if ! git push origin main; then
+ echo "!! Failed to push origin/main. Aborting so sync state is explicit." >&2
+ exit 1
+ fi📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| if [ "$WANT_SYNC" -eq 1 ]; then | |
| echo "==> Pulling the latest official changes from upstream/main" | |
| git fetch upstream | |
| if ! git merge --no-edit upstream/main; then | |
| echo "!! Conflict merging upstream. Resolve the files, 'git commit', then re-run." >&2 | |
| exit 1 | |
| fi | |
| git push origin main || echo "(could not push main; continuing with the local build)" | |
| fi | |
| if [ "$WANT_SYNC" -eq 1 ]; then | |
| echo "==> Pulling the latest official changes from upstream/main" | |
| git fetch upstream | |
| if ! git merge --no-edit upstream/main; then | |
| echo "!! Conflict merging upstream. Resolve the files, 'git commit', then re-run." >&2 | |
| exit 1 | |
| fi | |
| if ! git push origin main; then | |
| echo "!! Failed to push origin/main. Aborting so sync state is explicit." >&2 | |
| exit 1 | |
| fi | |
| fi |
| echo "==> Installing dependencies (pnpm via corepack)" | ||
| corepack pnpm install --frozen-lockfile || corepack pnpm install |
There was a problem hiding this comment.
🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win
Keep dependency installation deterministic for rebuilds.
Lines [53-54] fall back to a non-frozen install, which can mutate dependency resolution in the same command intended for reproducible rebuilds.
Suggested fix
-echo "==> Installing dependencies (pnpm via corepack)"
-corepack pnpm install --frozen-lockfile || corepack pnpm install
+echo "==> Installing dependencies (pnpm via corepack, frozen lockfile)"
+if ! corepack pnpm install --frozen-lockfile; then
+ echo "!! pnpm-lock.yaml is out of sync. Update it intentionally, review changes, then re-run." >&2
+ exit 1
+fi📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| echo "==> Installing dependencies (pnpm via corepack)" | |
| corepack pnpm install --frozen-lockfile || corepack pnpm install | |
| echo "==> Installing dependencies (pnpm via corepack, frozen lockfile)" | |
| if ! corepack pnpm install --frozen-lockfile; then | |
| echo "!! pnpm-lock.yaml is out of sync. Update it intentionally, review changes, then re-run." >&2 | |
| exit 1 | |
| fi |
ee8ddf8 to
1f59fb2
Compare
CodeRabbit feedback addressedHistory was also cleaned: the four fork-only commits (auto-update feed → our fork, Each inline/nitpick comment and how it was resolved:
Intentionally skipped / moot:
While localizing for the coverage gate, the new Verification: |
Captures the proposed "Orcastrators" sidebar section + create-flow, build phases, settings (mapped to coordinator TUNABLES + external-LLM adversarial review), multi-coordinator isolation, and integration points. Planning doc for the feat/orcastrators-sidebar prototype. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…ggle First slice of the Orcastrators feature (see ORCASTRATORS-SPEC.md): the GlobalSettings.experimentalOrchestrators flag, an Experimental-pane toggle (extracted to OrchestratorsExperimentalToggle to respect max-lines), and a settings-search entry (extracted to orchestrators-search-entry). Gates the upcoming sidebar section; no behavior yet beyond the toggle. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Records the traced, confirmed renderer call sequence for spawning a coordinator in a repo's existing primary worktree with /orcastrate seeded (primary-worktree lookup, createTab, startup payload, ensureAgentStartup- InTerminal / pasteDraftWhenAgentReady), plus the two args left to copy from the composer submit path. De-risks the launch slice. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Adds the experimental "Orcastrators" section above Projects with a + that opens a project picker; selecting a project launches a coordinator agent in that project's primary worktree and seeds /orcastrate. - orchestrator-launch.ts: resolves the project's primary worktree, builds the agent startup plan, activates the worktree with that startup command, and paste-submits /orcastrate when the TUI is ready (reuses the verified launch-work-item-direct agent helpers). - OrchestratorsSidebarSection.tsx: the gated section + picker, wired into the sidebar above the project list. Gated behind experimentalOrchestrators. typecheck + lint clean. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Locks the revised design from the working session: the Orcastrator is a persistent *director* (lives in the ORCASTRATORS section, no worktree shown, runs in the primary checkout but display-decoupled), survives restart, allows several per project, and uses disposition (delegate / decide-done / adversarial review / write-as-last-resort) rather than a permission sandbox. Adds an ordered v2 build plan (launch robustness, registry, persistence/reattach, display-decoupling) with a verify-before-commit risk note. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Replaces the activation-startup approach (which no-ops when the worktree is already active, so relaunch spawned nothing) with createTab + queueTabStartupCommand: forces a fresh agent tab and queues the launch command directly onto it, working whether or not the worktree is already open. Also delivers /orcastrate via pasteDraftWhenAgentReady with a 90s window so a cold agent boot no longer drops the prompt with a "took too long" toast. Verified live: relaunch into an open worktree spawns a fresh director and /orcastrate auto-runs. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Adds an OrchestratorsSlice tracking launched directors (id/project/worktree/ tab/launchedAt); launchOrchestratorForProject registers one on launch. The ORCASTRATORS sidebar section now lists live directors as clickable entries (project name, no worktree shown) and drops entries whose tab was closed. Wired the slice into the store + both test-store helpers. Verified live: launching shows a persistent "my-project" entry under ORCASTRATORS. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Display-decoupling (step 4, part 1): exclude an Orcastrator's agent tab from the worktree card's agent rows so the director no longer appears under Projects, and show the director's live state (working spinner / ready dot) on its ORCASTRATORS entry instead. Verified live: the /orcastrate agent row is gone from under the worktree and the section entry shows a status indicator. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Make the ORCASTRATORS list a navigator: highlight the active director's entry with the worktree card's exact active-surface styling — adds an `.orcastrator-active-surface` class to the shared active-surface CSS rule group in main.css (single source of truth) and reuses `worktree-sidebar-card-hover` for hover. Status now renders via the shared AgentStateDot. No invented styles. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
The Orcastrator is now a first-class director, fully decoupled from the project's primary checkout: launch creates a *dedicated* worktree via createWorktree (skip-setup), runs the coordinator + /orcastrate there, and registers it by worktree id. WorktreeList excludes director worktrees so they never appear under Projects — they live only in the ORCASTRATORS section. Verified live: launching spawns a director in its own worktree (workspaces/<project>/orcastrator-<project>), shown only under ORCASTRATORS, with nothing leaking into Projects. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Step 3 + lifecycle. The in-memory registry doesn't survive a reload, so on load (and when worktrees change) reattachOrchestrators rebuilds it by detecting director worktrees via the ORCASTRATOR_DISPLAY_PREFIX displayName marker — re-hiding them from Projects and re-showing them under ORCASTRATORS, reattached to their still-running agent. The section now keys off worktree existence (robust to tab-id drift on reattach) and derives status from the worktree's tabs. Adds closeOrchestrator (X-on-hover) which tears down the director's dedicated worktree and drops it from the registry. Note: pending live verification (author away); typecheck + lint clean and gated behind experimentalOrchestrators. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Covers register/dedupe/remove, reattach detection (by displayName prefix, project mapping, fallback to repo id + stripped name, idempotency, skipping non-directors), and closeOrchestrator teardown (incl. the worktree-removal- failure path). 7 tests, all passing. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…tores
The Orcastrator feature reads new store fields (orchestrators registry,
worktreesByRepo) in WorktreeList, WorktreeCardAgents, and the section. Older
component test mocks build partial stores without these, so the reads threw.
Guard them (?? [] / ?? {}). Fixes 49 renderer test regressions; full renderer
suite green. (Remaining failures are pre-existing main/relay PTY/bash/relay
env tests, unrelated to this branch.)
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Records the implemented state of the director rearchitect (flag, launch, registry/navigator, dedicated worktree, reattach, close/cleanup), the dedicated-worktree design decision, and known follow-ups. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
… + task)
Replaces the +-dropdown with a native modal matching the "Create worktree"
composer (same Dialog + ProjectCombobox + AgentCombobox). Fields: Name (shown
in the ORCASTRATORS list), Project, Agent, and a task prompt — the prompt is
seeded after /orcastrate so the director starts planning the task instead of
asking for it. Also adds a gated "Create Orcastrator" button to the Landing
empty state next to Add Project / Create worktree.
launchOrchestratorForProject now takes { name, agent, prompt }. Verified live:
a named director ("Build Site") launched with a task, planned it, and spun up
worker worktrees under the project while staying in the ORCASTRATORS section.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…", design polish - Source Control: show a director explainer instead of the publish/PR empty state for an Orcastrator's worktree (it has no branch of its own to publish). - Suppress the "local main is behind" suggestion toast for director worktrees. - Send to Orcastrator: hand a tracked issue (GitHub/GitLab/Linear/Jira) to a director from the GitHub issue-row menu and the New Workspace composer footer; opens the launch modal prefilled, pre-selecting the project when the issue is repo-bound. - Launch modal: read prefill from modalData; align with the Create-worktree composer (max-w-lg, auto-focus Name, matching textarea focus/shadow tokens). - Experimental toggle: use the shared SettingsSwitch for the focus ring + a11y. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FNy4vrv3mvyjpPnhJMZr82
… shipped history, and PR links Replaces the misleading publish/PR view for a director's worktree with a Mission Control console, consistent across the right-sidebar panels: - Source Control: director header + 'no branch to publish' summary, plus the worker worktrees it spawned (linked via lineage parent) with each worker's live agent-state dot and a clickable PR badge. - Checks (and other branch/PR panels): a director notice with an 'Open Mission Control' jump, routed centrally so directors read correctly on every tab. - Shipped: the director's completed work, read from its own .orcastrate/log.jsonl so it survives worker teardown. Each branch is matched to its merged PR by head ref — prefix-agnostic, so branch-rename-on-push still resolves — with a direct PR link. - PR state renders as GitHub-styled pills (merged/open/closed/draft) with an external-link affordance. Shared logic (lineage worker selection, agent-dot derivation, PR-badge derivation, log parsing, branch matching, PR-search-URL fallback) is extracted into pure, unit-tested helpers. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FNy4vrv3mvyjpPnhJMZr82
Double-click an Orcastrator's name in the sidebar to edit it inline, matching the existing worktree-title rename UX. Reuses WorktreeTitleInlineRename (Enter commits, Escape cancels, blur commits, empty/unchanged guarded). The rename updates both sources of truth: an optimistic in-memory updateOrchestrator for instant UI, then the durable worktree displayName (prefixed with ORCASTRATOR_DISPLAY_PREFIX) via the existing updateWorktreeMeta path so reattachOrchestrators reconstructs the name after a reload. The activate target became a role="button" div because an Input nested in a <button> is invalid HTML; Enter/Space keep it keyboard-accessible and the close (X) button is unaffected. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…ayName reattachOrchestrators preferred project?.displayName over the persisted worktree displayName, so a renamed Orcastrator with a matching project reverted to the project name on reload — silently discarding the rename. Treat the prefix-stripped worktree displayName as the durable source of truth (it's `prefix + project.displayName` at launch, so un-renamed directors reconstruct identically), falling back to project/repo only when no name survives the prefix. Adds a test that fails against the old precedence, and a "why" note on the optimistic rename update. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…rktree wrapper Split ChecksPanel into a thin active-worktree wrapper (default export) and a prop-driven ChecksPanelInner that reads no active-worktree globals. The wrapper supplies worktree/repo/gitIdentityDisplay/linked-review identity as explicit props; the inner is agnostic about whether its target is the active worktree, so a shipped-PR caller (Mission Control, PR2) can drive the same UI from a branch/PR identity without a live worktree. Also extracted leaf modules: ChecksPanelReviewHeader, GitLab review RPC helpers, and the inner prop/types. Behavior-preserving for the existing Checks tab. (In progress) max-lines split of ChecksPanelInner still pending; temporary eslint-disable retained until the hook/component extraction lands. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…max-lines follow-up Annotate the spots in ChecksPanelInner that genuinely require a live Worktree (rename/link-PR modal, push/publish, HostedReviewActions merge) with // PR2: notes so the Mission Control consumer knows what to supply. Make the inherited max-lines disable comment reference the focused file-split follow-up. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Replace the temporary disable framing on ChecksPanelInner with the original ChecksPanel.tsx '-- Why:' rationale, noting it is inherited from the pre-split file and that a deeper sub-module split is out of scope for this behavior- preserving prop-extraction. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Apply CodeRabbit feedback across the checks refactor + orchestrator base: - ChecksPanelReviewHeader: exhaustive HostedReviewProvider handling so Bitbucket/Azure DevOps/Gitea show their own host label, not "GitHub". - OrchestratorMissionControl: reuse the token-based prStateColor palette instead of hardcoded hex PR-state colors; resolve the repo slug through the repo-slug contract (env-target routing) instead of direct IPC. - OrchestratorLaunchModal: keep the modal open on a failed launch so user input isn't dropped. - OrchestratorsSidebarSection: persist the worktree displayName before the optimistic in-memory rename; restore focus-visible + touch discoverability on the row and close control. - WorktreeCardAgents / WorktreeList: gate orchestrator filtering behind the experimentalOrchestrators toggle so disabling it never hides real rows. - orchestrators slice: roll back the registry entry when worktree teardown fails so the sidebar stays consistent with actual worktree state. - worktrees slice: classify orchestrator worktrees off the persisted result.worktree.displayName, not the caller input. - SourceControl: gate the director switch above SourceControlInner so a director worktree never mounts its branch/status/review hooks. - jira/issues: surface the first connected-site failure deterministically (entries order) instead of completion order. - jira/client.test: lock the jiraRequest User-Agent/auth header path. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
1f59fb2 to
fe0ce9d
Compare
Rebased onto current
|
Apply the remaining open CodeRabbit comments on the PR-cards work (the shared stablyai#6103 fixes arrived via rebase onto the fixed parent): - OrchestratorMissionControl: scope worktreeByBranch to the director's repo so a same-named branch in another repo can't pair a foreign live worktree with directorRepo, producing a mismatched card action target. - OrchestratorLaunchModal: seed the form only on the closed→open transition so a prefill prop changing while open can't overwrite the user's in-progress edits. - orchestrator-launch: roll back the just-created worktree when activation fails (no orphaned hidden worktree); surface a toast when the /orcastrate paste doesn't land instead of dropping it silently. - orchestrators slice: also roll back on removeWorktree { ok: false } (soft failure, not just a throw); prune stale registry entries on reattach so removed/renamed directors don't linger as zombie cards. - ORCASTRATORS-SPEC: mark the v2 plan's registry/persistence steps as superseded by shipped behavior (tabId not agentTabId, no status field, displayName-marker reattach). - Add the prompt_failed locale string across all 5 locales, plus tests for the soft-failure rollback and the stale-entry prune. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
|
Folded into the consolidated Orcastrator PR #6293. |
What
Behavior-preserving refactor of the right-sidebar Checks tab. Splits the
~3.6k-line
ChecksPanelinto:ChecksPanel.tsx— thin wrapper (default export, unchanged public surface).Reads the active worktree / id / repo / git-identity / linked-review identity
from the store and passes them down as explicit props.
ChecksPanelInner.tsx— the actual PR / checks / merge / comments UI,parameterized entirely by props. Reads no active-worktree globals.
This unblocks rendering "the PR for some other worktree" (Orcastrator Mission
Control, PR2) without touching
OrchestratorMissionControl.tsx.ChecksPanelInnerprop contractrepo,gitIdentityDisplay, and thelinked*numbers are explicit props so ashipped-PR caller can drive the UI from a branch/PR identity without a live
worktree.
worktreeis optional and only gates the actions that genuinely needa local checkout.
connectionId,branch,detachedHeadDisplay, worktree path /push target, and all cache keys are derived inside the inner from these props, so
they no-op cleanly when no worktree is present.
Provider-agnostic paths (GitHub + GitLab/Bitbucket/Azure/Gitea) are preserved.
New file layout
ChecksPanel.tsx— active-worktree wrapper (default export)ChecksPanelInner.tsx— prop-driven innerChecksPanelReviewHeader.tsx— extracted review header (was inline; test import updated)checks-panel-gitlab-review-rpc.ts— GitLab MR fetch/resolve +isGitLabChecksPanelReviewchecks-panel-inner-types.ts—ChecksPanelInnerProps,HostedReviewCreationSnapshot,ChecksAgentComposerState// PR2:spots the Mission Control consumer must supply (worktree-gated)These genuinely require a live
Worktree; each is isolated and no-ops when theworktree is absent, with an inline
// PR2:note:handleLinkAnotherPullRequest) — edits worktree meta.pushBeforeCreatePullRequest) — needs the local checkout path.handlePublishBranch) — needs the local checkout path.HostedReviewActions(merge / delete-workspace) — requires aWorktree; gated off when absent.Mission Control must supply a worktree, or a shipped-PR-aware surface, for these.
Verification
tsgotypecheck: web / node / cli all passoxlint: clean on all touched filesvite build --config vite.web.config.ts): successmax-linesdisable (intentional, inherited)ChecksPanelInner.tsxcarries the same documentedeslint-disable max-linesthat the original
ChecksPanel.tsxalready had (the comment mirrors it andnotes it is inherited from the pre-split file). This refactor carries inherited
debt forward — it does not add net-new debt — while shrinking the file and
extracting real modules. A deeper split of the inner into sub-300-line
hook/component modules is possible future cleanup but explicitly out of scope
here: it is a static-only decomposition of deeply-interleaved, merge-bearing
effects and belongs in its own change, separate from this behavior-preserving
prop-extraction.
Not for merge (draft). Does not touch
OrchestratorMissionControl.tsx.🤖 Generated with Claude Code