Iuuse while compacting
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?
I was coding using Claude Terminal with 4 separate terminal sessions open. Each terminal had its own dedicated context provided through separate .md files.
However, after compacting , continuing work from Terminal 1, Claude unexpectedly picked up the context from Terminal 4 instead of using the context associated with Terminal 1. When asked it mentioned its received through compacted data.
What Should Happen?
It should have usd its provided context instead of picking up other context.
Error Messages/Logs
Steps to Reproduce
Create 4 terminal claude instace
provide seperate context with sperat md files
check after compacting of one of the terminal session
note: I did not do many experiments, but this is what i found, there has to be some cnteext leak between each terminal session while comapcting
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.123
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗