dotfiles/claude/tests
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jonny Barnes 545ca95068
Read thinking state from the payload and show the effort level
The indicator read alwaysThinkingEnabled from settings.json, which Option+T
never writes - it toggles thinking for the session only. The key was also
absent here, so `// false` pinned the segment to the hollow "off" diamond
while thinking was actually on: an inverted indicator, not just a stale one.

Claude Code pipes the live state in as .thinking.enabled, alongside
.effort.level. Read both, in one jq pass since the line re-renders on every
redraw. Absent thinking means enabled, matching the renderer's own
`thinking:{enabled: lt !== false}`.

The effort level now replaces the static "thinking" label, so the segment
says something that changes: "◆ high" rather than a word that was there
either way. Unrecognised levels fall back to the old label, since the wrap
branch sizes line one from this string.

Test widths are usable widths, not raw terminal widths: the tiers are
computed after padding is subtracted, so a raw width would change tier
whenever statusLine.padding did. The usage cache is seeded for the same
reason width_test.sh seeds it - an unseeded cache makes the first render
fetch live usage over the network.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-02 20:17:12 +01:00
..
run.sh Read thinking state from the payload and show the effort level 2026-09-02 20:17:12 +01:00
statusline.isaacaudet.cache_test.sh Back off after a failed usage fetch instead of retrying every redraw 2026-09-02 13:22:52 +01:00
statusline.isaacaudet.overflow_test.py Wrap the status line rather than drop the per-model limit 2026-08-31 18:54:02 +01:00
statusline.isaacaudet.payload_test.sh Wrap the status line rather than drop the per-model limit 2026-08-31 18:54:02 +01:00
statusline.isaacaudet.thinking_test.sh Read thinking state from the payload and show the effort level 2026-09-02 20:17:12 +01:00
statusline.isaacaudet.width_test.sh Measure line one's branch budget instead of assuming 56 columns 2026-08-31 19:01:24 +01:00