fix(app): restore v2 reasoning selector#30063
Conversation
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
|
The following comment was made by an LLM, it may be inaccurate: Related PR FoundPR #29050: fix(app): show reasoning selector in v2 prompt Why it's related: This is the predecessor PR that attempted the same fix for the missing V2 reasoning/model variant selector (issue #29051). PR #30063 is a reimplementation of this fix adapted to the current codebase after the prompt input was refactored. The current PR specifically addresses the fact that #29050 now conflicts with dev due to the Composer*Control structure changes. |
|
Automated PR Cleanup Thank you for contributing to opencode. Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions. This PR was closed because it matched the following cleanup criteria:
PRs created within the last month are not affected by this cleanup. If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate. Thanks again for taking the time to contribute. |
Issue for this PR
Fixes #29051.
This is the same missing V2 reasoning/model variant selector issue attempted in #29050, but that PR now conflicts with current dev after the prompt input was refactored. This applies the fix to the current Composer*Control structure.
Type of change
What does this PR do?
Restores the model variant/thinking-effort selector in the new V2 prompt input when the selected model exposes multiple variants. It reuses the existing variant list, default-label behavior, selection update logic, and model.variant.cycle keybind tooltip.
How did you verify your code works?
bun typecheckfrompackages/appafter applying a local-only Windows symlink checkout workaround forsrc/custom-elements.d.ts.devhas unrelatedpackages/opencodeevent-type errors outside this UI change.git diff --checkpassed before commit.Checklist