[Bug] Token counter resets to 0 and rolls up after returning from Ctrl+O expanded view

Resolved 💬 3 comments Opened Jan 31, 2026 by WarrenZhu050413 Closed Feb 4, 2026

Bug Description

After pressing Ctrl+O to open the expanded view (with extra information), when returning to the normal view, the token counter in the status bar (e.g., ↓ 3.0k tokens) resets to 0 and then quickly rolls/animates back up to the correct value. This creates a visually distracting flicker every time you toggle the expanded view.

Reproduction Steps

  1. Start a conversation with some token usage accumulated
  2. Note the token count in the status bar (e.g., ↓ 3.0k tokens)
  3. Press Ctrl+O to open the expanded view
  4. Press Esc or otherwise return to the normal view
  5. Observe the token counter — it briefly shows 0, then rapidly animates up to the correct count

Expected Behavior

The token counter should retain its value when returning from the expanded view, or at minimum not animate from 0.

Actual Behavior

The token counter resets to 0 and visibly rolls up to the correct number (e.g., 0 → 3.0k), causing a distracting flicker on every toggle.

Environment

  • Platform: macOS (darwin)
  • Claude Code CLI

View original on GitHub ↗

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