Feature request: add a dedicated draft stash shortcut in the TUI
What variant of Codex are you using?
CLI (Rust TUI)
What feature would you like to see?
Add a dedicated draft stash shortcut in the TUI so I can temporarily clear the composer and later restore the exact same draft without going through normal history navigation.
A concrete behavior that would work well:
- Press
Ctrl+Sto stash the current draft into a dedicated slot and clear the composer - Press
Ctrl+Sagain while the composer is empty to restore that exact draft - Keep this separate from normal prompt history and separate from
Ctrl+C - Show a visible composer-state indicator after stashing, for example:
› Stashed (auto-restores after submit)
The stashed draft should preserve the full composer state, not just plain text. In particular it would be useful to preserve:
- text
- placeholders / structured text elements
- local image attachments
- remote image URLs
- pending large-paste payloads
- mention bindings
Additional information
Today the closest workaround is Ctrl+C followed by history recall, but that is slower and mixes a temporary draft-management action with normal prompt history.
The indicator matters because otherwise it is easy to forget that a draft is parked somewhere. Something lightweight in the composer area like › Stashed (auto-restores after submit) would make the state obvious without getting in the way.
I searched for similar issues and found related slash-popup / draft-history issues, but not this specific stash feature request. This seems especially useful when a user needs to quickly park an in-progress prompt, run a command, or inspect something else in the session, then return to the exact draft later.
3 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Additional context: this request is inspired by the draft-stash workflow in the Claude Code CLI.
Not asking for exact feature parity, but that UX is a good precedent for two things:
That combination makes the feature feel safe and predictable in day-to-day terminal use.
This feature already exists in Codex. Press Ctrl+C to clear and stash the current prompt. The stashed prompt is added to the prompt history, so you can use the up arrow to restore it at a later time.