You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor account auth updates to avoid overwriting newer state with stale snapshots. Introduces shouldApplyAuthSnapshot(_:over:) which decides when to apply an incoming CodexAccount snapshot (e.g. when tokens are missing, snapshot has newer successful/last refresh timestamps, or tokens changed while existing state needs reauth). Only updates planType/accountId when meaningful, updates tokens and timestamps conservatively, and resets refresh-failure counters when tokens actually change or the account needed reauth. Persist and return the updated account after applying the safe merge.
0 commit comments