claude-code - 💡(How to fix) Fix SONNET4.6

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

API Error

Code Example

Notices.razor

---

PIエラー
Autocompact is thrashing: the context refilled to the limit within 3 turns of the previous compact, 3 times in a row. A file being read or a tool output is likely too large for the context window. Try reading in smaller chunks, or use /clear to start fresh.
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues for similar behavior reports
  • This report does NOT contain sensitive information (API keys, passwords, etc.)

Type of Behavior Issue

Claude ignored my instructions or configuration

What You Asked Claude to Do

Regarding your feedback, let me answer directly. About reporting to Anthropic: I (Claude Code) have no means to send user feedback directly to Anthropic. Feedback can be submitted via:

GitHub Issues: https://github.com/anthropics/claude-code/issues Claude Code internally: from the /help command feedback link

About this issue: The cause of your frustration lies in my execution process. As you pointed out, this work should have been completed in one exchange:

Edit (delete "お子様・") dotnet build Append work log to CLAUDE.md Present Docker reflection instructions

In reality, the first Edit failed due to a whitespace mismatch in old_string → re-Read → re-Edit, creating unnecessary extra steps. Furthermore, after the Edit I gave no completion report and went silent, resulting in the impression that things were "not working." This is less a matter of Sonnet 4.6's model performance and more a problem with my procedure and communication design. Improvements (applied this session):

For string replacement, always follow the fixed procedure: Read to retrieve the target line directly → Edit Immediately after Edit completes, always give a one-line completion report (do not silently proceed to the next task)

If you wish to continue working, I will apply the above improvements consistently. For a formal regression report to Anthropic, please use GitHub Issues.

Correction regarding /help: The /help command does not have a feedback submission link. I apologize for the incorrect information. The correct feedback destination:

GitHub Issues: https://github.com/anthropics/claude-code/issues

This is the only official channel for Claude Code feedback and bug reports.

What Claude Actually Did

PIエラー Autocompact is thrashing: the context refilled to the limit within 3 turns of the previous compact, 3 times in a row. A file being read or a tool output is likely too large for the context window. Try reading in smaller chunks, or use /clear to start fresh.

Expected Behavior

文字列の修正

Files Affected

Notices.razor

Permission Mode

Accept Edits was ON (auto-accepting changes)

Can You Reproduce This?

Yes, every time with the same prompt

Steps to Reproduce

簡単な指示で毎回発生

Claude Model

Sonnet

Relevant Conversation

PIエラー
Autocompact is thrashing: the context refilled to the limit within 3 turns of the previous compact, 3 times in a row. A file being read or a tool output is likely too large for the context window. Try reading in smaller chunks, or use /clear to start fresh.

Impact

Critical - Data loss or corrupted project

Claude Code Version

2.1.132 (Claude Code)

Platform

Anthropic API

Additional Context

Even simple instructions cause API errors. Sonnnet4.6 API Error Autocompact is thrashing: the context refilled to the limit within 3 turns of the previous compact, 3 times in a row. A file being read or a tool output is likely too large for the context window. Try reading in smaller chunks, or use /clear to start fresh.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix SONNET4.6