Files
magpie/internal
yetone a09e967f53 providers: with no account removed, Hidden makes no account
Hidden read every sign-in (Accounts: Codex, plugins, Claude...) and
then kept those the user removed. The Providers page asks it twice a
poll (directly and through Excluded), and most users removed none; the
real account has none, so ~0.6 MB a poll was made for an empty answer.
It now looks at the saved file first and returns nil when nothing in it
is hidden.

Measured on mote with the real account copy, 40 asks of
/api/providers (aalloc.sh, alloc_space delta): 169.8MB (v0.1.3447) ->
146.6MB, -14%. CPU for 30 asks (aeach.sh): 0.65s -> 0.56s.

Run: go vet ./internal/provider; go test -count=1 -timeout 45m
./internal/provider ./internal/gui (ok, ok) on mote. New
TestHiddenNoneMakesNoAccount fails with the check taken out by hand
(254 allocations, its accounts 249) and checks a removed account is
still listed. Not tried: Windows and Linux (no OS-specific code).
2026-11-10 02:16:41 +08:00
..
…
…
…
…
…