Skip to content

fix(orchestration): allow model selection for OMP workers - #24796

Merged
nwparker merged 1 commit into
mainfrom
nwparker/sweep-23388-omp-worker-model
Oct 3, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/sweep-23388-omp-worker-model

Conversation

@nwparker

@nwparker nwparker commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​40 $\color{#cf222e}{\Huge{\mathbf{−}}}$​2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​38
Prod 2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​2 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1

ELI5

An OMP worker can now start with the model chosen for that dispatch. Omitting --model continues to use OMP's configuration.

What Changed

Before, worker-start --agent omp --model <id> stopped with “Agent omp does not support launch-time model selection,” even though ordinary OMP sessions already launch with that flag. After, worker validation accepts the selection, the existing launch path passes --model, and the existing requested/effective receipt records it.

The OMP catalog opts into worker launch preferences. Tests cover the model argument and receipt, omitted-model defaults, and continued effort rejection. CLI help explicitly says OMP accepts a model only.

Why

The model argument and receipt already exist. Enabling that catalog capability keeps one source of launch behavior and avoids an OMP-specific launcher or model store.

Linked Issue

Addresses the model-selection part of #23388, reported by @hieuphung97. The issue remains open for its separate effort/thinking request. No code from the reporter's personal-fork references was reused, and there is no matching upstream contributor PR to take over.

Visual Proof

Hidden Orca instances on macOS used disposable homes/profiles and the same model-only local worker-start request. Before: the production runtime refused the model. After: its launch receipt records openai-codex/gpt-5.4-mini in both requested and effective selections.

Before: model-only OMP worker request is refused

After: model-only OMP worker request has matching launch selections

Installed OMP 18.1.18 also reported provider openai-codex, model gpt-5.4-mini, and the matching --model argument at session start. The captured request reached input_accepted; the capture closed after the launch receipt, so it does not prove a completed provider response. The screenshots show the working-tree patch subsequently committed unchanged as 01fc87888f1; neither window was visible or focused.

Testing

  • I manually tested these changes locally: hidden macOS runtime request and installed OMP model metadata, with private copied credential/config snapshots and no personal configuration changes.
  • Automated tests added/updated.

Before product edits at 0f167ac65974, direct imports of the production worker/session resolvers produced one failing model-acceptance case and two passing controls: session --model arguments/metadata, and omitted worker-model defaults. The unchanged probe passes all three cases after the fix.

ORCA_BACKGROUND_LAUNCH=1 node node_modules/vitest/vitest.mjs run --config config/vitest.config.ts src/main/runtime/rpc/methods/orchestration/worker/worker-launch-preferences.test.ts src/shared/tui-agent-startup-session-options.test.ts src/cli/specs/orchestration.test.ts --maxWorkers=1 — 50 tests pass. The OMP and general session-option catalog suites add 25 passing tests.

Node, CLI, and web typechecks pass. Direct changed-file oxlint, the changed-code-quality gate, formatting, and before/after Electron builds pass. All tests/apps used ORCA_BACKGROUND_LAUNCH=1.

AI Disclosure

Review

Independent read-only reviewer /root/eligibility_audit found no actionable findings at 01fc87888f1a1cc059a8827e8972fd0cd1dfea17, tree 05e7c6f57888a38197ffecca29ac0424bc567a6e. Its durable report verifies the complete three-file patch, content blobs and SHA256 fingerprint. The reviewer independently passed 31 worker tests and direct production probes for defaults, effort rejection, terminal/capability fences, model precedence, command overrides, and four platform command-construction inputs. It did not claim provider-response completion or physical multi-platform execution.

Agent skill upstream boundary

  • Not applicable; no upstream skill source or artifacts copied.

Notes

Merge risk is limited to OMP's existing launch path. No new option storage, RPC field, stream opcode, status writer, polling, or readiness/title rule was added. Existing terminal-reuse rejection and runtime capability checks remain in place; the argument selection uses the same authority for folder and git workspaces.

Explicit tradeoffs: --effort/thinking remains unsupported, and model availability/credentials remain OMP's responsibility. An invalid selector can now reach OMP and fail there. Physical Linux/Windows/WSL, SSH/paired launches, newer OMP versions, native-focus behavior, and completed provider turns were not tested. No remote-target repair is included.

Checklist

  • This PR is small and focused.
  • User-facing before/after, mechanism, and alternatives explained.
  • Before/after proof attached; no media committed.
  • Self-reviewed for correctness, security, and performance.
  • Cross-platform, SSH/remote, folder, and compatibility impact considered.
  • Full repository lint/test/build lanes; focused local gates pass and current-head required CI will be verified before completion.

Reuse the existing OMP model launch catalog and worker receipt. Effort stays unsupported. Reported in issue 23388 by hieuphung97.
@coderabbitai

coderabbitai Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 15 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 10 included reviews currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: 56d361a9-133f-4486-a789-20c36bfc7c6a

📥 Commits

Reviewing files that changed from the base of the PR and between ddcc279 and 01fc878.

📒 Files selected for processing (3)
  • src/cli/specs/orchestration-worker-specs.ts
  • src/main/runtime/rpc/methods/orchestration/worker/worker-launch-preferences.test.ts
  • src/shared/agent-session-option-catalog-omp.ts
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.


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.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes — reviewed the complete 3-file diff at 01fc87888f.

  • OMP worker model opt-in — OMP_SESSION_OPTION_CATALOG gains supportsWorkerLaunchPreferences: true, the single gate resolveWorkerLaunchPreferences reads, so worker-start --agent omp --model <id> now validates instead of refusing.
  • Existing launch path reused — the catalog's pre-existing modelApply.launchArgs emits --model <selector> through resolveAgentSessionOptionLaunch, and the requested/effective receipt records it. No new launcher, store, RPC field, or stream opcode.
  • CLI help — the worker-start note now states OMP accepts --model only and rejects --effort.
  • Tests — adds OMP model/receipt, omitted-model default, and effort-rejection cases, and parameterizes the effort-without-model control over codex/omp.

The model/receipt assertion and the OMP effort-rejection assertion both fail against the old catalog (the guard threw "does not support launch-time model selection"), so the coverage is real. Effort remains unsupported for OMP by design — consistent with the catalog having no effort option — and an invalid selector now reaching OMP is a documented tradeoff shared with the other opaque-model catalogs (Muse, Antigravity). Local run of worker-launch-preferences.test.ts passes (31 tests).

Pullfrog  | View workflow run | Using deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏

@nwparker

nwparker commented Oct 3, 2026

Copy link
Copy Markdown
Contributor Author

Final merge review at 01fc87888f1a1cc059a8827e8972fd0cd1dfea17: the complete changed source matches the independently reviewed commit, and the documented required repository checks pass: detect changes and check repository guards, verify.

Pass an explicitly requested model through the existing OMP worker launch catalog.

Merge risk and retained limits: Low: requested model passed to OMP; unavailable models can fail there; effort/thinking unsupported.

Contributor authors and existing co-author credit will be preserved explicitly in the squash commit.

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.

1 participant