From b363327d4e879302c62411e84f89b492ec338f07 Mon Sep 17 00:00:00 2001 From: yetone Date: Tue, 6 Oct 2026 03:48:04 +0800 Subject: [PATCH] provider: a logins.json magpie can't read keeps the accounts read before, and one that doesn't parse is copied aside before it is written over, not read as no accounts readLogins dropped filememo.Read's error and json.Unmarshal's, so a file half there (a write by another process, a disk hiccup) read as an empty list, and the next add, switch or sign-out wrote that list back: every account gone. d5619d5a only retried for 15ms. Now a failed read returns the accounts last read or written (a missing file is still none), and writeLogins copies a file that doesn't parse to logins.json.bad-