ccstatusline icon indicating copy to clipboard operation
ccstatusline copied to clipboard

usage cache is not invalidated on account/login switch (stale until TTL)

Open zachthedev opened this issue 5 months ago • 0 comments

fetchUsageData's cache (~/.cache/ccstatusline/usage.json) is keyed only by age (CACHE_MAX_AGE 180s), not by token. After a logout/login to a different account, renders serve the prior account's usage for up to 180s. Most visible to/from Enterprise (null windows).

Invalidate the cache on token change.

zachthedev avatar Jun 16 '26 02:06 zachthedev