Skip to content

Scope provider usage refresh errors to the affected account - #7777

Merged
ymichael merged 1 commit into
mainfrom
bb/fix-refresh-error-banner-thr_ffaenegmfy
Nov 18, 2026
Merged

ymichael merged 1 commit into
mainfrom
bb/fix-refresh-error-banner-thr_ffaenegmfy

Conversation

@ymichael

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

The Provider usage plugin discarded an individual provider’s error message and marked the whole machine as having failed to refresh. When OpenCode Go denied access to usage data, settings and the sidebar showed a warning above successful readings from Codex, Claude Code, and Cursor.

What changed

Settings and the sidebar now show the refresh error on the affected account. When that account has a cached reading, both views keep its limits visible and label them as the last update. Whole-view and source-wide failures can still show a shared warning.

How you verified

  • Extended the server regression test to cover a successful account, a failed account with cached limits, and a provider returning a subscription error without a cached reading.
  • Ran the Provider usage plugin’s Turbo test, typecheck, and lint tasks. All 23 tests passed. Typecheck passed. Lint reported one existing React Compiler warning.
  • Compared browser captures of settings and the sidebar with M4 usage data, including the All accounts and OpenCode tabs.

AGENT GENERATED

@ymichael
ymichael merged commit 8b5e4db into main Nov 18, 2026
33 checks passed
@ymichael
ymichael deleted the bb/fix-refresh-error-banner-thr_ffaenegmfy branch November 18, 2026 20:02
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.

1 participant