Claude Code sessions that survive a reboot
garage does not run your sessions. tmux does. Close the wall, close the terminal, or lose your SSH link, and the sessions keep going.
Close and come back
Section titled “Close and come back”- Press
qto quit the wall. Or just close the terminal window. - Your sessions and the daemon keep running.
- Run
claude-garagelater. Every session is there.
You can even delete garage and keep your sessions. Attach to one by hand:
tmux attach -t garage/<project>/<label>After a reboot
Section titled “After a reboot”A reboot ends tmux and all its sessions. garage remembers each session id and folder.
- Run
claude-garage. - Sessions that stopped show the
⟳glyph and a restore message in the tile. - Press
Enteron one to bring it back. PressRto bring back all stopped sessions of the project.
garage starts Claude with claude --resume. The tile shows the earlier conversation again. If a project folder is gone, that session stays ⟳ and the strip tells you why. Its record is kept, so you can try again after you fix the folder.
To forget a stopped session, press x x on it. On a running session, x x kills it and keeps no history. Press x X instead to close it and keep it in the rail as a grey row.
Update Claude Code without losing context
Section titled “Update Claude Code without losing context”A running session keeps the Claude Code version it started with. To move sessions to the latest claude:
| Key | Action |
|---|---|
r r |
Restart the focused session. It resumes its conversation. |
r a |
Restart all idle and done sessions in this project. |
r d |
Restart garage’s daemon. Sessions are not touched. |
r r on a busy session warns first. From a shell:
claude-garage restart # the daemon onlyclaude-garage restart --sessions # also idle and done sessionsclaude-garage restart --all # also busy sessionsBusy sessions are skipped unless you pass --all.
Draft recovery
Section titled “Draft recovery”garage reads the prompt box of each open tile once a second. If you typed something and did not send it, garage keeps a copy. Images you pasted into the prompt are kept too. This protects you from a crash or a power cut.
- After a restart, open the session that held the draft.
- If its prompt is empty and garage has a draft, the strip says: “unsent draft kept for NAME - press u to restore it”.
- Focus that session and press
u. garage types the text back, and then the images.
Good to know:
- The offer lasts 60 seconds. Only the focused session takes
u. - If you start typing while garage restores, the restore stops. It never overwrites your input.
- A draft is cleared once you send the prompt.
- Files live in
~/.garage/drafts. They are private to your user. garage removes files after 7 days.
Turn drafts off
Section titled “Turn drafts off”Set the variable for one run:
GARAGE_DRAFTS=0 claude-garageOr set it for good in ~/.garage/config.toml:
drafts = falseWith drafts off, garage keeps nothing and removes what an earlier run kept. See Configuration.