Context usage warnings not appearing when using slash commands

Status Closed — not planned
Reported on v2.0.76
Maintainer reply None cached
Activity 3 comments · opened Jan 7, 2026 · 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

  1. Run any slash command (e.g., /help, /cost, etc.)
  2. 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_WARNINGS environment 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_WARNINGS not set in User or Machine environment variables
  • Checked ~/.claude/settings.json - no relevant configuration found
  • Confirmed settings should allow warnings to display

View original on GitHub ↗

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