Repository navigation
fix: explain an unreachable ChatGPT backend as a connection failure - #697
Merged
EugeneTheDev merged 1 commit intoOct 28, 2026
Merged
Conversation
A ChatGPT login looks up its workspace on chatgpt.com before each model request. When that fails, the turn ended with the bare text "workspace routing discovery failed", reported to AIR as a service error. Explain the likely cause and report it as a connection failure, with the retry and new session actions. IJAI-5147
EugeneTheDev
deleted the
eugenethedev/ijai-5147-routing-discovery-failure
branch
October 28, 2026 21:17
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
With a ChatGPT login, Codex looks up the workspace on
chatgpt.com(accounts/check) before each model request. When that call fails (network, proxy, VPN, firewall), the turn ends with the bare textworkspace routing discovery failed(ortimed out). AIR reports it as aserviceerror with only Retry.This change:
connectionfailure, with the Retry and New session actionsCodexThreadErrors, so the session-open and turn handling read from one listReproduced with real Codex 0.165.0 by pointing
chatgpt_base_urlat a local stub that answers 503. The output matched the report:Reconnecting… n/5,Falling back from WebSockets to HTTPS transport…, then the terminal error.This only changes what the user sees. The connection failure itself is outside the adapter.
IJAI-5147