Skip to content

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

Closed

Description

@zachthedev

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.

Activity

  1. added a commit that references this issue on Jun 17, 2026
    151521c
  2. added a commit that references this issue on Oct 20, 2026
    43a7a40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions