TUI Ctrl+Z Undo Feature

Resolved 💬 2 comments Opened Feb 12, 2026 by Adityakk9031 Closed Feb 12, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

What variant of Codex are you using?

latest one

What feature would you like to see?

Feature Request: Add Ctrl/Cmd+Z to restore draft cleared by Ctrl+C in TUI
Component: TUI chat composer (
codex-rs/tui/src/bottom_pane/chat_composer.rs
)

Root Cause: Missing Feature
The root cause is straightforward: there is no code to handle Ctrl+Z. The feature simply doesn't exist yet.

###Current Implementation

File:
codex-rs/tui/src/bottom_pane/chat_composer.rs

Function: ChatComposer::handle_key_event_without_popup (lines 2348-2429)

The function handles various key events but does NOT have any case for Ctrl+Z:

Additional information

_No response_

View original on GitHub ↗

2 Comments

github-actions[bot] contributor · 6 months ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #11594

Powered by Codex Action

quanru · 4 months ago

+1 Undo support in the TUI input is essential.