The ce5d9f9d4 review correctly restored replies whose account was first
named by a refresh. Its full-list fallback bypassed the ordering guard:
an older GET could restore the unnamed card, or the fallback could undo
another card's completed refresh.
Apply the fallback to its provider's cards (a remote summary's namespaced
children included), keep other providers, and preserve card refreshes that
completed since the request began. Mark the replaced keys as well as the
new cards, so an old response cannot resurrect the unnamed summary. Only
a serialized whole-page read retires the markers it no longer needs.
No changes to account reading, authentication, throttling or auto-refresh.
Verification on macOS arm64, Go 1.27.2, Bun 1.4.3, isolated homes/APIs:
- On ce5d9f9d4, four new ordering cases fail: renamed account vs old GET,
crossed card replies, a pending GET after another provider's completed
refresh, and a remote summary becoming child cards. All nine now pass.
- The real browser page on ce5d9f9d4 reverts 61% to 28% after the late
response. Named and unnamed cards now pass in both engines/all five
languages. 21 related frontend files pass 184/184; the whole GUI suite
was not run. The remote-card suite caught a missing namespace case in
the first draft; corrected and the 21-file run repeated successfully.
- Three-platform vet and darwin/linux-nogui/windows builds pass. Final
internal/gui Go tests pass after the namespace correction. Diff clean.
- Full go test -tags nogui ./... completed. The first isolation wrapper
made TMPDIR too long for the omarchy Unix sockets; shortening TMPDIR
makes that package pass. The unresolved failure is the already recorded
TestPluginSOCKSProxy HTTPS/dead-SOCKS response-vs-error mismatch. No Go
source or proxy paths changed; no full-suite-green claim.
Not tried: the native app or real account identity changes. These are
controlled response-order regressions, not the cause of the user's clicks
on the noninteractive reset-date glyph.
Review record (magpie maintainer session, on origin/main 429698f96, then
rebased onto fad96ea0f; sandbox HOME, private GOCACHE):
- gofmt -l clean; go vet darwin/linux/windows and the three builds pass.
- go test -tags nogui ./...: 52 packages ok at once. agent and gateway hit
the 10m default under load ~190, middleware's TestFailOpen was slow and
omarchy's sockets hit a long TMPDIR; rerun with a short TMPDIR and
-timeout 40m all four are ok. internal/gui ok again after the rebase.
- quota-refresh-order: on main's app.js cases 6-9 fail; patched 9/9.
Broken by hand, each red: no marker on replaced keys (6,8,9); an older
reply may restore a removed key (6,8,9); fallback skipping
keepRefreshedQuotas (7); remote children not matched (9); markers
retired inside keepRefreshedQuotas (8); belongs() always true (8).
- Full GUI suite in chromium and webkit, 5 languages, 1100/420. Reds also
red on main alone: usage-agents-hide and usage-fold (#2211, #2163),
usage-sum-whole ja/de 780px (#1864: main 1/3, patched 2/3; that test
serves no quotas). quota-name-translated and quota-pace goto timeouts
under load passed rerun. After the rebase quota-refresh-order and
usage-card-refresh pass 21/21 in both engines.
- Not tried: the native app or a real account whose identity changes.