mirror of
https://github.com/openai/codex.git
synced 2026-11-11 21:10:39 +00:00
## Why Session-opening failures were returned as strings, preventing callers from inspecting the terminal gRPC admission status directly. ## What changed - Add `GrpcCodeModeSessionProvider::open_session` returning `GrpcSessionOpenError`, distinguishing admission status codes, admission timeouts, and other setup failures. - Keep string errors for the existing `CodeModeSessionProvider` trait API. - Re-export `ProcessOwnedGrpcCodeModeSessionProvider` from `codex-core`. ## Testing Extend admission tests to assert terminal status codes, cover exhausted `ResourceExhausted` retries, and verify that `DeadlineExceeded` is not retried. GitOrigin-RevId: 9d7f2e733e12b8bb7def368fa5fc5a09ea2a374e