Skip to content

fix(tui): add reasoning effort fallback shortcuts#25623

Merged
fcoury-oai merged 5 commits into
mainfrom
codex/25429-terminal-reasoning-fallbacks
Jun 3, 2026
Merged

fix(tui): add reasoning effort fallback shortcuts#25623
fcoury-oai merged 5 commits into
mainfrom
codex/25429-terminal-reasoning-fallbacks

Conversation

@fcoury-oai

Copy link
Copy Markdown
Contributor

Why

The default reasoning-effort shortcuts use Alt+, and Alt+., but macOS Terminal.app does not deliver those bindings unless the active profile has "Use Option as Meta key" enabled. This leaves the quick reasoning-effort controls unavailable with the default Terminal.app profile.

Closes #25429.

What Changed

  • Keep Alt+, and Alt+. as the existing reasoning-effort shortcuts.
  • Add Shift+Down and Shift+Up as fallback shortcuts for decreasing and increasing reasoning effort.
  • Extend the chatwidget behavior tests to exercise both shortcut families.
  • Update the keymap picker snapshots so the fallback bindings are visible in /keymap.

How to Test

  1. Start Codex in macOS Terminal.app with "Use Option as Meta key" disabled.
  2. With the composer active, press Shift+Up and confirm that reasoning effort increases.
  3. Press Shift+Down and confirm that reasoning effort decreases.
  4. Open /keymap and confirm that the reasoning-effort actions list the Shift-arrow fallbacks alongside the existing Alt bindings.
  5. In a terminal profile that sends Alt/Meta bindings, confirm that Alt+. and Alt+, still adjust reasoning effort.

Targeted tests:

  • just test -p codex-tui defaults_include_reassignable_main_surface_actions
  • just test -p codex-tui shortcuts_
  • just test -p codex-tui 'keymap_setup::tests::picker_'

@fcoury-oai fcoury-oai marked this pull request as ready for review June 1, 2026 14:55

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b4adc657e5

ℹ️ 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".

Comment thread codex-rs/tui/src/keymap.rs
Comment thread codex-rs/tui/src/keymap.rs
@fcoury-oai fcoury-oai force-pushed the codex/25429-terminal-reasoning-fallbacks branch from b4adc65 to fbc167b Compare June 1, 2026 14:59
@fcoury-oai

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 16662c4c73

ℹ️ 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".

Comment thread codex-rs/tui/src/keymap.rs Outdated
@fcoury-oai

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review: Didn't find any major issues. Keep them coming!

ℹ️ 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".

@etraut-openai etraut-openai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally and verified fix.

I like the new functionality, but I think the implementation is way more verbose than necessary and will create maintainability problems going forward.

I've taken a stab at putting it on a diet in this draft PR that builds upon this one. I created this by using my $simplify-code skill and really pushing on the agent to look for ways to simplify.

Comment thread codex-rs/tui/src/keymap.rs Outdated
@fcoury-oai

Copy link
Copy Markdown
Contributor Author

@codex review

@fcoury-oai fcoury-oai force-pushed the codex/25429-terminal-reasoning-fallbacks branch from a992197 to bc6f8fb Compare June 2, 2026 16:59

@etraut-openai etraut-openai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@fcoury-oai fcoury-oai merged commit 8285cd2 into main Jun 3, 2026
31 checks passed
@fcoury-oai fcoury-oai deleted the codex/25429-terminal-reasoning-fallbacks branch June 3, 2026 23:28
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 3, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

in Macos do not work keys: "OPT+," and "OPT+." (quick reasoning regulation keys).

2 participants