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
- Have a conversation with significant context usage
- Run
/compact - Observe the status line — token count remains unchanged
- Run
/context— shows a different (lower) token count - 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)
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗