feat(tui): add prompt stashing with Ctrl-Q

Resolved 💬 6 comments Opened Jan 22, 2026 by ManojINaik Closed Feb 2, 2026
💡 Likely answer: A maintainer (etraut-openai, contributor) responded on this thread — see the highlighted reply below.

I would like to request/contribute a "prompt stashing" feature similar to the one recently added to Claude-Code.

Feature Description:
A way to temporarily stash the current input buffer and restore it later.

Proposed Workflow:

  • Key Binding: Ctrl+Q
  • Behavior:
  • If the input buffer has text: Pressing Ctrl+Q stashes the text (saves it to memory) and clears the buffer. A "Stashed" feedback message is shown.
  • If the input buffer is empty: Pressing Ctrl+Q restores the most recently stashed text. A "Restored" feedback message is shown.
  • Auto-Restore: After a successful submission (Enter), if there was stashed content, it is automatically restored to the buffer.

Benefit:
Allows users to quickly interrupt their current thought to run a quick command or check something else without losing their draft prompt.

I have implemented this in my fork and can open a PR.

View original on GitHub ↗

6 Comments

etraut-openai contributor · 5 months ago

This is already supported. You can use Ctrl+C to clear and stash. You can then use the up arrow to restore it.

0-sayed · 3 months ago
This is already supported. You can use Ctrl+C to clear and stash. You can then use the up arrow to restore it.

Can we have a stashing mechanism like Claude code?

etraut-openai contributor · 3 months ago

@0-sayed, this (Ctrl+C / up-arrow) is a stash mechanism. Is there a different behavior that you're looking for?

0-sayed · 3 months ago
@0-sayed, this (Ctrl+C / up-arrow) is a stash mechanism. Is there a different behavior that you're looking for?

Ctrl+C to stash the prompt. When I type and execute the next prompt, the stashed prompt is automatically restored. For now, though, the current mechanism gets the job done.

eladmoshe · 2 months ago

+1 for having the stashed prompt appear automatically on the next prompt

etraut-openai contributor · 2 months ago

Locking conversation since it's resolved. If you'd like to suggest a new or different behavior, please open a new feature request.