Feature request: add a dedicated draft stash shortcut in the TUI

Resolved 💬 3 comments Opened Apr 15, 2026 by vltansky Closed Apr 15, 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?

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+S to stash the current draft into a dedicated slot and clear the composer
  • Press Ctrl+S again 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.

View original on GitHub ↗

3 Comments

github-actions[bot] contributor · 4 months ago

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

  • #17203

Powered by Codex Action

vltansky · 4 months ago

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:

  • a fast way to temporarily park an in-progress draft without polluting normal history
  • a visible indicator that a draft is currently stashed

That combination makes the feature feel safe and predictable in day-to-day terminal use.

etraut-openai contributor · 4 months ago

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.