An idle magpie rewrote logins.json every seenEvery (10 minutes) only to
move each account's Seen time, and the write called Changed(): every
held catalog was dropped and filememo forgot what it had read, so the
next dsh round (KeepDshWired, every 30s) built the magpie models again,
~42 MB of the 62 MB a real account's idle magpie allocated in five
minutes. Nothing built from the accounts reads Seen.
rememberLogins now writes such a file quietly (writeLoginsTold with
tell false): no Changed(), no filememo.Forget. A reader still finds the
file's new time and size; a request holding it reads the old bytes for
up to a second. A write that changes anything besides Seen is told as
before.
Found with a traced build on mote, sandbox HOME holding a real Codex
account: the stamp moved at 00:59:41 from
keepHooksToldOfSignIns -> SignInAlertsAt -> Accounts -> rememberLogins
-> writeLogins -> Changed.
Run (mica): go test -count=1 -timeout 45m ./internal/provider
./internal/agent ./internal/filememo ok; go vet for darwin, linux and
windows ok; gofmt clean. TestSeenOnlyWriteBuildsNothingAnew is red with
the write always told (tell true), green with this change.