Files
cc-switch/src-tauri/tests
Jason 2c2d6c43c1 fix(codex): show the on-disk login in the official card's auth.json editor
Editing a Codex official card showed the row's stored `auth`, which is the
OAuth snapshot older versions backfilled. Switching no longer backfills, so
once Codex rotates its tokens the editor displayed an access token that no
longer matched ~/.codex/auth.json. Follow-login cards (empty row auth)
showed an empty object instead of the current login.

For official cards not bound to a managed account, the auth.json box now
shows what auth.json will contain after switching to the card, predicted
read-only from the same login plan the switch uses. Saving without touching
the box keeps the row's original auth, so opening and saving neither binds a
follow-login card to the current account nor stores soon-to-expire tokens.
Switching never wrote the stale snapshot over the same account's login, so
the live file was not affected.
2026-10-19 18:01:47 +08:00
..