You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal displaybugSomething isn't workingwindows-osIssues related to Codex on Windows systems
double-pressing Esc in the main chat view (with an empty composer) triggers the backtrack preview
subsequent Esc events recurse through open_backtrack_preview → step_backtrack_and_highlight without advancing selection when there are no user messages to highlight
the loop never terminates, and the process crashes with hread 'main' has overflowed its stack
Reproduction Steps
Start the TUI in a project with an existing conversation history (e.g., run codex resume --dangerously-bypass-approvals-and-sandbox)
Ensure the composer is empty, then press Esc twice in quick succession
Observe the stack overflow crash (STATUS_STACK_OVERFLOW on Windows)
Expected Behavior
the transcript overlay should highlight the latest user message or stop at the beginning of history without crashing
Actual Behavior
Esc triggers an infinite loop in backtrack preview, causing a stack overflow
Proposed fix in PR #4975: ignore repeat Esc events so backtrack only steps once per keypress and close the overlay early when there are no user messages left. That prevents the Esc loop from recursing until the stack blows up.
TUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal displaybugSomething isn't workingwindows-osIssues related to Codex on Windows systems
Activity
alexx-ftw commentedon Oct 8, 2025
Proposed fix in PR #4975: ignore repeat Esc events so backtrack only steps once per keypress and close the overlay early when there are no user messages left. That prevents the Esc loop from recursing until the stack blows up.
etraut-openai commentedon Jan 10, 2026
Closing old issue.