-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Custom menu-bar cost tokens stay stale after token-cost refresh #2300
Copy link
Copy link
Closed
Labels
P2Normal priority bug or improvement with limited blast radius.Normal priority bug or improvement with limited blast radius.impact:ux-frictionUser-facing flow adds avoidable confusion or support burden without fully blocking progress.User-facing flow adds avoidable confusion or support burden without fully blocking progress.issue-rating: 🦪 silver shellfishThin issue quality; more reproduction proof or environment detail is needed.Thin issue quality; more reproduction proof or environment detail is needed.
Description
Metadata
Metadata
Assignees
Labels
P2Normal priority bug or improvement with limited blast radius.Normal priority bug or improvement with limited blast radius.impact:ux-frictionUser-facing flow adds avoidable confusion or support burden without fully blocking progress.User-facing flow adds avoidable confusion or support burden without fully blocking progress.issue-rating: 🦪 silver shellfishThin issue quality; more reproduction proof or environment detail is needed.Thin issue quality; more reproduction proof or environment detail is needed.
Summary
Cost Todayand30d Costin a custom menu-bar layout render from token-cost snapshots. Publishing a new token snapshot invalidates menus, but does not enter the menu-bar icon/title refresh path. The displayed cost can therefore remain–or stale until an unrelated usage or settings change occurs.Source path
StatusItemController+MenuBarLayoutreads the current provider token snapshot to renderCost Todayand30d Cost.UsageStore.menuObservationTokenobserves token snapshots and causes menu invalidation.UsageStore.iconObservationTokenand the corresponding icon-observation signature do not include token snapshots or their cost values, so they do not request a title refresh for a cost-only update.Reproduction
Cost Todayor30d Cost.Expected behavior
The rendered menu-bar title should update when the cost value used by the active layout changes.
Suggested acceptance criteria