dotfiles/claude
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jonny Barnes f2dbe61276
Refresh the usage bars every 5 minutes, not every hour
The 5h/7d bars were served from a cache with a one-hour TTL, so a bar
could sit unchanged for most of a 5-hour window. The TTL is now a named
config setting next to GIT_CACHE_SECS at 300s: worst case 12 requests an
hour, shared across every session through /tmp/claude.

The section header claimed "cached 60s" — inherited from upstream and
never true here — which is what set the expectation the code did not
meet. It now names the setting instead of a number that can drift.

The refresh is gated on the same width-tier check as the bars, so a
render that shows them is a render that refreshes them: the new tests
pin that from full width down to WRAP_FLOOR, and pin that one column
below it, where the bars are dropped, no request is paid for either.
Those widths are given in usable columns, as in the sibling width test,
so the suite does not depend on the padding in the live settings.json.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-02 13:07:19 +01:00
..
tests Refresh the usage bars every 5 minutes, not every hour 2026-09-02 13:07:19 +01:00
statusline.burnrate.sh Fix Opus statusline hue rendering as black in light theme 2026-08-04 17:35:33 +01:00
statusline.isaacaudet.sh Refresh the usage bars every 5 minutes, not every hour 2026-09-02 13:07:19 +01:00
statusline.original.sh Switch Claude Code statusline to burnrate variant 2026-08-03 14:40:40 +01:00