CRITICAL BUG: Claude Code Infinite Auto-Compact Loop - Service Non-Functional

Status Closed — not planned
Maintainer reply None cached
Activity 13 comments · opened Aug 21, 2025 · closed Jan 8, 2026

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

[]

View original on GitHub ↗

13 Comments

github-actions[bot] · 1 year ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/5928
  2. https://github.com/anthropics/claude-code/issues/5662
  3. https://github.com/anthropics/claude-code/issues/2630

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

almirsarajcic · 1 year ago

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.

Dimitri-Jacquin · 1 year ago
Hey @Dimitri-Jacquin, what's the issue here? I see from the title it might be related to #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:

  • Auto-compact triggers in infinite loop at 0-9% context remaining
  • Forced compaction interrupts every workflow
  • Bug persists even with auto-compact disabled in settings
  • Application completely unusable for 3 consecutive days

ENVIRONMENT:

  • Mac Studio M4 Max, 48GB RAM, macOS 15.6.1
  • Claude Code v1.0.84
  • Project: OrgaVision (TypeScript/Next.js)

TROUBLESHOOTING ATTEMPTED:

  1. Complete config reset: rm -rf ~/.claude/

→ Result: "zsh: command not found: claude-code"

  1. Environment variables: CLAUDE_CODE_DISABLE_AUTOUPDATER=1

→ No effect

  1. Disabled auto-compact in settings

→ Ignored by application

REQUEST:

  1. How to restore Claude Code installation?
  2. Fix for infinite auto-compact loop bug
  3. If no quick solution available, refund procedure

Service costs $100/month but is completely non-functional.

Account: dimitri.jacquin@gmail.com

almirsarajcic · 1 year ago

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.

almirsarajcic · 1 year ago

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.

Dimitri-Jacquin · 1 year ago
By the way, for uninstall, have you also tried removing ~/.local/bin/claude? -->yes

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)

almirsarajcic · 1 year ago

It doesn't seem to be a native installer, though.

Here's what it should look like for native:

➜  codegen git:(main) claude doctor

 Diagnostics
 └ Currently running: native (1.0.86)
 └ Path: /Users/almirsarajcic/.local/bin/claude
 └ Invoked: /Users/almirsarajcic/.local/share/claude/versions/1.0.86
 └ Config install method: native
 └ Auto-updates enabled: true
 └ Search: OK (bundled)

Try to clean it up completely and then install with native installer

curl -fsSL https://claude.ai/install.sh | bash

If it still doesn't work, maybe you could try an older version

curl -fsSL https://claude.ai/install.sh | bash -s 1.0.70
Dimitri-Jacquin · 1 year ago
It doesn't seem to be a native installer, though. Here's what it should look like for native: `` ➜ codegen git:(main) claude doctor Diagnostics └ Currently running: native (1.0.86) └ Path: /Users/almirsarajcic/.local/bin/claude └ Invoked: /Users/almirsarajcic/.local/share/claude/versions/1.0.86 └ Config install method: native └ Auto-updates enabled: true └ Search: OK (bundled) `` Try to clean it up completely and then install with native installer curl -fsSL https://claude.ai/install.sh | bash If it still doesn't work, maybe you could try an older version curl -fsSL https://claude.ai/install.sh | bash -s 1.0.70

FINAL TECHNICAL CONFIRMATION - Server-side issue confirmed

NATIVE INSTALLATION COMPLETED:

  • Claude Code native v1.0.86 successfully installed
  • All configuration issues resolved
  • CLAUDE DOCTOR confirms proper native setup

BUG STATUS: AUTO-COMPACT STILL BROKEN

  • Context remains stuck at 10%
  • Service remains completely unusable
  • Issue persists across all installation methods

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

Jeans4you-Shop · 1 year ago

Yes, I’ve had the same problem since this week.

Codewow · 1 year ago

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....

github-actions[bot] · 8 months ago

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.

github-actions[bot] · 7 months ago

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.

github-actions[bot] · 7 months ago

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.