mirror of
https://github.com/openai/codex.git
synced 2026-11-25 23:30:49 +00:00
Show pending key chords in a shared floating shortcut guide (#60637)
## What changed - Replace footer chord hints with a floating guide that shows available completions after a 350 ms delay, including custom prefixes. - Share guide rendering across conversations, transcript overlays, the session picker, startup drafts, hook review, and daemon recovery. Preserve workspace-specific pane labels and filter startup drafts to supported actions. - Adapt the guide to short inline viewports, retain `Esc` cancellation, and redraw when pending chords clear. Consume clicks on the guide so they do not activate controls beneath it. ## Testing Extend tests and snapshots for delayed reveal, timeout, custom prefixes, compact and inline layouts, startup-safe completions, and picker redraws after chord completion or cancellation. GitOrigin-RevId: afa2fe3ae1b5fbea4cd871c17d35206e749c842c
This commit is contained in:
@@ -320,7 +320,7 @@ define_keymap_actions! {
|
||||
/// This is intentionally presentation-only: the returned string must never be
|
||||
/// parsed back into an action name, because underscores and casing are part of
|
||||
/// the stable config contract.
|
||||
pub(super) fn action_label(action: &str) -> String {
|
||||
pub(crate) fn action_label(action: &str) -> String {
|
||||
if action == "change_host" {
|
||||
return "Change Where to Run".to_string();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user