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

[BUG] disappearing recent conversation after /compact or auto-compact

Open usorama opened this issue 4 months ago • 5 comments

Preflight Checklist

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

What's Wrong?

/compact or auto-compact is making latest response and some times parts of a response disappear. This is happening always.

Image

What Should Happen?

latest responses just before compaction should exist for user's (my) context and never disappear. In the attached image, everything after "Problems:" disappeared, leaving me guessing !

Error Messages/Logs


Steps to Reproduce

  1. Read the message produced by claude code
  2. just let claude code auto-compact or type /compact
  3. see parts of the last output missing.

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

< 2.0.0

Claude Code Version

2.0.8

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Warp

Additional Information

usorama avatar Oct 05 '25 10:10 usorama

Just came here to report this as well. When you execute /compact, the screen clears and at least the last command is lost. Note that Claude Code made the suggestion to compact, and I blindly lost my detailed plan.

mrconway avatar Oct 05 '25 15:10 mrconway

Yes! It is super annoying and makes navigation through recent conversations almost useless. In addition to that, you can’t actually rewind through the model messages, only through the user messages. But even more, only the messages sent when the agent was idle, yeah. So even if you queue your message within the conversation, you aren’t able to rewind to it. So this overall navigation is really broken. Anthropic, please fix that. I beg you.

art-shen avatar Oct 05 '25 15:10 art-shen

Yes! I figured that pressing key up I have access to all message I have sent in PowerShell, so I'm sending Claude my last message when there's an important talk in the middle, and Claude talks again in the right conversation, leaving the "todo list" for later...

-This bug is annoying...

(Im on Windows with 2.0.5 )

JoMiPeCa avatar Oct 06 '25 04:10 JoMiPeCa

My case was very severe. When the Compact forced me to hit escape twice and I had to move to a conversation point 3 placed up, the compact process deleted all the documentation files and the json files that were created during a 1.5 hours session.

devdutta avatar Oct 12 '25 12:10 devdutta

This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

github-actions[bot] avatar Dec 07 '25 10:12 github-actions[bot]