Skip to content

Commit d471b75

Browse files
0xRaduanclaude
andcommitted
feat(tui): Display keyboard shortcuts inline for approval options
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]>
1 parent 4a42c4e commit d471b75

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

codex-rs/tui/src/bottom_pane/approval_overlay.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ impl ApprovalOverlay {
118118
.iter()
119119
.map(|opt| SelectionItem {
120120
name: opt.label.clone(),
121-
display_shortcut: opt.display_shortcut,
121+
display_shortcut: opt.display_shortcut
122+
.or_else(|| opt.additional_shortcuts.first().copied()),
122123
dismiss_on_select: false,
123124
..Default::default()
124125
})

0 commit comments

Comments
 (0)