Fixed integration with OpenAI Codex (v0.114.0) with gpt-5.4#41
Open
dabogee wants to merge 2 commits intoCaddyGlow:mainfrom
Open
Fixed integration with OpenAI Codex (v0.114.0) with gpt-5.4#41dabogee wants to merge 2 commits intoCaddyGlow:mainfrom
dabogee wants to merge 2 commits intoCaddyGlow:mainfrom
Conversation
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.
Fix Codex proxy compatibility for HTTP, WebSocket. Integration with Microsoft Agent Framework, CrewAI and OpenAI Agents SDK has been validated.
Summary
This PR extends the Codex proxy compatibility work beyond the original HTTP and WebSocket fixes. In addition to making native Codex Desktop /
codex exectraffic work end-to-end, it adds support for OpenAI-compatible multi-agent workflows, improves bypass-mode behavior, and makes mock responses format-aware across chat, responses, and Anthropic routes.After these changes:
POST /codex/v1/responsessucceeds through the proxyPOST /codex/v1/chat/completionssucceeds through the proxycodex execworks throughOPENAI_BASE_URL=http://127.0.0.1:8000/codex/v1/codex/v1/modelsWhat Was Broken
400 Bad Request/codex/v1/modelsdid not expose the richer model metadata expected by Codex Desktopresponsesprevious_response_id, which upstream rejected/chat/completionsvs/responsesTests
Added or updated coverage for:
openai_thinking_xmlformat_chainand endpoint fallback/modelscompatibility pathsValidation
Previously validated flows remain:
uv buildPOST /codex/v1/responsesreturned200withOKPOST /codex/v1/chat/completionsreturned200withOKcodex execthrough the proxy returnedOKPowered by gpt-5.4, reviewed by claude-4.5-sonnet, Junie