gui: a card's Refresh says the read's failure, and Claude Code's first-run screens say what to do (#4817, uiuing)
From uiuing's branch (1eeb8928b, 66818dbf6), adapted. A usage card's
Refresh showed nothing when the read came back as a card with an
error: only a thrown request reached status. quotaRefresh now says the
refreshed card's error through quotaError, for a single account and
for a provider whose cards were replaced (the one kept in quotas).
quotaError reads the helper's new "stays on its first-run screens" and
an older magpie's "shows its first-run notes" as "Finish Claude Code's
first-run setup, then refresh", in en, zh, zh-TW, ja and de. Comments in
quotaError and quotaRefresh were cut so the core scripts stay in their
budget (1,533,732 of 1,533,802; main was at 1,533,780), with no raise.
Run at the pushed head, on mote: node --test of claude-quota-onboarding,
quota-refresh-order, usage-card-refresh, usage-refresh,
usage-refresh-flight, account-refresh, editor-quota-quiet,
usage-no-reading, usage-remote-cards, tray-usages, glm-quota-error,
claude-usage-asked, allowance-open-read, api-key-usage,
key-balance-card, copilot-signed-out-account, signin-again, plugin-git
and i18n-keys (chromium and webkit, every language each file runs, 440px
where it sets it): 287 of 287.
go test -run 'Budget|I18n|Lang' ./internal/gui ok.
go test -run "Claude|TUI" ./internal/gateway ok. The full
./internal/gateway (-timeout 45m, before the rebase onto 6b3a6d42c) is ok but for
TestCodexPoolSaysTheClientsVersion, #4807 (another test's Codex
identity reaches it in a full run); nothing Claude or GUI.
Broken by hand: without the new status line, 13 of the 31 tests in
claude-quota-onboarding and quota-refresh-order go red (all ten
engine/language cases and three VM ones).
Not tried: the real app's card against a real signed-in Claude Code
that stays on its notes.
Co-authored-by: 胡峻果 <uiuing@foxmail.com>
This commit is contained in:
@@ -70,6 +70,21 @@ languages, at 440 and 360px.
|
||||
Redrawing the cards preserves their refresh controls and any running turn.
|
||||
The reply updates the reading immediately; the icon then finishes its
|
||||
current full turn before stopping (no rotation under reduced motion).
|
||||
A manual refresh whose HTTP reply succeeds but whose requested card has
|
||||
an error reports that error through the status line too (#4817), including
|
||||
when the card already showed it. Errors on other cards in the reply do
|
||||
not become the requested account's error. An unnamed provider or remote
|
||||
summary that gains named cards reports only failures accepted from that
|
||||
reply; an older error replaced by a newer reading is not reported again.
|
||||
Claude Code's first-run screens are gone through by the helper itself
|
||||
(claude-subscription-bridge.md); one it can't get past ends the read, and
|
||||
that is said on the editor row, Usage card, tray card and refresh notice:
|
||||
finish Claude Code's first-run setup, then refresh; `magpie claude-code`
|
||||
names the executable, including a build magpie downloaded. The original
|
||||
error stays in the card's tooltip, and the read never falls back to `-p`.
|
||||
`claude-quota-onboarding.test.cjs` presses the active account's button in
|
||||
both engines and all five languages, with an account error in a successful
|
||||
HTTP reply, then a successful read after setup and an unrelated card error.
|
||||
|
||||
### Streamed output speed
|
||||
|
||||
|
||||
Reference in New Issue
Block a user