[BUG] DISABLE_NONESSENTIAL_TRAFFIC silently breaks /usage
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?
Setting CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC to true causes the /usage command to stop working, with a non-specific error:
<img width="884" height="485" alt="Image" src="https://github.com/user-attachments/assets/6b1fc971-f379-4ac3-830b-05af3a7675a6" />
What Should Happen?
Claude Code should at least be explicit about the command being partially non-functional when CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC is true (as it explicitly is about disabling `/feedback).
Ideally, /usage would still function fully, since it was explicitly requested by the user.
Error Messages/Logs
Error: Failed to load usage data
Steps to Reproduce
- Run
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=true claude - Type
/usage - Navigate to the Usage tab
Claude Model
None
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.195
Platform
Other
Operating System
macOS
Terminal/Shell
Other
Additional Information
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC has several undesired or unintended side effects:
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗