Skip to content

[CLI/TUI] Support screenshot paste and text copying in the asynchronous question editor #51306

Open

Description

@Alek2077

What variant of Codex are you using?

CLI/TUI in Fullscreen mode, version 0.160.0, running in the VS Code integrated terminal.

What feature would you like to see?

Support clipboard image paste and copying question text in the asynchronous question editor opened with Shift+Left while Codex continues working.

Two limitations make this interface difficult to use:

  1. It does not accept screenshots. I sometimes need to paste screenshots, especially when doing interactive testing of UI features with Codex. A screenshot lets me show the current UI state as part of my answer.
  2. It does not support copying question text. Codex might ask me to use an exact sentence somewhere else, but I cannot copy that sentence through this interface. Retyping it adds effort and can introduce errors.

Please support pasting screenshots into the answer field and selecting/copying question text, or provide a discoverable Copy action. These actions should preserve my answer draft and the pending question.

Additional information

This is the asynchronous question flow displayed while Codex is still running, with the blue Shift+Left hint to open the question. I confirmed the interface by having Codex invoke request_user_input_async during an active turn and identifying the resulting UI as the affected interface.

Suggested reproduction:

  1. Have Codex ask an asynchronous question while continuing its work. Include a sentence in the question that the user should reuse elsewhere.
  2. Open the question using Shift+Left.
  3. Try to copy the sentence from the question.
  4. Try to paste a clipboard screenshot into the answer field.

Environment checked while preparing this report: Codex CLI 0.160.0, VS Code integrated terminal, Ubuntu 22.04 under WSL2. Fullscreen mode is confirmed by the TUI mode selector displaying Fullscreen (current) with the description Scroll within Codex's fullscreen view.

This report concerns Fullscreen mode. The equivalent behavior and availability of this question interface in Scrollback mode have not been tested.

Related reports:

This report concerns the CLI asynchronous question editor. The 0.160.0 source explicitly distinguishes asynchronous question editing from the legacy request_user_input overlay.

Activity

  1. added
    enhancement
    CLI
    TUI
    on Oct 6, 2026
  2. morhaf-ko commented on Oct 7, 2026

    @morhaf-ko

    Draft comment on #51306

    Target: #51306

    I see a related question-text selection limitation on macOS in Codex CLI 0.159.3, both in the legacy question/approval flow reported by the operator and potentially in the asynchronous question editor. These are separate interfaces, so the legacy-dialog part may need a separate issue if this report is scoped to asynchronous questions.

    Environment: Darwin 27.0.0 arm64, Herdr client and server 0.9.3, WezTerm 20260929-043349-cab25161. Claude Code 2.1.292 allows ordinary mouse selection in the same Herdr environment according to the operator. The operator also reports the limitation under tmux; tmux is not installed on the investigated Mac, so I have not reproduced that case locally.

    Minimal reproduction:

    1. Run Codex in a local Herdr pane inside WezTerm.
    2. Have Codex show a question or approval containing a sentence to copy.
    3. Drag over that sentence with the left mouse button. For the asynchronous interface, open the pending question first.
    4. Compare with holding Shift while dragging, then copying with Cmd+C.

    Expected: selecting and copying question text preserves the pending question and answer draft.

    Actual: the operator cannot select the displayed question by ordinary dragging. Copy mode is required. The operator tested the pending asynchronous question in WezTerm and Herdr on 2026-10-07: Shift selection copied correctly, and normal scrolling and pane focus still worked. The legacy approval dialog and tmux cases remain reported rather than reproduced here.

    Evidence from the 0.159.3 source: fullscreen screen ownership requests mouse capture. In app/owned_transcript.rs, the modal branch returns before transcript mouse selection for non-scroll events. Herdr 0.9.3 forwards left-button events to a pane requesting mouse reporting rather than starting its own selection. A startup-only local PTY capture confirms Codex requests alternate-screen and mouse modes while Claude does not request those modes in its captured startup. This is not a captured question-dialog reproduction.

    Workaround documented by WezTerm: hold Shift while dragging, then Cmd+C. This selects the outer terminal screen and bypasses application mouse reporting. Zoom the pane first if other panes intersect the selected rows. Normal unmodified wheel and focus events remain available after releasing Shift. This should also bypass tmux in the same outer terminal, but that case has not been tested here.

    Sources:

    Please provide a discoverable copy action or selection support for question text in the affected editor, including the legacy question/approval interface if it shares the limitation.

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

    CLITUIenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions