[Bug] Frequent Unexpected Conversation Compaction Interrupting Workflow
Bug Description ✢ Compacting conversation… (esc to interrupt · 68s · ↓ 1.4k tokens) all the time this is happenig di you make ti smaller this is insance it's every few misn it' sdoing it now
Environment Info
- Platform: darwin
- Terminal: iTerm.app
- Version: 1.0.112
- Feedback ID: 78d52d94-5036-4efa-876b-9a733e48a23e
Errors
[{"error":"Error: Invalid settings\n at UU9 (file:///Users/greg/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:784:24387)\n at v$A (file:///Users/greg/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:784:25115)\n at qU9 (file:///Users/greg/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:784:26923)\n at xk (file:///Users/greg/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:784:27307)\n at q2 (file:///Users/greg/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:784:27239)\n at gqB (file:///Users/greg/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:3533:14967)\n at file:///Users/greg/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:3544:291\n at Q (file:///Users/greg/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:713:13288)\n at Ii5 (file:///Users/greg/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:3682:1090)\n at file:///Users/greg/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:3722:1450","timestamp":"2025-09-12T14:19:23.591Z"},{"error":"Error: Invalid settings\n at UU9 (file:///Users/greg/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:784:24387)\n at v$A (file:///Users/greg/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:784:25115)\n at qU9 (file:///Users/greg/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:784:26923)\n at xk (file:///Users/greg/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:784:27307)\n at q2 (file:///Users/greg/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:784:27239)\n at gqB (file:///Users/greg/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:3533:14967)\n at file:///Users/greg/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:3544:291\n at Q (file:///Users/greg/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:713:13288)\n at Ii5 (file:///Users/greg/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:3682:1090)\n at file:///Users/greg/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:3722:1450","timestamp":"2025-09-12T14:19:23.602Z"},{"error":"Error: Invalid settings\n at UU9 (file:///Users/greg/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:784:24387)\n at v$A (file:///Users/greg/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:784:25115)\n at o8 (file:///Users/greg/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:784:25887)\n at Ya (file:///Users/greg/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:770:1521)\n at aCA (file:///Users/greg/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:770:1076)\n at Zi5 (file:///Users/greg/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:3679:15433)\n at Xi5 (file:///Users/greg/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:3683:34)\n at Ii5 (file:///Users/greg/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:3682:1157)\n at file:///Users/greg/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:3722:1450","timestamp":"2025-09-12T14:19:23.695Z"},{"error":"Error: Invalid settings\n at UU9 (file:///Users/greg/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:784:24387)\n at v$A (file:///Users/greg/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:784:25115)\n at o8 (file:///Users/greg/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:784:25887)\n at Ya (file:///Users/greg/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:770:1521)\n at aCA (file:///Users/greg/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:770:1206)\n at Zi5 (file:///Users/greg/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:3679:15433)\n at Xi5 (file:///Users/greg/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:3683:34)\n at Ii5 (file:///Users/greg/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:3682:1157)\n at file:///Users/greg/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:3722:1450","timestamp":"2025-09-12T14:19:23.696Z"},{"error":"Error: Invalid settings\n at UU9 (file:///Users/greg/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:784:24387)\n at v$A (file:///Users/greg/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:784:25115)\n at o8 (file:///Users/greg/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:784:25887)\n at Ya (file:///Users/greg/.claude/local/node_modules/@anthropic-
Note: Error logs were truncated.
Why is it constantly doing this now it as not as bad as this before now it's doing it every few chats i have it stops and does this compacting ALL THE TIME
Found 3 possible duplicate issues:
- https://github.com/anthropics/claude-code/issues/7502
- https://github.com/anthropics/claude-code/issues/7601
- https://github.com/anthropics/claude-code/issues/7572
This issue will be automatically closed as a duplicate in 3 days.
- If your issue is a duplicate, please close it and 👍 the existing issue instead
- To prevent auto-closure, add a comment or 👎 this comment
🤖 Generated with Claude Code
Why are you claiming there are so many duplicates because people are actually complaining that this is a real issue but yet it's not been fixed. Is this gonna go on for two months like everything else?
This started happening to me as of yesterday. The frequency and time waiting for compaction to finish make Claude Code unbearable to use.
It seems to be getting worse, especially now that it removes the whole conversation rather than just trimming it down like it used to. I am getting hit every 15 minutes, needed or not, and it is taking up to 5-7 minutes each round. it is RIDICULOUS!
Same experience here. Probably first noticed it a couple of days ago - today is 15/10/25. I have been using CC in VS Code for many months. This sudden increase in compacting frequency is definitely new. Im 90% sure its a bug. It happened repeatedly in one session. Each response I made prompted compacting to happen over and over again and I hit my session limit straight away without getting any work done. This was most definitely a bug and I left CC for a day to see if Anthropic would pick it up and fix it. Now Im just experiencing compacting messages way more often than usual.
The act of compacting uses 1000's of MY TOKENS to do it. So compacting itself is using up my allowance and Im hitting session limitations constantly now. Seems totally unfair as I have no control over it.
I have been using Sonnet 4.5 for a couple of weeks now and this experience has happen only recently.
My suspicion is that 4.5 is chewing up a lot more compute and costing Anthropic way more than 4.0. Its taken a while for them to realise. Now that they know they are dialling back users limits.
Maybe, just maybe, they have trialled compacting conversations differently, more often but less, in an attempt to improve context window usage but it has cause the complete opposite effect for me.
It totally sucks.
Same experience here. Probably first noticed it a couple of days ago - today is 15/10/25. I have been using CC in VS Code for many months. This sudden increase in compacting frequency is definitely new. Im 90% sure its a bug. It happened repeatedly in one session. Each response I made prompted compacting to happen over and over again and I hit my session limit straight away without getting any work done. This was most definitely a bug and I left CC for a day to see if Anthropic would pick it up and fix it. Now Im just experiencing compacting messages way more often than usual.
The act of compacting uses 1000's of MY TOKENS to do it. So compacting itself is using up my allowance and Im hitting session limitations constantly now. Seems totally unfair as I have no control over it.
I have been using Sonnet 4.5 for a couple of weeks now and this experience has happen only recently.
My suspicion is that 4.5 is chewing up a lot more compute and costing Anthropic way more than 4.0. Its taken a while for them to realise. Now that they know they are dialling back users limits.
Maybe, just maybe, they have trialled compacting conversations differently, more often but less, in an attempt to improve context window usage but it has cause the complete opposite effect for me.
It totally sucks.
The logic is flawed. What I do is just keep clearing conversations and carry on. That's the only way I can get it to be reliable.
This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.
This issue has been automatically closed due to 60 days of inactivity. If you're still experiencing this issue, please open a new issue with updated information.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.