What's Changed
Fixed
-
Status line no longer blank at session start. Claude Code sends
context_window.used_percentageasnulluntil the session has an
assistant message, and the script treated that as "no data at all" —
printing nothing until the first request/response.- The context segments (
progress_bar,percentage,tokens) are now
skipped while the percentage is unknown; the model badge, directory,
worktree, git and usage gauges render from the first frame. - No fabricated
0 %is shown — the system prompt and tool definitions
already occupy context and cannot be measured before the API answers,
which is why Claude Code reportsnullrather than zero. - The 5-hour and weekly gauges may still be empty for the first render
or two while Claude Code's background quota probe resolves, then fill in.
- The context segments (
-
Stray leading blank line when a
new_linesegment came before anything
that rendered. Deliberate blank separators (two consecutivenew_line
segments) are unaffected.
No configuration changes — existing SL_SEGMENTS values and custom theme
files work unchanged.
Full Changelog: v5.6.0...v5.6.1