@tmr11235 on X (magpie v0.1.4520):
1. "The model test works, but the account says there is no CLI."
Usage held its "agy CLI not found" error for the backoff, which grows
from 10 minutes to 6 hours. A read made before agy was installed kept
saying "not found" for hours after a sign-in installed agy, while
chats and model tests already ran through it. Now:
- no agy found is never held;
- a held failure belongs to the agy path it was held for, so an agy
found since is read on the next refresh;
- the message says how magpie gets agy (sign in again), in noAgy's
words.
2. "After removing it and signing out, 登录 restored the account with no
sign-in, shown as API key." magpie's remove/sign-out deletes only
magpie's record. agy on the computer stays signed in, so 登录 adopts
that sign-in again with no browser (method 0's "auto"). That part is
by design. The "API key" label came from a sign-in saved without an
email: agy's keyring value names its account in id_token_email, and
when it doesn't (or the read fails), the saved record had no
metadata.email. pluginLabels then falls back to the record's type,
"API key". signedInAs now asks Google's userinfo with agy's own
access token when the stored value names no account, so the account
is listed under its email. An account saved before this keeps its
label until its next sign-in (登录 on it), which saves the email.
Their later quota "as of 2026/11/15, couldn't be read just now" is not
this: "not found" isn't a passing error, so magpie shows it rather than
an old reading. The read behind it fails with a timeout, 429 or network
error that magpie stood an old reading in for; magpie now says which
beside the date (magpie, readError).
Run (at origin/main bb849910 + this commit):
- mote, HOME=$(mktemp -d): packages/agy-cli `bun test`: 41 pass, 0 fail (3 files, 132s)
- test/usage.mjs alone: 46 pass, 0 fail. test/signin.mjs alone: 8 pass.
- The two new usage tests on the old usage.mjs (origin/main's), by hand:
both fail. signedInEmail's test fails there too (no such export).
- Real: agy 1.5.10's stored access token on this Mac, Google's userinfo
answers 200 with the account's email (masked in the log).
- Real Claude Code 2.1.327 through a sandbox magpie (agy-cli 0.1.96,
agy 1.5.10, gemini-3.8-flash, file sign-in in a sandbox HOME), for
the cache report from @niyezaimenglima: first run with a Read call
48,427 of 78,349 input cached; a --continue run 30,296 of 33,088
cached; one agy session for the conversation. Not reproduced, so no
change here for it.
Not tried: the reporter's own keyring value (whether it lacks
id_token_email, or an env sign-in was set); Windows and Linux; the
sign-in flow end to end in the GUI with the userinfo fallback.