Skip to content

Context usage warnings not appearing when using slash commands #16633

@Troy2727

Description

@Troy2727

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions