Skip to content

[BUG] claude is losing chat history #16970

Closed as not planned
Closed as not planned

Description

@davidbenhaim

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

latest version of claude code seems to fail at compacting or something and then when I go to resume the chat history isnt there - its like 5 hours earlier. Missing the most recent work... SUPER FRUSTRATING

What Should Happen?

it should work

Error Messages/Logs

Steps to Reproduce

asf

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

v2.1.1

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

No response

Activity

  1. github-actions commented on Jan 8, 2026

    @github-actions

    Found 3 possible duplicate issues:

    1. [Bug] Resume flag reverts to pre-compaction state after manual compaction #14462
    2. [BUG] disappearing recent conversation after /compact or auto-compact #8962
    3. [Bug] Auto-Compact Erases Entire Chat History Without Warning #7502

    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

  2. JorritGru commented on Jan 8, 2026

    @JorritGru

    I'm experiencing the same issue in visual studio code. Agreed, it is very frustrating to have to explain the same thing over and over...

  3. knksmith57 commented on Jan 9, 2026

    @knksmith57

    I think this upgrade just silently nuked 4 months of my local chat logs under ~/.claude/projects/ without prompting even though I've had "cleanupPeriodDays": 99999 in my ~/.claude/settings.json config for literally months now.

    Edit: filed #16978

  4. JensLincke commented on Feb 2, 2026

    @JensLincke

    I ran into the same problem, but I did not know that cleanupPeriodDays was a thing in the first place!
    #22547
    For me these chats are user data... they are my files on my disk... why are they deleted? This is no browser cache or download folder that can be recreated any time! This is user data! Am I seeing this wrong? What the fuck!

  5. Solido commented on Feb 22, 2026

    @Solido

    In my case this is after each restart of the desktop. It delete everything and not even add them to memory system which says it knows nothing about me. How to you deal with that? it's like you need to repay in tokens each time. I'm now manually exporting each thread to reload it...

  6. vstoyanov commented on Apr 12, 2026

    @vstoyanov

    How in hell could such a brutal defect stay open with complete silence for a fourth month already. Anthropic is truly a clown company...

  7. paultorben commented on Apr 25, 2026

    @paultorben

    Claude Code silently deleting chat files that are older than a month is a very serious issue to me - i see the feature request to add a toggle for changing this, but having already lost several (20+) projects chat - unknowingly because they were silently deleted by claude code at startup - i just cannot even

  8. cinerobert commented on May 21, 2026

    @cinerobert

    I just noticed this issue myself. Several chats that I haven't looked at in a few months, that are now completely empty. The agent thinks they are new chats when asked. There is no chat summary from any compression.

  9. github-actions commented on Jun 20, 2026

    @github-actions

    Closing for now — inactive for too long. Please open a new issue if this is still relevant.

  10. github-actions commented on Aug 23, 2026

    @github-actions

    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.

  11. locked as resolved and limited conversation to collaborators on Aug 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions