[BUG] /compact silently deletes all pinned chapters (session table of contents) with no warning
Status Open
Reported on v2.1.199
Maintainer reply None cached
Activity 0 comments · opened Oct 5, 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 silently deletes all pinned chapters (session table of contents) with no warning
Results in loss of user-curated navigation across a long session. The underlying conversation content survives in ~/.claude/projects/<project>/*.jsonl, but the chapter pins themselves are not stored there and appear unrecoverable.
What Should Happen?
/compact preserves pinned chapters, or warns before discarding them (with a way to cancel or undo).
Error Messages/Logs
Steps to Reproduce
- Over a long session, pin several chapters in the session's table of contents
- Run /compact
- All previously pinned chapters are gone
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
Version: Claude Code 2.1.199 (desktop app, Code tab), macOS
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_