mirror of
https://github.com/openai/codex.git
synced 2026-09-17 12:23:33 +00:00
## Why When an MCP server rejects existing OAuth credentials, reporting that the server is merely not logged in obscures that the user needs to authenticate again. ## What changed Pass the MCP startup failure reason into error formatting and report that the server requires OAuth reauthentication when appropriate. Preserve the existing recovery hint for either `codex mcp login` or the client's OAuth sign-in flow. ## Testing Cover the reauthentication message for both login flows and verify it in the streamable HTTP OAuth round-trip test. GitOrigin-RevId: 6f6d5fe7519b1a476f8b70d976223b2ea1ec938e