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

Resolved 💬 7 comments Opened Oct 5, 2025 by usorama Closed Jan 9, 2026

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.

<img width="884" height="584" alt="Image" src="https://github.com/user-attachments/assets/abc77c8b-6e6b-4691-a7fd-556b959c4037" />

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

View original on GitHub ↗

This issue has 7 comments on GitHub. Read the full discussion on GitHub ↗