Repository navigation
fix(orchestration): allow model selection for OMP workers - #24796
Conversation
Reuse the existing OMP model launch catalog and worker receipt. Effort stays unsupported. Reported in issue 23388 by hieuphung97.
|
Warning Review limit reachedYou'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. View limit detailsLimit details: You’ve used all 10 included reviews currently available. Review configuration: ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (3)
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.
✅ No new issues found.
Reviewed changes — reviewed the complete 3-file diff at 01fc87888f.
- OMP worker model opt-in —
OMP_SESSION_OPTION_CATALOGgainssupportsWorkerLaunchPreferences: true, the single gateresolveWorkerLaunchPreferencesreads, soworker-start --agent omp --model <id>now validates instead of refusing. - Existing launch path reused — the catalog's pre-existing
modelApply.launchArgsemits--model <selector>throughresolveAgentSessionOptionLaunch, and the requested/effective receipt records it. No new launcher, store, RPC field, or stream opcode. - CLI help — the
worker-startnote now states OMP accepts--modelonly 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).
deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏
|
Final merge review at 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. |

ELI5
An OMP worker can now start with the model chosen for that dispatch. Omitting
--modelcontinues 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-miniin both requested and effective selections.Installed OMP 18.1.18 also reported provider
openai-codex, modelgpt-5.4-mini, and the matching--modelargument at session start. The captured request reachedinput_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 as01fc87888f1; neither window was visible or focused.Testing
Before product edits at
0f167ac65974, direct imports of the production worker/session resolvers produced one failing model-acceptance case and two passing controls: session--modelarguments/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_auditfound no actionable findings at01fc87888f1a1cc059a8827e8972fd0cd1dfea17, tree05e7c6f57888a38197ffecca29ac0424bc567a6e. 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
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