From 0956ca49d7a61503b2a48861e132f24fc9e4fa07 Mon Sep 17 00:00:00 2001 From: yetone Date: Sat, 31 Oct 2026 11:54:25 +0800 Subject: [PATCH] gateway: Codex's own sign-in asks again after a connection dropped with no reply MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit aetrox333 on Discord: on Codex, bare gpt-6-luna and gpt-6.1-terra failed with 502 "OpenAI can't be reached (Post …: EOF)" after 43ms every time, through a fake-IP proxy (chatgpt.com at 198.18.0.12), while auto/gpt-6-luna and auto/gpt-6.1-terra answered 200 every time. Cause: a bare Codex model goes to ChatGPT on Codex's own sign-in (codexUpstreamOn), which ended the turn with 502 at the first transport error. Go's transport sends a POST again by itself only on a reused connection (replayable, #2136), so an EOF on a fresh one, a proxy closing it before a byte of a reply, came straight back to Codex. auto/ and codex/ go through the accounts loop, which takes the same 502 as passing and asks again after a pause on a new connection, or asks the group's next member. Both routes share one client, transport, proxy choice and HTTP/1.1; a recorded diff of the two requests showed no difference that would change how a proxy treats them (the routed one adds instructions, Openai-Beta, Session-Id and its own token). Now a dropped or reset connection with no reply on the own sign-in's /responses is asked again, retryPause<