Skip to content

Instantly share code, notes, and snippets.

@JohannesHoppe
Last active February 15, 2026 10:09
Show Gist options
  • Select an option

  • Save JohannesHoppe/96f5a88e5d62e813d0c771d7fa0749e1 to your computer and use it in GitHub Desktop.

Select an option

Save JohannesHoppe/96f5a88e5d62e813d0c771d7fa0749e1 to your computer and use it in GitHub Desktop.
if `claude --resume` doesn't work

Claude Code saves session files in a folder name based on the exact directory you were in when you created the session. It turns that folder path into a hyphenated name (like /home/xxx-home-xxx) inside ~/.claude/projects/. If you try to do claude --resume from a different directory than the one you started in, Claude Code won’t see the conversation file because it’s looking in the wrong place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment