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.

View original on GitHub ↗

14 Comments

dbieber · 1 year ago

Yes please! Being able to save/resume/fork conversations would be delightful.

jameshickman · 1 year ago

Absolutely! Please add this.

tassa-yoniso-manasi-karoto · 1 year ago

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-terminal which has a confirm dialog on close when there is an active process running, trust me you won't regret it...

ChristopherA · 1 year ago

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.

Rockgecko · 1 year ago

Ironically, Claude code just hallucinated me this command. Sadly it didn't work.

> how do I park and resume a session?

⏺ Fetch(https://docs.anthropic.com/en/docs/agents-and-tools/claude-code/overview)…
  ⎿  Received 1.8MB (200 OK)

⏺ To park and resume a Claude Code session, you can use:

  1. To park (save) a session:
  /park [optional session name]
  1. This saves your current conversation state for later access.
  2. To resume a session:
  claude code --resume [session name or ID]
  2. This loads a previously parked session.

  If you don't specify a session name when parking, Claude will generate a unique ID that you can reference later when resuming.

> /park viewer
  ⎿  Local command /park viewer completely ran.

     Parked session id: viewer

· Accomplishing… (0s · ⚒ 0 tokens · esc to interrupt)
bcherny collaborator · 1 year ago
ChristopherA · 1 year ago

Thanks. It would still be useful if we could write these /compact contexts to a file.

What is the difference between --resume and --continue. What is the todo list that this changelog refers to?

wolffiex collaborator · 1 year ago

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

talf · 1 year ago

As for the --restore feature - this is great!
I do have a few more suggestions:

  1. Can we have a custom number of "restored" sessions? One should be able to go a week back for a sepcific task.
  2. It would be really nice to be able to just print the available sessions to restore
  3. It could also be really useful to set custom session names / aliases - so it would be easier to identify the session you'd like to restore instead of guessing.
intelliot · 1 year ago

@talf I think you mean --resume, not --restore.

agnivade · 1 year ago

Heavy +1 on ability to set custom session names. The --resume feature 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.

bazhand · 1 year ago

Being able to give a session name, or rename mid session would be a nice qol improvement compared to playing --resume bingo.

simlei · 1 year ago

Want to add my +1 to the --resume situation being unbearably nondeterministic for me personally. Let's have named sessions.

github-actions[bot] · 1 year ago

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.