The /context command displays context usage meter twice

Resolved 💬 3 comments Opened Jan 26, 2026 by PG-OM Closed Jan 30, 2026

Description

When running the /context command, the entire context usage display (including the MCP tools breakdown) is rendered twice in sequence.

Steps to Reproduce

  1. Run Claude Code CLI
  2. Execute the /context command

Expected Behavior

The context usage meter and MCP tools breakdown should display once.

Actual Behavior

The complete context information block is rendered twice in the terminal output. The raw output shows terminal escape codes for synchronized output ([?2026h and [?2026l) appearing between the two renders, suggesting a possible issue with the screen refresh/redraw logic.

Environment

  • Platform: Windows (win32)
  • Model: claude-opus-4-5-20251101

Additional Context

The duplicate output appears to be related to terminal rendering rather than the context calculation itself, as both outputs show identical information. Each duplicated block includes both the "Context Usage" section and the "MCP tools" subsection.

View original on GitHub ↗

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