Shortcut description to paste image

Resolved 💬 3 comments Opened Feb 13, 2026 by revever Closed Aug 5, 2026
💡 Likely answer: A maintainer (etraut-openai, contributor) responded on this thread — see the highlighted reply below.

I see "Ctrl+v to paste image", but actually it is "Alt+v"

View original on GitHub ↗

3 Comments

ShresthSamyak · 5 months ago

Hi! I investigated this issue and found the location of the incorrect shortcut description.

The UI currently shows Ctrl+V, but the keybinding used in the code is Alt+V.

Proposed fix:

diff --git a/codex-rs/tui/src/bottom_pane/footer.rs b/codex-rs/tui/src/bottom_pane/footer.rs
- key_hint::ctrl(KeyCode::Char('v'))
+ key_hint::alt(KeyCode::Char('v'))

This updates the displayed shortcut so it correctly reflects the implemented keybinding.

Happy to open a PR if external contributions are allowed.

middleDuckAi · 5 months ago

I reviewed this on current main and checked the existing thread before changing any code.

Repro

  • The static tooltip copy still says Ctrl+V for image paste.
  • On current main, the rendered footer shortcut is already environment-sensitive instead of being a single hardcoded label.
  • That means the remaining user-facing mismatch is the tooltip text, not the footer binding logic suggested earlier in the thread.

Root Cause

  • The stale shortcut text lives in codex-rs/tui/tooltips.txt and codex-rs/tui_app_server/tooltips.txt.
  • The current footer implementation already varies the displayed key hint by environment, so hardcoding Ctrl+V in the tooltip drifts out of sync.
  • I kept the fix narrow by making the tooltip text generic instead of introducing another platform-specific shortcut branch.

Validation

  • cargo test -p codex-tui tooltips -- --nocapture
  • cargo test -p codex-tui-app-server tooltips -- --nocapture

Docs / Help Impact

  • Yes. This changes the in-product tooltip copy to Paste an image from your clipboard to attach it to your next message.

Risk

  • Low. This is a text-only change mirrored across both TUI surfaces, plus focused regression tests that make sure the tooltip pool no longer hardcodes Ctrl+V.

Maintainer Pickup

gh pr create --repo openai/codex --base main --head middleDuckAi:middleDuck/codex-11708-shortcut-description-to-paste-image --title "$(gh pr view 8 --repo middleDuckAi/codex --json title --jq .title)" --body "$(gh pr view 8 --repo middleDuckAi/codex --json body --jq .body)"

etraut-openai contributor · 23 days ago

Current TUI displays the correct platform-specific image-paste shortcut