codex/codex-rs/core/tests
Ahmed Ibrahim f31bd3adff Persist provider and auth identity with model catalog caches (#43897)
## What changed

Add a SHA-256 identity derived from provider routing, headers, and authentication scope. Return it with each model catalog response and persist it in `ModelsCacheEntry`. ChatGPT credentials with stable account and user metadata retain the same identity across token refreshes; opaque API credentials contribute to the digest.

## Testing

Add identity tests covering account, user, email, plan, auth mode, provider routing, headers, and API credential changes, plus stability across ChatGPT token refreshes. Update cache tests to include the persisted identity.

GitOrigin-RevId: 3f51c6cabcb01bc03505150a768a61dfe5d6569f
History 2026-09-08 19:48:37 +00:00
..
common Avoid WebSocket connection waits in Guardian v2 classification (#43408) 2026-09-07 09:24:03 +00:00
fixtures Organize bundled Rust resources under asset directories (#41477) 2026-08-29 06:05:28 +00:00
remote_env_windows Apply remote platform semantics to exec safety checks (#42113) 2026-09-01 18:24:56 +00:00
suite Persist provider and auth identity with model catalog caches (#43897) 2026-09-08 19:48:37 +00:00
all.rs [codex] Use expect in integration tests (#28441) 2026-06-15 21:53:47 -07:00
responses_headers.rs Sanitize credentials from Git remote metadata (#40713) 2026-08-25 21:34:05 +00:00