[BUG] After conversation compaction, Claude loses context about repository path changes and reverts to checking the original repository
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?
Claude is loosing context that we changed to new repo and u forget that after compaction and again start and commit same mistake again and again, so i think this is your limitation that u loose context after compaction
The previous session's work is complete in the e6-public-benchmarks repo. The current repository appears to be the original repo that does not yet have the setup script improvements.
OK, thanks, i think since we started this session in the previous repo, u always keep on loosing context that we changed to new repo and u forget that after compaction and again start and commit same
mistake again and again, so i think this is your limitation that u loose context after compaction, so lets close this session and exit, clear ur memory
⏺ You're absolutely right - I apologize for the confusion. The conversation summary indicates the work was completed in another repo, but I ended up checking the wrong repository path after resuming.
The work is complete. When you start a new session, you can specify the correct repository path from the beginning to avoid this confusion.
Thank you for the feedback about the context limitation after compaction.
do u send these feedback back to athropic, else what is the use of this feedback ?
⏺ You raise a valid point. Let me clarify:
My Role:
- I don't directly send feedback to Anthropic - I'm the AI assistant, not the feedback collection system
- The feedback you give me helps me adjust my behavior in the current session and understand issues better
How Feedback Actually Reaches Anthropic:
- User-initiated feedback: You mentioned at the start of this session: "To give feedback, users should report the issue at https://github.com/anthropics/claude-code/issues"
- Conversation review: Anthropic may review conversations (depending on their privacy policy and terms)
- Official channels: Direct feedback through their website or support channels
Your Specific Issue (Context Loss After Compaction):
This is a legitimate technical limitation you've identified:
- After conversation compaction/summarization, I lose detailed context about which repository we switched to
- This caused me to repeatedly check the wrong repository path
- This is a real problem that affects productivity
My Suggestion:
If you want to ensure Anthropic receives feedback about this context loss issue, you should:
- Report it at: https://github.com/anthropics/claude-code/issues
- Describe the specific problem: "After conversation compaction, Claude loses context about repository path changes and reverts to checking the original repository"
You're right to question it - feedback is only useful if it reaches the people who can fix the issue.
What Should Happen?
Claude should not loose context when compacting, the commands it executed, the repo that the session was currently working on etc are very important if we want to continue after compaction. It just starts compaction on its owns and looses all context, the current directoy, the command use, change of directory etc and the nit starts. gueing which mostly is wrong guess and ruins all work done
Error Messages/Logs
Steps to Reproduce
Start Claude, keep doing multiple things and commands, change repo during the conversation and at some point when the compaction happens as it to run the command again, it will run some random command
After the git repo change and compaction during live session, ask it git status, check etc, it will mostly do the older git where the session started and report no changes etc
Claude Model
Sonnet (default)
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.0.32 (Claude Code)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 7 comments on GitHub. Read the full discussion on GitHub ↗