Repository navigation
Conversation
OMP model launches accepted --model only, so orca agent launch, worktree create, and orchestration worker-start refused --effort for OMP. Add an OMP effort option that launches as --thinking <level> (minimal..max), strips a saved --thinking default when set, and allow --thinking as the effort in automation extra args. The CLI refuses OMP --effort against a host without agent.launch.omp-effort.v1, which would otherwise drop the level silently. Refs STA-9412
📝 Walkthrough
Priority: ⬇️ Low Severity of issue fixed: Low Merge Risk: 🔵 Low · up to
|
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
d879d166-effc-418f-82d2-044163a9a049
📒 Files selected for processing: 9
src/cli/agent-launch-request.tssrc/cli/index-agent-launch.test.tssrc/cli/specs/orchestration-worker-specs.tssrc/main/runtime/rpc/methods/orchestration/worker/worker-launch-preferences.test.tssrc/shared/agent-launch-runtime-capability.tssrc/shared/agent-session-option-catalog-omp.test.tssrc/shared/agent-session-option-catalog-omp.tssrc/shared/automation-extra-agent-args.test.tssrc/shared/automation-extra-agent-args.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review.
| 'When reusing --terminal, pass --worktree for that terminal; current means the coordinator worktree.', | ||
| '--agent takes an Orca agent id enabled on the worker server, such as claude, codex, cursor, antigravity, muse, zcode, opencode, or opencode2.', | ||
| '--model supports Claude, Codex, Cursor, Antigravity, and Muse opaque provider model ids; --effort requires --model. OMP accepts --model only; --effort is unsupported. Neither can combine with --terminal. OpenCode model selection requires an existing worktree, a verified execution-host CLI, and an available model; effort is unsupported. Other agents, including zcode, launch with the model from their own config.', | ||
| '--model supports Claude, Codex, Cursor, Antigravity, and Muse opaque provider model ids; --effort requires --model. OMP --effort sets its --thinking level (minimal, low, medium, high, xhigh, max). Neither can combine with --terminal. OpenCode model selection requires an existing worktree, a verified execution-host CLI, and an available model; effort is unsupported. Other agents, including zcode, launch with the model from their own config.', |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Add OMP to the --model support list.
This note says OMP accepts --effort and that --effort requires --model. The preceding list omits OMP, so the note does not tell users that they can supply the required model. Add OMP to the list. (raw.githubusercontent.com)
ELI5
OMP (oh-my-pi) users can now ask Orca to start OMP thinking harder or lighter with
--effort, the same flag that already works for Claude, Codex, Grok and others. Orca passes it to OMP as--thinking <level>.What Changed
Before:
orca agent launch --agent omp --model X --effort high(andorca worktree create --agent omp --effort,orca orchestration worker-start --agent omp --effort) failed with "does not support effort". Users worked around it by typing a raworca terminal create --command "omp --thinking high".After: those commands start OMP with
--model X --thinking high. Accepted levels are OMP's own:minimal,low,medium,high,xhigh,max(offandautoare modes, not levels, and are refused). If the user's saved OMP arguments already contain--thinking, Orca removes that one so the flag is not passed twice. Automations' extra arguments for OMP now accept--thinking <level>as the effort, replacing a saved default the same way.Mechanism: OMP's option catalog gains one effort option that launches as
--thinking <level>. OMP models are discovered at runtime, so the option sits in the catalog's "any model" slot, which the launch and the--effortcheck already read. Desktop and phone pickers show nothing new: they only show options attached to listed models, and OMP's listed models carry none. There is no mid-session switch, because OMP has no slash command that sets a thinking level.Older hosts: an older Orca host has no OMP effort option and would quietly drop the level. The host now advertises
agent.launch.omp-effort.v1. The CLI refuses OMP--effortagainst a host without it ("Update Orca on the execution host, or omit --effort") instead of launching without it.worker-startwas already safe because the host does the check, so an older host refuses. Automation extra arguments are also checked on the host, so an older host rejects--thinking.Why
This reuses the path every other agent's effort already takes, so there is no OMP-specific launch code. Mapping to OMP's real
--thinkingflag (checked againstomp --helpand OMP 17.2.9 source) is better than asking users to put raw flags in a terminal command. OMP itself lowers a level a model doesn't support to the nearest one below it, so a per-model ceiling isn't needed for a safe launch. Adding the levels to the desktop picker was left out because it would be a UI change.Linked Issue
STA-9412 (Linear). Partial fix: this gives OMP users a supported way to launch with a thinking level. It does not change the rest of that ticket.
Visual Proof
N/A. This changes CLI and launch behavior with no UI change. Desktop and phone pickers read the same catalog but show nothing new for OMP.
Testing
New tests fail on base and pass here (8 cases): catalog launch args (
--model X --thinking high), accepted and refused levels, a saved--thinking=lowdefault replaced by the requested level in the final command line, worker-start passing OMP effort through, automation extras merge and duplicate-effort refusal, and the CLI sendingefforttoagent.launchand refusing it on a host without the capability.pnpm tcpasses.pnpm run check:code-quality:changedpasses with 0 new findings.3736 related tests pass (CLI, option catalogs, automations, orchestration, agent-launch). 33
src/cli/runtime/launch*andorchestration-structured-worker-sessionfailures happen onorigin/maintoo in this environment.I manually tested these changes locally (not run in the real app; covered by command-builder and CLI tests)
Automated tests added/updated, or explained why not below
Review
Agent skill upstream boundary
Notes
The CLI never builds a path, so Windows and Linux are unaffected. Over SSH, the host that builds the command uses the same catalog. Older and newer client/host versions are covered under "Older hosts" above. Mobile shows no new picker.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)