Repository navigation
fix(chat): keep unconfirmed effort menus for agents other than Pi (fixes main OMP tests) - #36242
Conversation
#34592 made the effort picker hide any model whose effort menu is unconfirmed (effortsKnown: false), which Pi needs because its menus are exact. #36158 relies on OMP showing exactly such recorded menus for models that are not running, so the two merged into failing OMP tests on main. The hide now applies to Pi only; OMP, Claude and Codex offer unconfirmed menus as before.
|
No actionable comments were generated in the recent review.
|
ELI5
Two changes merged close together and disagreed about one rule. One says "if Orca isn't sure which thinking levels a model has, hide the menu". The other says "for OMP, show the levels we recorded even when that model isn't running yet". Main's tests have failed since both landed. This keeps the "hide" rule for Pi, where it was meant, and lets every other agent show the menu again.
What Changed
effortsKnown: false).NativeChatSessionOptionPickers,structured-agent-session-omp-menu-persistence,acp-structured-options, and mobileuse-mobile-structured-agent-options.discoveredModelandstructuredAgentSessionOptionCatalogtake an optional agent, passed from the session state and the launch picker.effortOptiondrops an unconfirmed menu only when the agent ispi.Why
#34592 (Pi) added the blanket check in
structured-agent-session-discovered-model.ts, and #36158 (OMP), merged afterwards, depends on the opposite behaviour. Both PRs' tests encode their own intent and both pass with this change. Reverting the check outright would break #34592's Pi test. Changing the OMP expectations would ship the regression, because the OMP picker really did lose its choices.Linked Issue
Main breakage from #34592 crossing #36158.
Visual Proof
N/A: this restores the behaviour the existing OMP picker tests already pin; there is no new UI.
Testing
On main 8aac9c1, ran each file on its own and reproduced all four failures. With this change, all four pass. The mobile test fails without the change and passes 34/34 with it.
Added
structured-agent-session-discovered-model.test.ts: Pi hides an unconfirmed menu, while OMP, Claude, Codex and no agent offer it.Ran
src/shared,src/main/{acp,pi,native-chat,claude,codex}and the renderer native-chat suites: 29316 passed, none failed. That includes fix(pi): the thinking menu before the first message matches the chat's #34592's Pi option-view tests.Ran
pnpm tc,typecheck:ci,check:code-quality:changed,oxlint, the anti-slop lint, the ast-grep gates andcheck:process-host-imports. All pass.I manually tested these changes locally
Automated tests added/updated, or explained why not below
Review
Agent skill upstream boundary
Notes
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)