Skip to content

CLI: Approval prompt blocks chat scrolling and Ctrl+T transcript access #47865

Closed as duplicate

Description

@gysi

What version of the Codex App are you using (From “About Codex” dialog)?

codex-cli 0.156.1

What subscription do you have?

ChatGPT Business — Premium seat (5× usage)

What platform is your computer?

Ubuntu 22.04 LTS Linux 6.8.0-138-generic x86_64 x86_64

What issue are you seeing?

While an approval prompt is open in Codex CLI, I cannot interact with
the surrounding chat to review the context needed for my decision:

  • I cannot scroll through the conversation.
  • Ctrl+T does not open the transcript.
  • Clicking “+ Show details”, when displayed, has no visible effect.

Ctrl+A still opens the fullscreen approval details, so the interface
is not completely unresponsive. However, this does not provide the
chat navigation I need while reviewing the proposed action.

This prevents me from checking earlier explanations and instructions
without first approving or rejecting the pending action.

What steps can reproduce the bug?

Steps to reproduce

  1. Start an interactive Codex CLI session.
  2. Have a conversation long enough to require scrolling.
  3. Ask Codex to perform an edit or command that requires approval.
  4. Leave the approval prompt pending.
  5. Try scrolling through the chat.
  6. Press Ctrl+T to open the transcript.
  7. If “+ Show details” is visible, try clicking it.

What is the expected behavior?

While approval is pending, I should still be able to scroll through
the conversation, open the transcript, and expand available details
to make an informed decision.

Additional information

No response

Activity

  1. added
    app
    on Sep 24, 2026
  2. added
    bug
    CLI
    TUI
    sandbox
    on Sep 24, 2026
  3. sripavantejb commented on Sep 28, 2026

    @sripavantejb

    Root-cause analysis for this issue and its duplicates #48981 and #48635, traced against main @ c0d2694.

    Workaround today: while a patch approval is open, press Ctrl+A (or Ctrl+Shift+A). That opens the complete diff in a fullscreen pager (P A T C H). Close it and the approval prompt is still waiting.

    1. Ctrl+T is blocked by the modal gate

    In app/input.rs, open_transcript / find_transcript only run when app_keymap_shortcuts_available() is true:

    fn app_keymap_shortcuts_available(&self) -> bool {
        self.overlay.is_none() && self.chat_widget.no_modal_or_popup_active()
    }

    The ApprovalOverlay sits on the bottom pane's view_stack, so has_active_modal() is true and Ctrl+T gets forwarded to the approval view, which ignores it. This is deliberate for most modals (pickers, keymap debug view), but an approval is exactly the moment the user needs context from the transcript. Ctrl+T isn't bound in the Approval or List keymap contexts, so there's no conflict.

    2. The existing full-diff shortcut is never advertised for patches

    ApprovalOverlay::try_handle_shortcut handles approval.open_fullscreen (default Ctrl+A), and event_dispatch.rs renders the full DiffSummary for ApprovalRequest::ApplyPatch. But the only on-screen hint is header_view_all_hint, which list_selection_view.rs shows only when the header is clipped ([… N lines] ctrl+a view all). For patch approvals the header (apply_patch_header.rs) is just the description and destination paths. It's rarely clipped, so the hint never appears. approval_footer_hint doesn't mention it either. The user only sees the folded diff in the history cell above, with no visible way to expand it.

    3. Scrolling

    In owned/fullscreen transcript mode, wheel scrolling during a modal is already allowed (owned_transcript.rs) and covered by owned_transcript_input_tests.rs. The "can't scroll" part may be specific to inline mode or the terminal (reporters use macOS Terminal, PyCharm and Ubuntu). Knowing which mode each reporter runs in would help narrow it down.

    Suggested fix

    1. Discoverability (small): for ApprovalRequest::ApplyPatch, always append the open_fullscreen hint to approval_footer_hint, for example Press enter to confirm or esc to cancel · ctrl+a view full diff, rather than only showing it when the header is clipped.
    2. Allow the transcript over approvals: add a BottomPaneView hook (for example fn allows_transcript_overlay(&self) -> bool { false }, overridden to true by ApprovalOverlay), and let the open_transcript / find_transcript branch in handle_key_event accept it in addition to app_keymap_shortcuts_available(). The transcript overlay takes input while open, and the approval stays pending on the view stack, so it resumes when the pager closes, the same as the Ctrl+A path today.
  4. sripavantejb commented on Sep 28, 2026

    @sripavantejb

    Follow-up to my analysis above: I prototyped the suggested fix on my fork for reference, since external PRs aren't accepted. Feel free to use any of it: sripavantejb/codex@ca1db82 (compare).

    What it changes (3 source files, about 80 lines including tests):

    • app/input.rs: open_transcript (Ctrl+T) is allowed while an Approval-context view is active. In owned/fullscreen transcript mode it toggles the detailed view in place, and pressing it again returns. This has to be handled here because owned_transcript.rs ignores non-scroll keys while a modal is open. In terminal mode it opens the transcript pager. Either way the approval stays pending underneath. F3 (find) is left gated because search keys can't reach the owned transcript under a modal.
    • bottom_pane/approval_overlay.rs: patch approvals always show the open_fullscreen hint in the footer: Press enter to confirm or esc to cancel or ctrl+a to view the full diff.
    • Test: transcript_shortcut_stays_available_over_patch_approval covers both transcript modes. Three patch-prompt snapshots were updated to show the footer hint.

    Verification: just test -p codex-tui passes except for 4 custom_terminal::tests::cursor snapshot tests, which fail identically on unmodified main in my environment (macOS). cargo clippy -p codex-tui --tests is clean.

  5. sripavantejb commented on Sep 28, 2026

    @sripavantejb

    Update: the prototype branch now also covers the third point in the report, where clicking "+ Show details" has no effect while an approval is pending. New commit: sripavantejb/codex@b96e0c0 (same compare).

    Cause: It's the same modal gate as Ctrl+T, but on the mouse path. In app/owned_transcript.rs, every event except wheel scroll returns early while a modal is open, so the click never reaches TranscriptView::toggle_disclosure_at.

    Change: While an Approval-context view is active, an unmodified left click is passed to toggle_disclosure_at. If it lands on a disclosure control (+ Show details or + N lines), the activity expands or collapses. Any other click still goes to the modal as before. toggle_disclosure_at goes from pub(super) to pub(crate) so the app layer can call it.

    Test: transcript_disclosure_stays_clickable_over_patch_approval clicks the + 5 lines control of a folded command output while a patch approval is open. It asserts that the output expands and the approval stays pending. The test fails without the change. All 380 transcript, approval and disclosure tests pass, and cargo clippy -p codex-tui --tests is clean.

    Together with the earlier commit, the branch now covers everything in the report during an approval: wheel scrolling (already supported), Ctrl+T, "+ Show details", and a visible Ctrl+A full-diff hint.

  6. powellnorma commented on Sep 29, 2026

    @powellnorma

    Tested 0.159.0, its fixed in there: #48794 (comment)

  7. manuelpaulo commented on Oct 3, 2026

    @manuelpaulo

    Not fixed. Just updated and issue persists.

  8. Alek2077 commented on Oct 6, 2026

    @Alek2077

    I'm also seeing the “+ Show details” problem in Codex CLI 0.160.0, using Fullscreen TUI mode in the VS Code integrated terminal on Ubuntu 22.04 under WSL2.

    Clicking “+ Show details” normally expands the displayed changes. However, while an escalated file-edit approval is pending, clicking it has no effect. This prevents me from inspecting the proposed changes through that control before deciding whether to approve them.

    The control remains visible and appears actionable while approval is pending. It should allow inspecting the changes while keeping the approval request pending.

    This confirmation concerns “+ Show details”; I haven't tested the scrolling or Ctrl+T symptoms.

  9. keogh commented on Oct 8, 2026

    @keogh

    as of today in codex-cli v0.161.0 I'm still having the issue and it's frustrating

  10. etraut-openai commented on Nov 9, 2026

    @etraut-openai
    Contributor

    Closing this in favor of #48635 for the remaining Ctrl+T request. Two fixes in Codex CLI 0.167.0 let you review the conversation while leaving the approval pending:

    • To read earlier messages, move the pointer over the visible chat transcript and scroll with the mouse wheel. #48805
    • To inspect a folded diff, click + Show details while the patch approval is open. The follow-up reports on 0.160.0 and 0.161.0 predate this fix. #58281

    Ctrl+A opens the pending approval’s own details. Opening the full conversation transcript with Ctrl+T and then returning to the pending decision is the interaction still tracked in #48635.

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

    CLITUIappbugsandbox

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions