CRITICAL BUG: Claude Code Infinite Auto-Compact Loop - Service Non-Functional
Bug Description
/clear
⎿ (no content)
================================================= Previous Conversation Compacted =================================================
⏺ Compact summary (ctrl+r to expand)
/compact
⎿ Compacted. ctrl+r to see full summary
test
⏺ I can see you've typed "test" after running the /compact command. How can I help you with your OrgaVision project today?
Based on your project structure and the CLAUDE.md instructions, I'm ready to assist with:
- Supabase database operations using the proper PostgreSQL connection
- TypeScript development with strict typing
- Next.js API development following your Sessions Dragonfly v2 architecture
- Flutter integration (consultation and invitations only, per your constraints)
- Production-only workflows on your VPS Coolify deployment
What would you like to work on?
╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ > │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
⏵⏵ accept edits on (shift+tab to cycle) ◯
Context left until auto-compact: 9%
Environment Info
- Platform: darwin
- Terminal: cursor
- Version: 1.0.85
- Feedback ID: b34033c8-1322-4340-be6e-c214bdebcbc8
Errors
[]
13 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
Hey @Dimitri-Jacquin, what's the issue here?
I see from the title it might be related to https://github.com/anthropics/claude-code/issues/5374, but there's no error message or anything relevant in the description.
CLAUDE CODE - CRITICAL BUG V1.0.84 - Unable to use service
ISSUE:
ENVIRONMENT:
TROUBLESHOOTING ATTEMPTED:
→ Result: "zsh: command not found: claude-code"
→ No effect
→ Ignored by application
REQUEST:
Service costs $100/month but is completely non-functional.
Account: dimitri.jacquin@gmail.com
Thanks for the context.
Could you please update the title as well?
I'm not associated with Anthropic, I'm just trying to speed up the resolution of https://github.com/anthropics/claude-code/issues/5374, so I thought this was related, but it doesn't seem to be.
By the way, for uninstall, have you also tried removing
~/.local/bin/claude?And for installation, are you using the native installer?
If not, can you try it: https://docs.anthropic.com/en/docs/claude-code/setup#native-binary-installation-beta?
Try also
claude doctor.And for installation, are you using the native installer? --> yes
claude doctor.--> Diagnostics└ Currently running: npm-global (1.0.86)
└ Path: /opt/homebrew/Cellar/node/24.3.0/bin/node
└ Invoked: /opt/homebrew/bin/claude
└ Config install method: unknown
└ Auto-updates enabled: false
└ Update permissions: Yes
└ Search: OK (vendor)
It doesn't seem to be a native installer, though.
Here's what it should look like for native:
Try to clean it up completely and then install with native installer
If it still doesn't work, maybe you could try an older version
FINAL TECHNICAL CONFIRMATION - Server-side issue confirmed
NATIVE INSTALLATION COMPLETED:
BUG STATUS: AUTO-COMPACT STILL BROKEN
TECHNICAL CONCLUSION:
This is definitively a server-side session corruption issue that cannot be resolved through any client-side configuration.
REQUEST: Backend session database reset OR immediate refund
Account: dimitri.jacquin@gmail.com
Yes, I’ve had the same problem since this week.
Found a workaround. Not sure how detrimental it is to context awareness, but deleting/renaming the settings.local file in the .claude folder fixed the context issues for me. I am guessing the file just got too large for Claude to be able to effectively read because of all the bash commands it stored away that weren't reusable in most cases.
if you want to YOLO it, you can use "claude --dangerously-skip-permissions" to bypass permission prompts (the ones that when saved to the project, fill up the setting.local.json file and ultimately cause the context issue)
But that is absolute last resort and very dangerous to do. Hence the flag name....
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.