mirror of
https://github.com/openai/codex.git
synced 2026-09-17 12:23:33 +00:00
## What changed - Add `AnalyticsSession` to load local ChatGPT credentials, bind requests to the initial account and user, and reject identity changes before requests or when accepting results. - Reload credentials and provide bounded recovery for unauthorized requests, using a backend client that disables redirects. - Add lazy TUI analytics session initialization, account display metadata, and plan-specific credit groupings for future dashboard integration. ## Testing Add regression tests for account and user changes, missing or API-key-only authentication, credential reloads, recovery after a `401` response, and session initialization after signing in. GitOrigin-RevId: 2ba0d96fb44936d12d13aedffc3f2e61aedea560