anthropics / anthropics/claude-code

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

Offen
#91,529 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
api:anthropic area:model bug duplicate platform:macos
Vorherrschende Sprache
Python
Sterne
145k
Forks
23.1k
PR-Merge-Kennzahlen
PR-Kennzahlen ausstehend

Beschreibung

### Preflight Checklist

- [x] I have searched [existing issues](https://github.com/anthropics/claude-code/issues?q=is%3Aissue%20state%3Aopen%20label%3Abug) 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 talking about organisation of automatic bug-fixing for users of my system, the security infrastructure of Claude Code is triggered by the words "eliminating the need for sudo", "immediate response without consulting the human", etc. This discussion is completely benign, it is about automatic bug fixes in my system, done by Claude, and not requiring me to jump out of bed in the middle of the night to approve a file modification. We were talking about running Claude Code in the _**correct account**_, but the net effect was Antropics security stepping in at each turn and making the dialog impossible. Please fix!

### What Should Happen?

This API message should not trigger in a legitimate conversation.

### Error Messages/Logs

```shell
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.

Request ID: req_011CeenSqXFFHSfmomp9e86P
```

### Steps to Reproduce

NOt sure what triggers it

### Claude Model

Sonnet (default)

### Is this a regression?

I don't know

### Last Working Version

_No response_

### Claude Code Version

2.1.258.

### Platform

Anthropic API

### Operating System

macOS

### Terminal/Shell

Terminal.app (macOS)

### Additional Information

_No response_

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Start from the reported Claude Code version 2.1.258 on macOS Terminal and the logged API policy error with request ID req_011CeenSqXFFHSfmomp9e86P. The issue does not give a reliable reproducer, so first confirm what prompt text triggers the block. Done means a benign automatic bug-fixing conversation no longer produces the Usage Policy API error, or the report is narrowed to a reproducible policy false positive.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
macos, python
Bereich
ai-infra-agents, api, cli, security
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Aktiv
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
28/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.