Skip to content

Shortcut description to paste image #11708

Closed

Description

@revever

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

Activity

  1. added
    bug
    CLI
    TUI
    on Feb 13, 2026
  2. removed
    CLI
    on Feb 13, 2026
  3. ShresthSamyak commented on Mar 6, 2026

    @ShresthSamyak

    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.

  4. middleDuckAi commented on Mar 24, 2026

    @middleDuckAi

    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)"

  5. etraut-openai commented on Aug 5, 2026

    @etraut-openai
    Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    TUIbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions