Reload auth storage after Codex account switch - #1
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe ChangesCredential Reload Fix
Estimated code review effort: 1 (Trivial) | ~5 minutes PoemA rabbit hopped through switched-out keys, 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
auth.jsonduring/codex switchctx.reload()so the current process picks up the switched Codex accountWhy
ctx.reload()reloads extensions/resources, but pi keepsauth.jsoncached inAuthStorage. Without reloading that cache, the process can keep using the previous Codex credential until pi fully exits and starts again.Testing
bun run typecheckbun testSummary by CodeRabbit