Archivemylife on X: "没法sign in第二个账号,点击sign in again后过一会就
恢复原状,没有任何报错" and "配置后报存提示成功,再打开还是全部都启用".
Picks: while agy's model list wasn't known yet (agy missing, signed out,
or the probe still running), the models hook served the static or
Gemini-only catalog as if it were the real list. magpie relisted on
that, dropped the user's picks that weren't in it, and the editor came
back with every model on. The hook now marks such a list with
Symbol.for("magpie.fellBack"), so the host keeps the last good list and
the picks.
Second account: "Sign in again" with agy already signed in succeeded at
once with the stored sign-in, so nothing changed and nothing said why.
agy holds one Google account in its keyring. A second method, "Switch to
another Google account (agy holds one)" / "换一个 Google 账号(agy 只能
登录一个)", always runs agy's Google login, which replaces the stored
account. The sign-in result carries the stored id_token_email, so the
account is named by its email instead of "API key", and a switch shows.
READMEs say agy keeps one account.
magpie needs no change: it already keeps the last good list for a list
marked fell back, and shows a method picker for two methods.
Run:
- packages/agy-cli bun test (HOME=mktemp -d): 24 pass, 0 fail.
- test/smoke.mjs (AGY_BRIDGE_STORED_SIGNIN=skip): all ok.
- Red on the old index.mjs/signin.mjs with the new tests: signin red
(emailOf missing), catalog 3 fail (the three new tests), smoke BAD on
the two-methods check.
- Plugins root bun test (HOME=mktemp -d) on Linux (wsl-run,
magpie-desktop) at this tree: 8754 pass, 19 skip, 0 fail.
- Real magpie GUI in a sandbox HOME with this plugin installed: picked
two models, deleted the plugin's models.json and killed the plugin
host, POST /api/provider/models: before, count 2 and the pick
dropped; after, count 5, the pick kept, nothing delisted. "重新登录"
shows both methods in en and zh, no page errors, and the account is
named by its gmail address.
Not tried: signing a real second Google account in (it would change the
live agy keyring), Windows and Linux agy.