feat(tui): shortcuts to change reasoning level temporarily#18866
Merged
fcoury-oai merged 6 commits intomainfrom Apr 21, 2026
Merged
feat(tui): shortcuts to change reasoning level temporarily#18866fcoury-oai merged 6 commits intomainfrom
fcoury-oai merged 6 commits intomainfrom
Conversation
090d214 to
803c989
Compare
803c989 to
3858b4c
Compare
Contributor
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 46c97c4840
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
canvrno-oai
approved these changes
Apr 21, 2026
Contributor
|
Tested and confirmed that alt keys adjust thinking level |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds main-chat shortcuts for changing reasoning effort one step at a time:
Alt+,lowers reasoning (has the<arrow on the key)Alt+.raises reasoning (similarly, has the>arrow)The shortcut updates the active session only. It does not persist the selected reasoning level as the default for future sessions. In Plan mode, it applies temporarily to Plan mode without opening the global-vs-Plan scope prompt.
Details
The shortcut uses the active model preset to decide which reasoning levels are valid. If the current session has no explicit reasoning effort, it starts from the model default. Each keypress moves to the next supported level in the requested direction.
The shortcut only runs from the main chat surface. If a popup or modal is open, input remains owned by that UI.
In Plan mode, the shortcut updates the in-memory Plan reasoning override directly. The model/reasoning picker still keeps the existing scope prompt for explicit picker changes.
Notes
Ctrl-plus and Ctrl-minus were considered, but terminals do not deliver those combinations consistently, so this PR uses Alt shortcuts instead.
If the current effort is unsupported by the selected model, the shortcut skips to the nearest supported level in the requested direction. If there is no valid step, it shows the existing boundary message.
Tests
cargo test -p codex-tui reasoning_shortcutscargo test -p codex-tui reasoning_effortcargo test -p codex-tui reasoning_shortcutcargo test -p codex-tui footer_snapshotscargo test -p codex-tuijust fix -p codex-tui./tools/argument-comment-lint/run.py -p codex-tui -- --tests