Status line token count not refreshed after /compact

Resolved 💬 3 comments Opened Mar 1, 2026 by xykjlcx Closed Mar 5, 2026

Description

After running /compact, the status line (bottom bar) still shows the pre-compaction token count. It only refreshes after the next assistant response.

Steps to Reproduce

  1. Have a conversation with significant context usage
  2. Run /compact
  3. Observe the status line — token count remains unchanged
  4. Run /context — shows a different (lower) token count
  5. Send any message and get an assistant response — status line now updates to the correct post-compaction value

Expected Behavior

The status line should refresh its token count immediately after /compact completes, since the context has been reduced.

Actual Behavior

The status line retains the pre-compaction token count until the next assistant response triggers a refresh.

Likely Cause

The status line refresh appears to be bound to the "assistant response completed" event. /compact performs an API call internally to compress messages but doesn't trigger the same refresh event.

Environment

  • macOS (Darwin 24.6.0, Apple Silicon)
  • Claude Code (latest)

View original on GitHub ↗

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