fix(agents): normalize openai-codex base URLs to /backend-api/codex#41347
fix(agents): normalize openai-codex base URLs to /backend-api/codex#41347pascalkienast wants to merge 3 commits intoopenclaw:mainfrom
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e435e782fb
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Greptile SummaryThis PR completes the Key changes:
Confidence Score: 5/5
Last reviewed commit: 4f5bc7b |
|
Closing as superseded by #69336, landed on The landed fix updates the built-in OpenAI Codex base URL to |
Summary
Fixes the remaining
openai-codexbase URL normalization drift behind #41282.Some shared
openai-codexruntime/model synthesis paths still allowedhttps://chatgpt.com/backend-apito survive, which meant resolvedopenai-codexmodels could still target the non-Codex path instead of the Codex-specific backend.This patch normalizes those paths to:
https://chatgpt.com/backend-api/codexIt also teaches the embedded runner normalization layer to treat legacy
/backend-api,/backend-api/codex, and/backend-api/codex/responsesinputs as Codex-compatible values that should normalize back to the Codex base URL.Closes #41282.
Related: #38706, #38736.
Changes
OPENAI_CODEX_BASE_URLdefaults to/backend-api/codexTesting
Result: 6 test files passed, 93 tests passed.
AI assistance
AI-assisted: yes (Codex was used for the initial patch and test updates).
Reviewed and validated locally before opening this PR.