claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[BUG] Crashes and loses all session information

Open jmmirabile opened this issue 1 year ago • 5 comments

Environment

  • Platform (select one):
  • Claude CLI version: 1.0.53 (Claude Code)
  • Operating System: Linux 5.15.0-144-generic #157-Ubuntu SMP x86_64 x86_64 x86_64 GNU/Linux
  • Terminal: xterm

Bug Description

When Claude Code crashes or is closed and started again in the same IDE and project, the knowledge of the project, TODO list is lost.

Steps to Reproduce

  1. Launch IDE, go to terminal, launch Claude
  2. Perform work
  3. Close IDE
  4. Open new IDE and open project
  5. Launch claude. Knowledge of project is lost.

Expected Behavior

Claude should remember where we left off, store todo list in ~/.claude somewhere.

Actual Behavior

Claude has to relearn the project.

jmmirabile avatar Jul 23 '25 21:07 jmmirabile

+1 just happened to me lol

egantz avatar Jul 23 '25 21:07 egantz

Here is what I did. I asked Claude to create dedicated project directories in ~/.claude/projects/. I told it to store my project session, todo list and other project related information there. This is so that I can have more than one IDE running with at least two projects going independently. Then Claude suggested creating a project-standards.md file in .claude and adding a reference to ~/dev-projects/projectname/.claude. We'll see how it goes. But I like the fact I can tell it how to configure itself. Used it for less than 7 days before upgrading to the Pro version. I can definitely see spending $100 a month on this. Also, it helps to have it generate documentation and update it when significant progress has been made. Then ask it to update the docs again and review the docs. Have it generate full design and API specs, edit those specs to make clear anything up. Then if you lose your session again, tell Claude to read the documentation.

jmmirabile avatar Jul 24 '25 04:07 jmmirabile


Found 1 possible duplicate issue:

  1. https://github.com/anthropics/claude-code/issues/5768

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code


github-actions[bot] avatar Aug 15 '25 21:08 github-actions[bot]

This issue has been automatically closed as a duplicate of #5768.

If this is incorrect, please re-open this issue or create a new one.

🤖 Generated with Claude Code

github-actions[bot] avatar Aug 19 '25 09:08 github-actions[bot]

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.

github-actions[bot] avatar Aug 28 '25 14:08 github-actions[bot]