Files
magpie/internal
yetone 014fbdbc0c provider: Codex set to keep its sign-in in the keychain is told so, not "isn't signed in here" (#2312, Dony2050)
With cli_auth_credentials_store = "keyring" (or "auto" where there is a
keychain) in Codex's config.toml, Codex 0.162 saves its ChatGPT sign-in
to the system keychain and removes auth.json
(codex-rs/login/src/auth/storage.rs). magpie reads Codex's sign-in only
from auth.json, so Codex's saved accounts were withheld with "it isn't
signed in here (nothing at …/auth.json) … Sign in (codex login)", while
`codex login status` said it was signed in, and signing in again changed
nothing.

The reason now names the setting and its file, says magpie reads only
auth.json, and says how to put the sign-in there: set
cli_auth_credentials_store = "file" and run codex login. Unset, "file",
or a config.toml that can't be read keeps the old reason.

Reading and writing Codex's keychain item (refresh, switch, removal) is
not done here: that item is Codex's own, and magpie's account switch
works by writing auth.json, which Codex in keyring mode doesn't read.

Tested: TestSavedButSignedOut gains keyring and auto cases (and file,
which keeps the old reason). With logins.go put back it fails at the
keyring case with the old "isn't signed in here" reason. No real
keychain or ~/.codex was read; the test runs under a temp HOME.

Full suite: SUITE_LINE
2026-10-15 23:08:01 +08:00
..
…
…
…
…
…
…
…
…
…
…