Status line: context percentage text intermittently disappears on re-render

Resolved 💬 2 comments Opened Apr 7, 2026 by gojj1229 Closed May 20, 2026

Description

The built-in status line intermittently drops the "X% until auto-compact" context percentage text while other data (token count) remains unchanged.

Steps to reproduce

  1. Use Claude Code with a custom statusLine command configured in settings.json
  2. Observe the status bar during a session approaching auto-compact threshold
  3. The token count (e.g., +989) remains visible, but the "4% until auto-compact" text disappears intermittently without any user action

Expected behavior

The context percentage text should remain visible as long as the token count is displayed — both derive from the same context data.

Actual behavior

  • Screenshot 1: +989 4% until auto-compact — context info visible
  • Screenshot 2: +989 only — context percentage text gone, same data

Both screenshots were taken moments apart with no user interaction between them.

Environment

  • macOS Darwin 24.6.0
  • Claude Code with custom statusLine command (shell script outputting dir/branch/model/ctx)
  • The missing text is the built-in "X% until auto-compact" display, not the custom statusLine output

Analysis

This appears to be a binding or re-render timing issue in the built-in status bar UI — the context percentage data exists (token count still shows) but the percentage text fails to render on some update cycles.

🤖 Generated with Claude Code

View original on GitHub ↗

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