Skip to content

Fix agent usage resets, stale display, and icon underline alignment - #14225

Merged
dhh merged 3 commits into
quattrofrom
fix/agents-usage-display
Oct 4, 2026
Merged

dhh merged 3 commits into
quattrofrom
fix/agents-usage-display

Conversation

@dhh

@dhh dhh commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

Claude usage rows could disappear after their reset time, while an expired access token added a confusing “Limits paused” warning. Keep cached windows visible and reset elapsed windows to zero, including while the panel remains open. Show stale usage at normal opacity and put “Last updated … ago” in its tooltip. When a paused account has no cached limits, show “Usage unavailable” with recovery instructions on hover.

Also correct the bar’s open-panel underline alignment by snapping its position toward the start of the slot, matching the rendered icon.

Validation:

  • Claude usage limits and plan tests, agents panel tests, account autoswitch tests, and bar tests pass.
  • Verified the running panel and hover tooltip, and inspected enlarged screenshots of the corrected icon alignment.
  • git diff --check passes.

@greptile-apps

greptile-apps Bot commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[Medium risk] Fixes agent usage display and cache reset behavior.

The PR appears safe to merge; no outstanding finding or new actionable issue was identified.

Summary

The PR keeps cached Claude usage windows visible after reset, updates elapsed windows to zero while the panel remains open, moves stale-data age into tooltips, and adjusts the bar underline’s alignment. The follow-up adds recovery guidance for paused usage with no cached limits.

Diagram
%%{init: {'theme': 'neutral'}}%%
flowchart LR
  A[Claude limits cache] --> B[Collector resets elapsed windows to zero]
  B --> C[Agents panel]
  C --> D[Display available windows]
  C --> E[Show recovery placeholder when paused with no windows]
Loading

Reviews (2) · Last reviewed commit: "Show recovery guidance when paused usage..."

Comment thread shell/plugins/agents/Panel.qml Resolved
@dhh
dhh merged commit 4a568a1 into quattro Oct 4, 2026
1 check passed
@dhh
dhh deleted the fix/agents-usage-display branch October 4, 2026 11:15
ryanrhughes pushed a commit that referenced this pull request Oct 16, 2026
Fix agent usage resets, stale display, and icon underline alignment

(cherry picked from commit 4a568a1)

Backport note: v4-0-5 has no multi-account agents panel (#13770), so only
the elapsed-window reset and the underline alignment apply. The "Usage
unavailable" placeholder and stale-age tooltip changes are left out.
@emirb emirb added this to the 4.0.5 milestone Oct 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants