claude-code - 💡(How to fix) Fix [BUG] Claude Code claiming false Usage Policy violation when scanning emails [2 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#54906Fetched 2026-05-01 05:51:20
View on GitHub
Comments
2
Participants
2
Timeline
7
Reactions
0
Author
Timeline (top)
labeled ×5commented ×2

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.

Root Cause

Claude should recognize that the violation is not caused by the user but by specific content in the email, it should explain what caused the violation and present user with sane options:

  1. process the content differently
  2. skip malformed content

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

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

This is the same issue as was already reported months ago: #18053, that issue was closed without resolution. Like the other poster, I too ran into the same error while scanning emails. Coincidentally this was also scanning HARO feeds, just like the other user. I'm wondering if the issue is due to Claude misinterpreting content within those emails as instructions, or some poison pill within the content:

<img width="942" height="204" alt="Image" src="https://github.com/user-attachments/assets/292a9329-502c-4ce9-8989-e312295f8c0a" />

What Should Happen?

Claude should recognize that the violation is not caused by the user but by specific content in the email, it should explain what caused the violation and present user with sane options:

  1. process the content differently
  2. skip malformed content

Error Messages/Logs

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.

Steps to Reproduce

  1. sign up for HARO digest in your mailbox: https://www.helpareporter.com
  2. setup gmail MCP to read emails
  3. ask claude to read/profile/summarize emails, eventually (after a few days/weeks of digests), you will encounter this issue

Claude Model

Opus

Is this a regression?

No, this never worked

Last Working Version

No response

Claude Code Version

2.1.123

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Other

Additional Information

No response

extent analysis

TL;DR

The issue may be resolved by modifying Claude Code to better handle specific content in HARO emails that is misinterpreted as instructions.

Guidance

  • Review the content of HARO emails to identify potential "poison pills" that may be causing Claude to misinterpret instructions.
  • Consider implementing a content filtering or sanitization mechanism to prevent Claude from processing malicious or malformed content.
  • Test the /model claude-sonnet-4-20250514 switch as suggested in the error message to see if it resolves the issue.
  • Investigate the Usage Policy (https://www.anthropic.com/legal/aup) to understand what specific violations are being triggered by the content in HARO emails.

Notes

The issue seems to be related to the specific content in HARO emails, and modifying the content handling mechanism in Claude Code may resolve the issue. However, without more information about the content of the emails and the specific violations being triggered, it is difficult to provide a more detailed solution.

Recommendation

Apply workaround: Implement a content filtering or sanitization mechanism to prevent Claude from processing malicious or malformed content, as this may help to resolve the issue without requiring a full fix.

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 [BUG] Claude Code claiming false Usage Policy violation when scanning emails [2 comments, 2 participants]