Files
magpie/docs
yetone 248268ce4c codex: a switch of the preferred account leaves the Codex app running unless asked (Michael25651150 and ykj5353 on X)
After v0.1.3562 a switch of Codex's ChatGPT account made by hand in
magpie, between accounts that both had room, still ended the Codex
app's app-server with "Restart the Codex app when magpie switches its
account back" off. The app shows that as an error, relaunches, and
signs in as the new identity. ChatGPT.app 26.1103+ keeps its sidebar
projects per ChatGPT identity (electron-account-renderer-state-v1), so
on an identity that never had them it shows "没有项目" and every thread
under Recent: ykj5353's screenshot is the Codex app's sidebar, not
magpie's Sessions page.

codexAppStep no longer counts c.switched && !c.auto as by hand. Such a
switch is left running, logged, and the account rows' "still signed in
as" notice with its Restart is the way to follow, as for magpie's own
switch back. Still restarted with the tick off: a switch off a used-up
account (needed, the app greys Send there), Connect/Disconnect, the
takeover in and the takeover turned off by hand. RestartApp on restarts
on every switch as before.

Run (mote, at base 40ca0c88d; rebased onto bc0d9e873, whose provider changes touch no codex file): gofmt -l; go vet ./internal/provider for
darwin, GOOS=linux -tags nogui, GOOS=windows; go test -count=1
./internal/provider: ok (150.6s), vet ok on all three.

Broken by hand: putting `c.switched && !c.auto ||` back into byHand
turns TestCodexAppLeftRunningForMagpiesOwnChanges red ("switched by the
user after magpie: ended [101]").

Not tried: a real ChatGPT.app switch between two real accounts. Not
changed: during the takeover the app has no account and shows no
projects by its own rule; magpie can't fix that through the state file.
A user whose projects already went missing gets them back by quitting
the app fully and reopening it after ~30s, when carryCodexProjects
copies them to the current identity, if that identity has no project
list of its own yet.
2026-11-10 18:26:39 +08:00
..