claude-code - 💡(How to fix) Fix [BUG] Weird response [3 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#46209Fetched 2026-04-11 06:26:16
View on GitHub
Comments
3
Participants
2
Timeline
6
Reactions
0
Timeline (top)
commented ×3labeled ×3

Error Message

API Error: Claude Code is unable to respond to this request, which appears to violate our Usage Policy (https://www.anthropic.com/legal/aup). Please double press esc to edit your last message or start a new session for Claude Code to assist with a different task. If you are seeing this refusal repeatedly, try running /model claude-sonnet-4-20250514 to switch models.

Code Example

API Error: Claude Code is unable to respond to this request, which appears to violate our Usage Policy (https://www.anthropic.com/legal/aup). Please double press esc to edit your last message or start a new session for Claude Code to assist with a different task. If you are seeing this refusal repeatedly, try running /model claude-sonnet-4-20250514 to switch models.
RAW_BUFFERClick to expand / collapse

Bug Description check my last message and response. I was getting quizzed about a lecture and then this happened

<img width="1442" height="380" alt="Image" src="https://github.com/user-attachments/assets/2cc31441-fde6-48a4-9854-db85345bfe96" />

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 2.1.100
  • Feedback ID: 3cf84c44-01b9-4f33-a09f-6f233a356ef9

Errors

API Error: Claude Code is unable to respond to this request, which appears to violate our Usage Policy (https://www.anthropic.com/legal/aup). Please double press esc to edit your last message or start a new session for Claude Code to assist with a different task. If you are seeing this refusal repeatedly, try running /model claude-sonnet-4-20250514 to switch models.

extent analysis

TL;DR

Try switching models by running /model claude-sonnet-4-20250514 to potentially resolve the Usage Policy violation error.

Guidance

  • The error message suggests a Usage Policy violation, which may be caused by the content of the last message.
  • To mitigate this, try editing the last message by double pressing esc to modify it and see if Claude Code can respond.
  • If the issue persists, switching models as suggested in the error message might help.
  • Review the Usage Policy at https://www.anthropic.com/legal/aup to understand what might have triggered the violation.

Notes

The provided information does not specify the content of the last message, which is crucial for understanding the exact cause of the Usage Policy violation. Therefore, the suggestions are based on the error message's recommendations.

Recommendation

Apply workaround: Switching models by running /model claude-sonnet-4-20250514 is recommended as it directly addresses the error message's suggestion for resolving the issue.

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