[BUG] Claude will self execute his plan w/o approval FOLLOWING a auto-compact
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?
<img width="1015" height="201" alt="Image" src="https://github.com/user-attachments/assets/5cd32358-b2ad-4992-a52d-b03d60313dd1" />
Claude performs the task perfectly and produces the expected results - then begins a auto-compact. After the compact Claude then immediately begins executing his plan.
This happened late last night and I was like WTF Claude? It just happened again and I realized that both times it was following the auto-compact.
<img width="1009" height="643" alt="Image" src="https://github.com/user-attachments/assets/f953586e-8291-4474-8e4a-d651543b2f28" />
What Should Happen?
<img width="960" height="394" alt="Image" src="https://github.com/user-attachments/assets/64d9e874-0978-4371-980e-13130719a7fb" />
Error Messages/Logs
Steps to Reproduce
- load context to 99% or so I guess
- ask Claude to generate a plan of action for subsequent discussion.
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.0.28 (Claude Code)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
iTerm2
Additional Information
This is particularly insidious because while I'm at the top of his response reading this very long report, he's down below doing what he feels like. LOL. Seriously - I'll probably take his suggestion anyway, but it's a bit shocking when it happens.
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗