← Claude Code Hub
Aug 31, 2026 · 4 min read ✦ Tip #182

Ctrl+S in Claude Code: git stash for your half-written prompt

You are halfway through a request and need to ask something else first. One key parks it, and you don't even have to remember to bring it back.

Diagram: Ctrl+S parks your prompt draft in Claude Code and hands it back on the next submit

TL;DR Ctrl+S parks the prompt you are writing and clears the box. Send the next one and it comes back on its own with a Draft restored notice. It is git stash for the input box, with two differences: there is a single slot, and you never have to pop it.

You are twenty lines into a prompt, remember a small question, and need to ask it first. The normal move is to wipe what you have, ask, and rewrite it from memory.

Ctrl+S exists for that. It takes the whole draft away, leaves you an empty box, and hands it back afterwards. The shape is git stash: you put aside what you are holding, the desk goes clean, you do something else, you pick it back up.

Result:

> review the login and check that the refresh token▮     ← half-written

Ctrl+S

>                                                        ← clean box
> which file holds the auth middleware?

Enter

  Draft restored                                         ← 5-second notice
> review the login and check that the refresh token▮     ← already back

How it works

It is a one-slot toggle, and what it does depends on whether the box has text in it.

1. With text, it parks. Ctrl+S stores the draft and clears the box. Not just the characters: it carries the cursor position and the pasted content too, so images you pasted come back with it.

2. With an empty box, it returns. Press Ctrl+S again and the draft is exactly where you left it, cursor included.

3. Or you never return it yourself. This is the part the docs leave out. Submit a normal prompt with something parked and the draft reappears the moment you hit Enter, while Claude is still answering, with a Draft restored notice that lasts five seconds. Under the hood it takes the place of the usual "clear the box" step: instead of going empty, the box fills with what you parked.

4. Slash commands take a different route. Submitting something that starts with / does not trigger the return right then. The command does it when it finishes, and only if the box is still empty. If you started typing something else in the meantime, the draft stays parked and you bring it back yourself with Ctrl+S.

Where the analogy breaks

git stash and this one share a shape, not a rulebook. Both differences matter:

git stash Ctrl+S
How much it holds A stack, as many entries as you like One slot
Stashing with something already stashed Pushes a new entry Overwrites it, no warning
Getting it back By hand, with git stash pop Comes back on its own on your next prompt
How long it lasts Until you pop it, across restarts As long as the session

The first one is the one that bites. Park a draft, write another, press Ctrl+S again and the first is gone. There is no stash list and no way back to it.

And there is a hint that nudges you at the right moment

The ctrl + s to stash prompt line in the prompt help (the one ? opens) is always there, listed alongside every other shortcut. But another one is not: a one-time Tip: ctrl+s to stash that fires when Claude Code sees your draft shrink sharply, from twenty characters or more down to five or fewer without going all the way to empty. Which is to say, right after you wipe something long. It stops appearing once you use the shortcut, because that gets recorded as hasUsedStash in your settings.json.

Details that save you a scare

Official docs: Interactive mode

Found this useful? See more of wmedia.es in your Google results.

Add wmedia.es as a preferred source on Google
FREE GUIDE

From the terminal to Desktop, as a guide.

Moving from the terminal to Claude Code Desktop is easy to start and easy to leave half done. 8 pages to keep beside you: day one, the map of the window, the shortcuts and your first cloud routine.

  • 1. Day one import your sessions
  • 2. The window map and shortcuts
  • 3. Conversations which to open and two prompts
  • 4. Panels which to use for what
  • 5. Routines your first in the cloud
Are you a professional Web developer?

You'll receive the guide by email · Unsubscribe anytime

of 8
#

Wmedia · 8 pages
FREE GUIDE · 8 pages · 2 prompts

From the terminal to Desktop, as a guide.

Moving from the terminal to Claude Code Desktop is easy to start and easy to leave half done. 8 pages to keep beside you: day one, the map of the window, the shortcuts and your first cloud routine.

Are you a professional Web developer? · Unsubscribe anytime

Moving from the terminal to Claude Code Desktop?