Resume old sessions
Status Fixed / completed
Maintainer reply ✓ Yes — bcherny
Activity 14 comments · opened Mar 6, 2025 · closed Apr 30, 2025
💡 Likely answer: A maintainer (bcherny, collaborator)
responded on this thread — see the highlighted reply below.
Right now closing a terminal window with a long chat is a pretty serious commitment. If I want to work on the same (or similar) issue again I have to re-explain a bunch of stuff to Claude.
I'd love if Claude Code kept recent conversations and made it easy to resume them. A claude --resume opening the last convo would be a cool UX.
14 Comments
Yes please! Being able to save/resume/fork conversations would be delightful.
Absolutely! Please add this.
Coming here after accidently closing _once again_ the terminal in which Claude Code was running, losing all context...
just for using CC I installed
gnome-terminalwhich has a confirm dialog on close when there is an active process running, trust me you won't regret it...Have you tried the ideas in https://github.com/ChristopherA/Claude-Code-CLI-Toolkit ? I keep a separate context for every branch of my repo. Allows me to /exit and restart, or go do another feature for a while and return.
Ironically, Claude code just hallucinated me this command. Sadly it didn't work.
This is shipped! https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md#0293
Thanks. It would still be useful if we could write these /compact contexts to a file.
What is the difference between
--resumeand--continue. What is the todo list that this changelog refers to?Understood, we have a transcript export feature on our backlog. Resume is only available in interactive mode. It shows a picker of previous conversations. Continue continues the last conversation.
The Todo List is unrelated, but it helps Claude keep track of where it is in larger tasks. It will trigger automatically or you can explicitly ask claude to use its Todo Tool
As for the
--restorefeature - this is great!I do have a few more suggestions:
@talf I think you mean
--resume, not--restore.Heavy +1 on ability to set custom session names. The
--resumefeature is great, but finding out which session you want to reattach to is difficult if you have multiple short sessions. It's just a maze of names all of which sounds very similar.Being able to give a session name, or rename mid session would be a nice qol improvement compared to playing --resume bingo.
Want to add my +1 to the --resume situation being unbearably nondeterministic for me personally. Let's have named sessions.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.