anthropics / anthropics/claude-code
[Bug] Usage policy violation errors persist after /clear command
- Dominant language
- Python
- Stars
- 145k
- Forks
- 23.1k
- PR merge metrics
- PR metrics pending
Description
**Bug Description**
usage policy violation after /clear and for previously accepted queries.
**Environment Info**
- Platform: win32
- Terminal: windows-terminal
- Version: 2.1.114
- Feedback ID: 3892bec7-7720-4ad8-92d4-083b0f712a0f
**Errors**
```json
[{"error":"Error: ENOENT: no such file or directory, unlink 'C:\\Users\\tvanw\\AppData\\Local\\Temp\\claude\\C--Users-tvanw\\364687ed-3497-4e54-8535-f81e9bccc1be\\tasks\\ac14ad7e93d201a2c.output'\n at async (B:/~BUN/root/src/entrypoints/cli.js:7962:299)","timestamp":"2026-09-16T13:24:41.336Z"},{"error":"Error: ENOENT: no such file or directory, unlink 'C:\\Users\\tvanw\\AppData\\Local\\Temp\\claude\\C--Users-tvanw\\364687ed-3497-4e54-8535-f81e9bccc1be\\tasks\\a1a7573dcdefacb9e.output'\n at async (B:/~BUN/root/src/entrypoints/cli.js:7962:299)","timestamp":"2026-09-16T13:24:58.062Z"},{"error":"Error: pdftoppm failed: Command 'pdftoppm' not found or is in an unsafe location (current directory)\n at yD_ (B:/~BUN/root/src/entrypoints/cli.js:4778:764)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-09-16T13:25:41.303Z"},{"error":"AxiosError: timeout of 10000ms exceeded\n at (B:/~BUN/root/src/entrypoints/cli.js:115:13344)\n at emit (node:events:92:22)\n at (B:/~BUN/root/src/entrypoints/cli.js:114:3321)\n at request (B:/~BUN/root/src/entrypoints/cli.js:117:2467)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-09-16T13:26:50.705Z"},{"error":"DomainCheckFailedError: Unable to verify if domain alientt.com is safe to fetch. This may be due to network restrictions or enterprise security policies blocking claude.ai.\n at J_$ (B:/~BUN/root/src/entrypoints/cli.js:3453:5009)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-09-16T13:26:50.710Z"}]
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the issue on win32 with Windows Terminal and Claude Code 2.1.114, using /clear and then a previously accepted query. Start from the reported B:/~BUN/root/src/entrypoints/cli.js entry point and investigate the ENOENT cleanup and policy-related errors; done means /clear no longer leaves usage-policy errors affecting later queries.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- bun, node.js
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100