Skip to content

Conversation

@0xRaduan
Copy link
Contributor

@0xRaduan 0xRaduan commented Oct 28, 2025

Shows single-key shortcuts (y, a, n) next to approval options to make them more discoverable. Previously these shortcuts worked but were hidden, making the feature hard to discover.

Changes:

  • "Yes, proceed" now shows "y" shortcut
  • "Yes, and don't ask again" now shows "a" shortcut
  • "No, and tell Codex..." continues to show "esc" shortcut

This improves UX by surfacing the quick keyboard shortcuts that were already functional but undiscoverable in the UI.


Update:

added parentheses for better visual clarity
CleanShot 2025-11-05 at 11 47 07@2x

@github-actions
Copy link

github-actions bot commented Oct 28, 2025

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@0xRaduan
Copy link
Contributor Author

I have read the CLA Document and I hereby sign the CLA

@0xRaduan
Copy link
Contributor Author

oh, interesting. it's a claude commit - so it doesn't pass the CLA. @codex - can you push the same commit, but under your email?

@chatgpt-codex-connector
Copy link
Contributor

Note

To use Codex here, create an environment for this repo.

@0xRaduan
Copy link
Contributor Author

@codex - try one more time

@chatgpt-codex-connector
Copy link
Contributor

Note

To use Codex here, create an environment for this repo.

Shows single-key shortcuts (y, a, n) next to approval options to make
them more discoverable. Previously these shortcuts worked but were
hidden, making the feature hard to discover.

Changes:
- "Yes, proceed" now shows "y" shortcut
- "Yes, and don't ask again" now shows "a" shortcut
- "No, and tell Codex..." continues to show "esc" shortcut

This improves UX by surfacing the quick keyboard shortcuts that were
already functional but undiscoverable in the UI.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@claude claude bot force-pushed the claude/session-011CUZfNELWrGVKPvRLvCmGt branch from fddd1e0 to d471b75 Compare October 28, 2025 20:54
@0xRaduan
Copy link
Contributor Author

Awesome, it works now :D

@etraut-openai
Copy link
Collaborator

@codex review

@chatgpt-codex-connector
Copy link
Contributor

Codex Review: Didn't find any major issues. 👍

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

@0xRaduan
Copy link
Contributor Author

0xRaduan commented Nov 4, 2025

@etraut-openai - fixed the cargo-fmt

etraut-openai and others added 4 commits November 4, 2025 11:20
Update test snapshots for approval modal to include the now-visible
keyboard shortcuts (y, a) that were previously hidden. The shortcuts
were always functional but are now displayed inline to improve
discoverability.

Updated snapshots:
- approval_modal_exec: shows 'y' and 'a' shortcuts
- approval_modal_exec_no_reason: shows 'y' and 'a' shortcuts
- approval_modal_patch: shows 'y' shortcut
- status_widget_and_approval_modal: shows 'y' and 'a' shortcuts

Fixes 5 failing tests:
- approval_modal_exec_snapshot
- approval_modal_exec_without_reason_snapshot
- approval_modal_patch_snapshot
- exec_approval_emits_proposed_command_and_decision_history
- status_widget_and_approval_modal_snapshot
Wrap keyboard shortcuts in parentheses to make them more visually
distinct from option text and clearly indicate they are shortcut keys.

Changes:
- Modified selection_popup_common.rs to render shortcuts as " (key)"
  instead of " key"
- Updated all approval modal snapshots to reflect the new format

UI change:
Before: "1. Yes, proceed y"
After:  "1. Yes, proceed (y)"

This follows common UI patterns and improves visual clarity,
making shortcuts more obvious and easier to scan.
@0xRaduan
Copy link
Contributor Author

0xRaduan commented Nov 5, 2025

@etraut-openai – thanks for your reviews!

updated the code(fixed tests snapshots) + also added parentheses for better visual clarity on what's the text vs what's the shortcut

CleanShot 2025-11-05 at 11 47 07@2x

0xRaduan and others added 2 commits November 5, 2025 11:28
Update the snapshot for exec_approval_emits_proposed_command_and_decision_history
test that was missed in the previous commit. This snapshot also needs to show
keyboard shortcuts in parentheses.
@etraut-openai
Copy link
Collaborator

Thanks for the update. I see a couple of issues still.

  1. The first paren appears as bolded whereas the remainder does not. Here's what I'm seeing when I run it.
image
  1. The CI tests are failing because the insta snapshots have failed. We use a tool called insta to verify that the TUI text is as expected. It uses a snapshotting mechanism. To update the snapshots, you'll need to install insta (cargo install cargo-instal) and then run cargo test followed by cargo insta pending-snapshots and cargo insta accept. This should update the related snapshot, and you can commit that new shapshot file.

@etraut-openai etraut-openai added the needs-response Additional information is requested label Nov 5, 2025
@etraut-openai
Copy link
Collaborator

BTW, I asked our designer to review this change, and he gave it the thumbs up. He's going to look at adding this pattern to more places in the TUI.

- Changed selection styling to use Style::default() instead of additive styling to prevent dim modifier from keyboard hints being preserved
- Updated exec_approval_modal_exec snapshot to reflect consistent bold styling across entire selected line including shortcuts
- Fixed issue where "(y)" shortcut appeared non-bold while "Yes, proceed" was bold

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@0xRaduan
Copy link
Contributor Author

0xRaduan commented Nov 8, 2025

Hi @etraut-openai,

Thanks for the feedback! I've addressed both issues:

  1. Bolding inconsistency: Fixed the issue where only part of the selected option was bold. The entire selected line (including keyboard shortcuts in parentheses) now appears consistently bold and cyan.

  2. Snapshot updates: Re-ran the tests, reviewed the snapshot changes with cargo insta, and committed the updated snapshot file.

All changes are in commit f3d1424. The CI should now pass - feel free to re-run it.

@etraut-openai etraut-openai removed the needs-response Additional information is requested label Nov 8, 2025
@etraut-openai
Copy link
Collaborator

@codex review

@chatgpt-codex-connector
Copy link
Contributor

Codex Review: Didn't find any major issues. Can't wait for the next one!

ℹ️ 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 merged commit 5beb616 into openai:main Nov 8, 2025
25 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Nov 8, 2025
@etraut-openai
Copy link
Collaborator

Thanks again for the contribution! It's merged, and this will be included in the next release.

@openai openai unlocked this conversation Nov 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants