claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[Bug] [Has Workaround] Auto-Compact Resetting Context Limit To 4-6% Causing Frequent Compaction Loop

Open Codewow opened this issue 1 year ago • 10 comments

Bug Description Auto-compact keeps resetting to 4% - 6% remaining so Claude goes into a compact loop. Resetting session did not fix the problem.

Environment Info

  • Platform: win32
  • Terminal: null
  • Version: 1.0.89
  • Feedback ID: 112dcd15-a42b-41fc-bcb8-fc37523b3d00

Errors

[]

Workaround:

Either rename/remove the settings.local.json file from the .claude folder

OR

Manually go through the file and cleanup large actions that you don't mind having to approve again regularly.

OR

Cleanup the entire file and manually go in an add actions yourself.

Codewow avatar Aug 24 '25 14:08 Codewow

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/6004
  2. https://github.com/anthropics/claude-code/issues/6315
  3. https://github.com/anthropics/claude-code/issues/6232

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

github-actions[bot] avatar Aug 24 '25 14:08 github-actions[bot]

Guys do something, it's 3rd day in a row I can't use my 200$ subscription at all

nttylock avatar Aug 24 '25 20:08 nttylock

Found a "fix." 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....

Codewow avatar Aug 25 '25 03:08 Codewow

Found a "fix." 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.

Thx mate, seems its worked for me.

nttylock avatar Aug 25 '25 11:08 nttylock

Found a "fix." 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.

Thx mate, seems its worked for me.

Did not help my situation, sadly

timkjr avatar Aug 26 '25 00:08 timkjr

Found a "fix." 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.

Thx mate, seems its worked for me.

Did not help my situation, sadly

How big is your Claude.md file if you have one?

Codewow avatar Aug 26 '25 01:08 Codewow

91 lines, it's a brand-new project, pretty sure the system ought to be able to handle this and there's something fundamental that's gone wrong.

On Mon, Aug 25, 2025 at 8:06 PM Codewow @.***> wrote:

Codewow left a comment (anthropics/claude-code#6461) https://github.com/anthropics/claude-code/issues/6461#issuecomment-3222206379

Found a "fix." 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.

Thx mate, seems its worked for me.

Did not help my situation, sadly

How big is your Claude.md file if you have one?

— Reply to this email directly, view it on GitHub https://github.com/anthropics/claude-code/issues/6461#issuecomment-3222206379, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH2UN3W26CHUTRDNSUM4UDT3POXJPAVCNFSM6AAAAACEVTR7NCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTEMRSGIYDMMZXHE . You are receiving this because you commented.Message ID: @.***>

timkjr avatar Aug 26 '25 15:08 timkjr

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] avatar Dec 04 '25 10:12 github-actions[bot]

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] avatar Jan 04 '26 10:01 github-actions[bot]

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.

github-actions[bot] avatar Jan 11 '26 14:01 github-actions[bot]