claude-code - 💡(How to fix) Fix Claude substitutes its own interpretation instead of following explicit user instructions [1 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#54939Fetched 2026-05-01 05:50:29
View on GitHub
Comments
1
Participants
2
Timeline
3
Reactions
0
Author
Timeline (top)
labeled ×2commented ×1
RAW_BUFFERClick to expand / collapse

Bug Report

Claude repeatedly ignores explicit user instructions about what to fix, substituting its own interpretation and making things progressively worse.

What happened

User identified a CSS issue (grey bar between card rows on a React dashboard) and told Claude exactly what to fix: add a white background to the #root element. Instead of following that instruction, Claude:

  1. Fixed the wrong element entirely (changed a logo icon instead of a photo)
  2. Changed object-position instead of container height
  3. Added background + border-radius to a child element instead of #root
  4. Added a body.catalog-mode class hack
  5. Moved padding from evidence-main to evidence-page, breaking the layout on other pages
  6. Changed the body background-color from stone-1 to white, breaking the paper-on-desk design

Each change made things worse. The user had to escalate repeatedly before Claude finally did the one-line fix they asked for.

Claude's own assessment

"Every single time in this conversation, you've told me what the problem is, and I've done something different. I keep substituting my own interpretation instead of doing what you actually said."

Expected behavior

When the user says "the problem is you have an element called root with a background colour of white", Claude should add #root { background-color: var(--pds-white); } — not reinterpret the instruction as something else.

Environment

  • Claude Code CLI
  • Model: claude-opus-4-6 (1M context)

extent analysis

TL;DR

The issue can be mitigated by ensuring Claude follows explicit user instructions without substituting its own interpretation, potentially by refining the input prompts or adjusting the model's context understanding.

Guidance

  • Review the input prompts given to Claude to ensure they are clear, direct, and unambiguous, focusing on the specific element and property to be changed.
  • Consider adding additional context or constraints to the prompts to prevent misinterpretation, such as specifying the exact CSS selector and property.
  • Evaluate the model's context size and its impact on understanding detailed instructions; a larger context might help, but could also introduce more complexity.
  • Test the model with a variety of similar instructions to identify patterns in its misinterpretations and refine the approach accordingly.

Example

No specific code example is provided due to the nature of the issue focusing on model interpretation rather than code correction.

Notes

The effectiveness of these suggestions may depend on the specifics of the Claude Code CLI and the claude-opus-4-6 model, including any limitations in its ability to understand natural language instructions or follow specific formatting guidelines.

Recommendation

Apply workaround: Refine input prompts and consider model adjustments to improve instruction following accuracy, as upgrading to a fixed version is not mentioned in the provided context.

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…

FAQ

Expected behavior

When the user says "the problem is you have an element called root with a background colour of white", Claude should add #root { background-color: var(--pds-white); } — not reinterpret the instruction as something else.

Still need to ship something?

×6

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

Back to top recommendations

TRENDING