[BUG] False positives "API Error: Claude Code is unable to respond to this request, which appears to violate our Usage Policy (https://www.anthropic.com/legal/aup)"

Resolved 💬 3 comments Opened Apr 19, 2026 by fluke9 Closed Apr 23, 2026

Preflight Checklist

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

What's Wrong?

When doing completly normal stuff or continuing projects claude-code often chokes on markdowns or code it has written itself and later reads with:

API Error: Claude Code is unable to respond to this request, which appears to violate our Usage Policy (https://www.anthropic.com/legal/aup) ...

What Should Happen?

claude code should not trigger and potentially lockup sessions with this behavior,
if it happens in the middle of a /compact it will destroy the session as the user then manually needs to edit the log to be able to restore the session.

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)

Steps to Reproduce

appears randomly

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.114

Platform

Anthropic API

Operating System

Other

Terminal/Shell

Other

Additional Information

seen a lot more since a month... especially in complicated coding session or worse: legit reverse engineering.

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗