claude-code - 💡(How to fix) Fix [MODEL] opus 4.7 [4 comments, 2 participants]

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…
GitHub stats
anthropics/claude-code#54890Fetched 2026-05-01 05:51:44
View on GitHub
Comments
4
Participants
2
Timeline
7
Reactions
0
Author
Timeline (top)
commented ×4labeled ×3

Code Example

tournament.html

---

See below, this is ridiculous:

Processing request... - this is compacting

Thoughts
I'll continue implementing all the changes. Let me do this in focused edits.

Processing request... - this is compacting

Thoughts
I'm checking what the current file looks like.

Processing request... - this is compacting
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

Other unexpected behavior

What You Asked Claude to Do

Just update a single file

What Claude Actually Did

See below, this is ridiculous:

Processing request... - this is compacting

Thoughts ▼ I'll continue implementing all the changes. Let me do this in focused edits.

Processing request... - this is compacting

Thoughts ▼ I'm checking what the current file looks like.

Processing request... - this is compacting

Expected Behavior

Not compact the conversation after every single tiny thought

Files Affected

tournament.html

Permission Mode

Accept Edits was ON (auto-accepting changes)

Can You Reproduce This?

Sometimes (intermittent)

Steps to Reproduce

Its aftyer the first time it compacts, it then turns into a senile dementia patient.

Claude Model

Opus

Relevant Conversation

See below, this is ridiculous:

Processing request... - this is compacting

Thoughts
I'll continue implementing all the changes. Let me do this in focused edits.

Processing request... - this is compacting

Thoughts
I'm checking what the current file looks like.

Processing request... - this is compacting

Impact

High - Significant unwanted changes

Claude Code Version

4.7

Platform

Other

Additional Context

This is just getting worse with each new model its a ridiculous waste of tokens, then even when it gets back to work it goes off on a destructive and incorrect path 90% of the time, waste of money completely. Plus the process of compacting seems to take forever, i thought these were supposed to be getting better, opus 4.5 was MUCH better

extent analysis

TL;DR

The issue may be resolved by adjusting the conversation settings or editing preferences to prevent excessive compacting in the Claude model.

Guidance

  • Review the conversation settings and editing preferences to see if there are any options to control or disable compacting.
  • Check if there are any specific commands or keywords that can be used to prevent compacting, such as a "do not compact" flag.
  • Consider testing the behavior with a different model version, such as Opus 4.5, which was reported to work better.
  • Investigate if the "Accept Edits" permission mode is contributing to the issue and try disabling it to see if the behavior changes.

Notes

The issue seems to be specific to the Opus model and version 4.7, and the user has reported that previous versions worked better. The compacting behavior may be related to the model's editing preferences or conversation settings.

Recommendation

Apply workaround: Adjust conversation settings or editing preferences to prevent excessive compacting, as the issue seems to be model-specific and version-dependent.

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 [MODEL] opus 4.7 [4 comments, 2 participants]