Context usage warnings not appearing when using slash commands
Resolved 💬 3 comments Opened Jan 7, 2026 by Troy2727 Closed Feb 21, 2026
Description
Context usage/token usage warnings do not appear when using slash commands in Claude Code CLI.
Environment
- Claude Code version: 2.0.76
- OS: Windows (win32)
- GitHub account: Troy2727
Steps to Reproduce
- Run any slash command (e.g.,
/help,/cost, etc.) - Observe that no token usage warning appears in the output
Expected Behavior
Token usage warnings should appear after slash command execution, similar to regular prompts.
Actual Behavior
No token usage warnings are displayed after slash commands complete.
Additional Context
DISABLE_COST_WARNINGSenvironment variable is not set- Settings file (
~/.claude/settings.json) does not contain any cost warning configuration - Token warnings appear normally during regular interactive prompts
Investigation Done
- Verified
DISABLE_COST_WARNINGSnot set in User or Machine environment variables - Checked
~/.claude/settings.json- no relevant configuration found - Confirmed settings should allow warnings to display
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗