codex - ✅(Solved) Fix Rewind (double escape) should not be shown if there is no user's message. [1 pull requests, 1 comments, 1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#19508Fetched 2026-04-26 05:16:10
View on GitHub
Comments
1
Participants
1
Timeline
8
Reactions
0
Author
Participants
Timeline (top)
labeled ×4unlabeled ×2commented ×1cross-referenced ×1

Fix Action

Fixed

PR fix notes

PR #19510: Hide rewind preview when no user message exists

Description (problem / solution / changelog)

Why

Fixes #19508.

In a fresh TUI session, pressing Esc twice entered the rewind transcript overlay even though there was no user message to rewind to. That produced an empty header-only transcript view and exposed a rewind flow that could not select a valid target.

What changed

The backtrack flow now checks whether a user-message rewind target exists before opening the transcript preview. If no target exists, Codex stays in the main TUI and shows No previous message to edit. instead of opening an empty overlay.

The same guard applies when starting rewind preview from the transcript overlay, and the first Esc no longer advertises the “edit previous message” hint when there is no previous message available.

Snapshot coverage was added for the unavailable rewind info message, along with a small target-detection test.

Changed files

  • codex-rs/tui/src/app_backtrack.rs (modified, +76/-2)
  • codex-rs/tui/src/snapshots/codex_tui__app_backtrack__tests__backtrack_unavailable_info_message_snapshot.snap (added, +5/-0)
RAW_BUFFERClick to expand / collapse

What version of Codex CLI is running?

v0.125.0

What subscription do you have?

Free

Which model were you using?

gpt-5.4-mini

What platform is your computer?

Darwin 25.4.0 arm64 arm

What terminal emulator and version are you using (if applicable)?

Ghostty

What issue are you seeing?

Tool UX Feedback: Rewind (double escape) should not be shown if there is no user's message.

Currently, when opening Codex CLI and not typing any message, double-pressing the Esc key triggers the Transcript Logs Viewer tool, but it includes no actual message, just a header info TUI box => so showing the transcript doesn't do anything. I think we should have a way to check and prevent the Transcript tool from showing up when there are no messages (both user messages and agent messages). And showing a TUI info message when this happens. Just a quality-of-life improvement suggestion.

Current (no message) <img width="754" height="910" alt="Image" src="https://github.com/user-attachments/assets/499f69cd-4b47-499d-a006-2bd371e3c7ba" />

Expect (as normal, has user's messages)

<img width="757" height="910" alt="Image" src="https://github.com/user-attachments/assets/30f9debe-128f-4283-b74a-c4846cd76ce1" />

What steps can reproduce the bug?

Uploaded thread: 019dc328-31eb-7752-863a-fa87af7be199

What is the expected behavior?

Expect: (as normal, has user's messages) => Transcript log is showing only when there are User's message only.

<img width="757" height="910" alt="Image" src="https://github.com/user-attachments/assets/30f9debe-128f-4283-b74a-c4846cd76ce1" />

Additional information

No response

extent analysis

TL;DR

Check for the presence of user messages before displaying the Transcript Logs Viewer tool to prevent it from showing up when there are no messages.

Guidance

  • Verify that the issue is specific to the gpt-5.4-mini model and Codex CLI version v0.125.0 to determine if it's a version-specific bug.
  • Check the code for a condition that checks for the existence of user messages before triggering the Transcript Logs Viewer tool.
  • Consider adding a conditional statement to prevent the tool from displaying when there are no user messages.
  • Review the expected behavior and compare it with the current implementation to identify the discrepancy.

Notes

The issue seems to be related to the UI/UX of the Codex CLI, and the provided information suggests that it's a quality-of-life improvement rather than a critical bug.

Recommendation

Apply a workaround by adding a conditional check for user messages before displaying the Transcript Logs Viewer tool, as this is a UI/UX issue that can be mitigated with a simple code change.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - ✅(Solved) Fix Rewind (double escape) should not be shown if there is no user's message. [1 pull requests, 1 comments, 1 participants]