Repository navigation
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:
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
There was a problem hiding this comment.
Actionable comments posted: 2
🔇 Additional comments: 47
src/shared/orchestration-worker-roles.ts: 1
1-74: LGTM!src/shared/rpc-contract/orchestration-worker-start-params.ts: 1
3-3: LGTM!Also applies to: 31-31, 34-34
src/shared/rpc-contract/orchestration-federation-start-params.ts: 1
4-4: LGTM!Also applies to: 26-26, 29-43
src/shared/agent-session-host-authority.ts: 1
96-97: LGTM!src/shared/rpc-contract/agent-session-params.ts: 1
68-73: LGTM!src/shared/orchestration-runtime-capabilities.ts: 1
10-11: LGTM!Also applies to: 29-29
src/shared/protocol-version.ts: 1
107-107: LGTM!src/shared/default-global-settings.ts: 1
161-161: LGTM!src/shared/global-settings-base.ts: 1
7-7: LGTM!Also applies to: 15-16
src/main/persistence/applying-settings/settings-update.ts: 1
8-8: LGTM!Also applies to: 86-90
src/main/runtime/runtime-store-contract.ts: 1
114-114: LGTM!src/renderer/src/components/settings/OrchestrationPane.tsx: 1
31-31: LGTM!Also applies to: 167-169
src/renderer/src/components/settings/WorkerRoleProfileEditor.tsx: 1
1-165: LGTM!src/renderer/src/components/settings/WorkerRoleSettings.tsx: 1
1-149: LGTM!src/renderer/src/components/settings/orchestration-search.ts: 1
22-22: LGTM!Also applies to: 94-115
src/renderer/src/components/settings/use-worker-role-model-catalog.ts: 1
1-71: LGTM!src/renderer/src/components/settings/use-worker-role-model-catalog.test.tsx: 1
1-102: LGTM!src/renderer/src/i18n/locales/en.json: 1
533-566: LGTM!src/shared/orchestration-worker-roles.test.ts: 1
1-150: LGTM!src/cli/agent-launch-request.ts: 1
18-18: LGTM!Also applies to: 39-39
src/cli/flag-help-text.ts: 1
48-49: LGTM!src/cli/specs/orchestration-worker-specs.ts: 1
8-8: LGTM!Also applies to: 25-25, 28-28, 38-39
src/cli/handlers/orchestration/worker-launch-handler.ts: 1
6-9: LGTM!Also applies to: 19-44, 87-87, 90-90
src/cli/handlers/orchestration-worker-role-cli.test.ts: 1
1-76: LGTM!src/cli/handlers/orchestration/worker-output.ts: 1
12-21: LGTM!Also applies to: 39-49
src/cli/handlers/orchestration/worker-output.test.ts: 1
45-73: LGTM!docs/site/content/docs/cli/orchestration.mdx: 1
49-73: LGTM!src/main/runtime/rpc/methods/orchestration/worker/worker-start-launch-preflight.ts: 1
1-104: LGTM!src/main/runtime/rpc/methods/orchestration/worker/worker-start-validation.ts: 1
5-5: LGTM!Also applies to: 56-57, 85-86, 92-93, 99-99, 141-142, 151-152, 158-159, 177-183
src/main/runtime/rpc/methods/orchestration/worker/worker-launch-preferences.ts: 2
3-9: LGTM!Also applies to: 16-17, 21-22, 27-52, 58-75, 83-84, 87-87, 91-92, 104-107, 112-129, 133-141, 144-149, 157-158, 160-160, 163-163, 171-172, 176-185
202-207: 🗄️ Data Integrity & IntegrationThe receipt parser preserves
launch.roleandfastMode.
parseRemoteFederatedWorkerStartReceiptreturns the validated receipt object directly. It does not parselaunchwith Zod or strip fields. The proposed Zod-stripping failure is not supported.src/main/runtime/rpc/methods/orchestration/worker/worker-opencode-model-preflight.ts: 1
35-47: LGTM!src/main/runtime/rpc/methods/orchestration/worker/worker-structured-fast-preflight.ts: 1
1-75: LGTM!src/main/runtime/rpc/methods/orchestration/worker/worker-structured-fast-preflight.test.ts: 1
1-144: LGTM!src/shared/agent-launch-model-preferences.ts: 1
31-31: LGTM!Also applies to: 36-38, 81-97, 102-103
src/main/runtime/terminal/launch/orchestration-agent-launch.ts: 1
1-159: LGTM!src/main/runtime/terminal/wait/terminal-interactive-wait.ts: 1
2-2: LGTM!Also applies to: 22-22
src/main/runtime/orca-runtime-create-agent-session.ts: 1
78-83: LGTM!Also applies to: 146-151
src/main/runtime/session-construction/agent-session/get-agent-session-execution-namespace.ts: 1
79-79: LGTM!Also applies to: 86-88
src/main/runtime/workspaces/workspace-activation.ts: 1
55-55: LGTM!skill-guides/orchestration/references/coordinator-loop.md: 1
48-74: LGTM!src/main/runtime/rpc/methods/orchestration/federation/federated-worker-launch-preflight.ts: 1
1-88: LGTM!src/main/runtime/rpc/methods/orchestration/federation/federated-worker-start.ts: 1
8-8: LGTM!Also applies to: 33-33, 73-73, 76-78, 91-98, 183-183, 186-186
src/main/runtime/rpc/methods/orchestration/worker/workers.ts: 1
19-21: LGTM!Also applies to: 29-29, 32-46, 116-134
src/main/runtime/rpc/methods/orchestration/worker/worker-role-routing.test.ts: 1
1-261: LGTM!src/main/runtime/rpc/methods/orchestration/federation/federation-start-schema.ts: 1
2-6: LGTM!Also applies to: 9-9
src/main/runtime/rpc/methods/orchestration/worker/local-worker-start.ts: 1
59-59:Trivial · Maintainability & Code Quality · Quick win
⚠️ Unverified finding
Verification ran but could not confirm this finding. It is shown for review, not as a verified issue.Rename the destructured
fastModemode receipt.
fastModehere is aWorkerStartModeReceipt, not a boolean. Line 103 readsparams.fastMode, which is the boolean Fast preference. Two unrelated values share one name in the same routing decision, so a later edit can easily confuse them. Rename the field in thepreflightLocalWorkerStartLaunchreturn value, for example tofastHostMode.♻️ Proposed rename
- const { agent, launch, fastWorkspace, fastMode } = await preflightLocalWorkerStartLaunch({ + const { agent, launch, fastWorkspace, fastHostMode } = await preflightLocalWorkerStartLaunch({ ... - const hostMode = - fastMode ?? resolveWorkerStartModeOnHost(runtime, args.mode, resolvedWorktree?.id, agent) + const hostMode = + fastHostMode ?? resolveWorkerStartModeOnHost(runtime, args.mode, resolvedWorktree?.id, agent)Also rename it in
worker-start-launch-preflight.ts(return { ...prepared, fastWorkspace, fastHostMode }).Also applies to: 100-101

Review info
-
Run configuration-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
e1003cf6-976d-43cf-a35b-bf02106780be
Files ignored due to path filters: 1-
src/shared/rpc-contract/rpc-params-catalog.generated.tsis excluded by!**/*.generated.*
Files selected for processing: 47-
docs/site/content/docs/cli/orchestration.mdxskill-guides/orchestration/references/coordinator-loop.mdsrc/cli/agent-launch-request.tssrc/cli/bundled-skill-guides.tssrc/cli/flag-help-text.tssrc/cli/handlers/orchestration-worker-role-cli.test.tssrc/cli/handlers/orchestration/worker-launch-handler.tssrc/cli/handlers/orchestration/worker-output.test.tssrc/cli/handlers/orchestration/worker-output.tssrc/cli/specs/orchestration-worker-specs.tssrc/main/persistence/applying-settings/settings-update.tssrc/main/runtime/orca-runtime-create-agent-session.tssrc/main/runtime/rpc/methods/orchestration/federation/federated-worker-launch-preflight.tssrc/main/runtime/rpc/methods/orchestration/federation/federated-worker-start.tssrc/main/runtime/rpc/methods/orchestration/federation/federation-start-schema.tssrc/main/runtime/rpc/methods/orchestration/worker/local-worker-start.tssrc/main/runtime/rpc/methods/orchestration/worker/worker-launch-preferences.tssrc/main/runtime/rpc/methods/orchestration/worker/worker-opencode-model-preflight.tssrc/main/runtime/rpc/methods/orchestration/worker/worker-role-routing.test.tssrc/main/runtime/rpc/methods/orchestration/worker/worker-start-launch-preflight.tssrc/main/runtime/rpc/methods/orchestration/worker/worker-start-validation.tssrc/main/runtime/rpc/methods/orchestration/worker/worker-structured-fast-preflight.test.tssrc/main/runtime/rpc/methods/orchestration/worker/worker-structured-fast-preflight.tssrc/main/runtime/rpc/methods/orchestration/worker/workers.tssrc/main/runtime/runtime-store-contract.tssrc/main/runtime/session-construction/agent-session/get-agent-session-execution-namespace.tssrc/main/runtime/terminal/launch/orchestration-agent-launch.tssrc/main/runtime/terminal/wait/terminal-interactive-wait.tssrc/main/runtime/workspaces/workspace-activation.tssrc/renderer/src/components/settings/OrchestrationPane.tsxsrc/renderer/src/components/settings/WorkerRoleProfileEditor.tsxsrc/renderer/src/components/settings/WorkerRoleSettings.tsxsrc/renderer/src/components/settings/orchestration-search.tssrc/renderer/src/components/settings/use-worker-role-model-catalog.test.tsxsrc/renderer/src/components/settings/use-worker-role-model-catalog.tssrc/renderer/src/i18n/locales/en.jsonsrc/shared/agent-launch-model-preferences.tssrc/shared/agent-session-host-authority.tssrc/shared/default-global-settings.tssrc/shared/global-settings-base.tssrc/shared/orchestration-runtime-capabilities.tssrc/shared/orchestration-worker-roles.test.tssrc/shared/orchestration-worker-roles.tssrc/shared/protocol-version.tssrc/shared/rpc-contract/agent-session-params.tssrc/shared/rpc-contract/orchestration-federation-start-params.tssrc/shared/rpc-contract/orchestration-worker-start-params.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 2 remain after this review.
-
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to GitHub limitations.

Minor · Preserve and compare the federated serviceTier. · worker-launch-preferences.ts:197-215
src/main/runtime/rpc/methods/orchestration/worker/worker-launch-preferences.ts:197-215
🗄️ Data Integrity & Integration | 🟡 Minor | ⚡ Quick winPreserve and compare the federated
serviceTier.For Codex Fast, the remote preflight selects an advertised tier and rejects the request when no tier exists. The remote ready receipt preserves that tier, but the coordinator’s preflight schema strips it and
resolveFederatedWorkerLaunchReceiptdoes not compare it. A ready receipt with a different or missing tier can therefore be accepted and attached.Add
serviceTierto the preflight schema and compare it with the ready receipt. A different tier is not a valid provider fallback.Suggested fix
const PreflightSelection = z.object({ agent: z.custom<TuiAgent>((value) => typeof value === 'string' && isTuiAgent(value)), model: z.string().nullable(), effort: z.string().nullable(), - fastMode: z.boolean().optional() + fastMode: z.boolean().optional(), + serviceTier: z.string().optional() }) ... actual.model !== requested.requested.model || actual.effort !== requested.requested.effort || - actual.fastMode !== requested.requested.fastMode + actual.fastMode !== requested.requested.fastMode || + actual.serviceTier !== requested.requested.serviceTier

Review info
-
Run configuration-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
7327a9c2-1b63-42f1-941f-b2a25bff91dd
Files selected for processing: 4-
src/main/runtime/rpc/methods/orchestration/federation/federated-worker-start.tssrc/main/runtime/rpc/methods/orchestration/worker/local-worker-start.tssrc/main/runtime/rpc/methods/orchestration/worker/worker-role-routing.test.tssrc/main/runtime/rpc/methods/orchestration/worker/worker-start-launch-preflight.ts
Files skipped from review as they are similar to previous changes: 3-
- src/main/runtime/rpc/methods/orchestration/worker/worker-start-launch-preflight.ts
- src/main/runtime/rpc/methods/orchestration/federation/federated-worker-start.ts
- src/main/runtime/rpc/methods/orchestration/worker/worker-role-routing.test.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.
-
|
Addressed the outside-diff finding from review #33369 (review) in b8c8640. The preflight schema now preserves the execution host's optional A durable worker-start regression was red before the fix. It now covers matching For the generic docstring warning, this PR follows the repository's |
There was a problem hiding this comment.
Actionable comments posted: 1

Review info
-
Run configuration-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
5c211b1c-2da3-40ab-a0a2-baa6f04bfcc1
Files ignored due to path filters: 1-
src/shared/rpc-contract/rpc-params-catalog.generated.tsis excluded by!**/*.generated.*
Files selected for processing: 22-
src/cli/bundled-skill-guides.tssrc/main/persistence/applying-settings/settings-update.tssrc/main/runtime/orca-runtime-create-agent-session.tssrc/main/runtime/rpc/methods/orchestration/federation/federated-worker-start.tssrc/main/runtime/rpc/methods/orchestration/worker/workers.tssrc/main/runtime/runtime-store-contract.tssrc/main/runtime/session-construction/agent-session/get-agent-session-execution-namespace.tssrc/main/runtime/workspaces/workspace-activation.tssrc/renderer/src/components/settings/WorkerRoleProfileEditor.fixture.tsxsrc/renderer/src/components/settings/WorkerRoleProfileEditor.test.tsxsrc/renderer/src/components/settings/WorkerRoleProfileEditor.tsxsrc/renderer/src/components/settings/WorkerRoleSettings.tsxsrc/renderer/src/components/settings/use-worker-role-model-catalog.test.tsxsrc/renderer/src/components/settings/use-worker-role-model-catalog.tssrc/renderer/src/i18n/locales/en.jsonsrc/renderer/src/runtime/host-model-catalog-snapshots.test.tssrc/renderer/src/runtime/host-model-catalog-snapshots.tssrc/shared/agent-launch-model-preferences.tssrc/shared/default-global-settings.tssrc/shared/global-settings-base.tssrc/shared/protocol-version.tssrc/shared/rpc-contract/agent-session-params.ts
Files skipped from review as they are similar to previous changes: 1-
- src/renderer/src/i18n/locales/en.json
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.
-
72c8881 to
32b6b62
Compare
…rified launch options
|
Updated this PR to Kept upstream shared startWorker and implicit Run receipts; roles resolve before side effects. Preserved worker auto-release setting and current native-chat preference API, regenerated bundled guides and RPC params. Validation: 69 initial and 77 follow-up targeted tests; node/CLI/renderer typechecks; targeted lint; generated guide/catalog verification; delta whitespace. Full combined packaging is tracked separately; this update does not claim installation or device acceptance. Latest follow-up ( |
Preserve the agent-server route guard before role validation. Use the current catalog owner in the profile editor and its mock.
Adapt worker launch preflight to the mandatory orchestration access factory and include its coverage in the access outcome matrix.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…hod module The remote launch preflight method took worker-start-method.ts to 314 lines on current main, over the 300-line limit. It moves unchanged into worker-launch-preflight-method.ts and is registered right after the worker-start methods, so the method set and its order are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ELI5
Save reusable worker roles with explicit agent, model, effort and Fast choices, then launch them through the existing verified host path.
What Changed
Store role profiles in existing settings and apply their launch options through existing worker admission and model-catalog owners. Preserve account/host invalidation and older-host listing capability boundaries. Adopt upstream removal of an unrelated catalog test while retaining the three role-specific listing and stale-reply regressions.
Why
Repeated worker configurations should be reusable without silently choosing an unsupported model or inheriting another host or account snapshot. This does not introduce automatic quota balancing.
Linked Issue
Fixes #39517, the first piece of #9712 (reusable team presets).
Visual Proof
Earlier artifacts below retain their original source/capture identities. This source refresh does not claim new browser or physical-device acceptance.
Earlier captures below retain their original source and capture context; this update does not claim a fresh rendered run.
The following retains the earlier capture context and artifacts. This base refresh does not claim new rendered or physical-device acceptance.
Before: frozen upstream
d58849a7d8d68929bd0e686571678d85e70740af. After: standalone5e6d518fe6f809263d945ecf05af2eb772518e90. Matched component pairs use identical synthetic data, dark theme and 1280×900 viewport.Before: roles before desktop
After: roles after desktop
After: roles after model form
Actual Orchestration pane/profile editor with synthetic catalogs and controlled settings. Provider/model/effort/Fast changes and custom roles passed; no worker launch or live account entitlement is claimed. All final component runs had zero page errors and hidden, unfocused windows; captures ran on macOS through approved outside-sandbox execution. No private user screenshot is published and no image is committed to this PR. Full rendered evidence: gentslava#1.
Testing
Current upstream refresh
Head
0a5b044fbfc446e05fe57e0e87f5d8016498b991includes an ordinary forward merge of main255b5c22c17ec91d1156db4e90049b754886d47e.Resolve current CLI module moves while retaining worker-role launch options. Settings copy uses the reactive translation hook, and save handling remains compatible with React Compiler. The existing compiler baseline only shrinks by the improved NativeChatStructuredSession row.
Desktop/runtime/CLI/web types and 78 tests in eight focused suites pass on the merged feature before the final callback cleanup. The final two-file cleanup passes all 37 follow-up checks against dbe6d12, including related units, types, compiler compatibility, lint, formatting and localization. The earlier PR-wide related-unit selection exceeded its local three-minute limit; this scoped follow-up is not claimed as a completed full PR-wide suite.
Existing visual proof retains its capture revisions. No new rendered, hosted-CI, package or physical-device acceptance is claimed by this source refresh.
Current head:
9be993481c1eb123c873e8aaafaa8eff43a0be74, with an ordinary forward merge of upstream77ab05bfb107036756dc9cdad3ca56f467dc7181. The extracted launch owner follows the new OpenCode module path.Desktop/runtime typechecks, changed-source lint and formatting, the E2E type ratchet, and localization catalog/extraction checks pass. The 8 focused suites pass 78 tests.
Existing English screenshots retain their original capture source and dimensions. These local checks do not establish new installed Windows/Linux, physical-device, SSH or live-provider acceptance.
Risk
Level: Medium
Unsupported or stale role options could affect a worker launch. Existing host validation remains authoritative; revert this PR to remove role selection while preserving ordinary worker launches.
AI Disclosure
Implemented and checked with OpenAI Codex assistance. The contributor owns the change and its validation.
Review
Reviewed current source and paginated formal/inline/top-level feedback. The current upstream owner moves are preserved; no quality limit or assertion is relaxed. Latest-head external approval is not claimed.
Agent skill upstream boundary
Notes
Local, remote and mixed-version host boundaries, mobile clients and folder workspaces retain their existing ownership rules. No provider prompts or GUI launches were used in this refresh.
Checklist