Erroneous Usage Policy restictions

Resolved 💬 6 comments Opened Aug 8, 2025 by cmxela Closed Dec 16, 2025

I have requested Claude Code to add the copyright notices to an application I am developing. Claude Code has erroneously added these copyright notices to some json files that now the application is not able to process. When I request Claude Code to correct what it has done erroneously, I am receiving these errors.
~~~
The issue is that the existing settings file contains a comment which
makes it invalid JSON. Let me check what the content looks like:
⎿ 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.
⎿  Error: /bin/bash: eval: line 1: unexpected EOF while looking for
matching `"'
⎿ 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.
~~~

View original on GitHub ↗

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