-
-
Notifications
You must be signed in to change notification settings - Fork 80.7k
[Bug]: Codex OAuth /btw still falls back to OpenAI Responses after /new #88902
Copy link
Copy link
Closed
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.ClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.Auth, provider routing, model choice, or SecretRef resolution may break.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.Channel message delivery can be lost, duplicated, or misrouted.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.no-staleExclude from stale automationExclude from stale automation
Description
Metadata
Metadata
Assignees
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.ClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.Auth, provider routing, model choice, or SecretRef resolution may break.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.Channel message delivery can be lost, duplicated, or misrouted.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.no-staleExclude from stale automationExclude from stale automation
Type
Fields
Priority
None yet
Summary
/btwcan still fail with a plain OpenAI Responses scope error in a Codex/ChatGPT OAuth setup, even on a build that includes the native Codex side-thread fix from #80493.Observed user-visible error from a Telegram DM:
This looks like the old #80469 failure mode reappearing in an uncovered path:
/btwappears to hit public OpenAI/v1/responseswith a Codex OAuth token instead of routing through the active Codex app-server side-thread transport.Environment
2026.5.28 (e932160)openai-codex:<email>OAuth / ChatGPT subscription, not an OpenAI API key{ "auth": { "profiles": { "openai-codex:<email>": { "provider": "openai-codex", "mode": "oauth" } }, "order": { "openai": ["openai-codex:<email>"] } }, "agents": { "defaults": { "models": { "openai/gpt-5.5": { "agentRuntime": { "id": "codex" } } } } } }Repro
openai/gpt-5.5through the Codex runtime and Codex OAuth./new./btw ...side question./btwfails with the 401api.responses.writemissing scope error above.In the observed case, the normal non-
/btwturn immediately after/newworked fine via Codex OAuth. Only/btwfailed.Expected
For Codex-backed OpenAI models using ChatGPT/Codex OAuth,
/btwshould use the same effective Codex app-server/native side-thread auth path as the active session. It should not call public OpenAI Responses with the Codex OAuth token.Actual
/btwreports the public OpenAI Responses missing-scope error, which strongly suggests it bypassed the native Codex side-thread path or fell back to the generic OpenAI provider path.Related
/btwuses plain OpenAI Responses with Codex OAuth instead of active Codex transport #80469 reported the original version of this issue./btwparent thread lookup after compaction checkpoints, though this report is specifically theapi.responses.writefallback symptom.Notes
The installed local build does contain
dist/side-question-*.jswithrunCodexAppServerSideQuestion, so this is likely a regression, routing condition miss, or fallback path after/newrather than simply running an old pre-fix build.