Agents: enable Codex parallel tool calls#53819
Agents: enable Codex parallel tool calls#53819sasan1200 wants to merge 2 commits intoopenclaw:mainfrom
Conversation
Greptile SummaryThis PR enables
Confidence Score: 5/5
Reviews (1): Last reviewed commit: "fix(test): pass modelApi through to appl..." | Re-trigger Greptile |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3f7c1b45b8
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
3f7c1b4 to
894e6bb
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 894e6bb799
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
Closing this as implemented after Codex review. Current What I checked:
So I’m closing this as already implemented rather than keeping a duplicate issue open. Review notes: reviewed against 8f64cd3e4d83; fix evidence: commit 40be5ad58187. |
Summary
Describe the problem and fix in 2–5 bullets:
src/agents/pi-embedded-runner/extra-params.tsappliedparallel_tool_callstoopenai-completionsandopenai-responses, but notopenai-codex-responses.openai-codex/gpt-5.3-codexsessions could serialize tool work by default, leading to extra assistant/tool rounds and unnecessary prompt replay costs.parallel_tool_callstoopenai-codex-responsesand defaultsopenai-codextoparallel_tool_calls: trueunless explicitly overridden.parallel_tool_calls: false/nulloverrides still win.Change Type (select all)
Scope (select all touched areas)
Linked Issue/PR
User-visible / Behavior Changes
openai-codexembedded runs now default to parallel tool calls on the responses API path unless explicitly disabled. This should reduce serialized tool loops and prompt replay cost for Codex workflows.Security Impact (required)
Yes/No) NoYes/No) NoYes/No) NoYes/No) NoYes/No) NoYes, explain risk + mitigation:Repro + Verification
Environment
openai-codex/gpt-5.3-codexopenai-codex:defaultauth + model store; minimal config pinned toopenai-codex/gpt-5.3-codex; plugins disabledSteps
origin/mainworktree with isolated state.toolUseturns, and summed assistant token usage.Expected
Actual
origin/main:19assistant turns,17toolUseturns,1,414,601assistant tokens13assistant turns,12toolUseturns,961,260assistant tokens-31.6%assistant turns,-29.4%toolUseturns,-32.0%assistant tokensEvidence
Attach at least one:
Human Verification (required)
What you personally verified (not just CI), and how:
origin/mainexcludedopenai-codex-responsesfromparallel_tool_callshandling insrc/agents/pi-embedded-runner/extra-params.ts.pnpm test -- src/agents/pi-embedded-runner-extraparams.test.tsafter adding Codex regression coverage.openai-codex/gpt-5.3-codexworkflow onorigin/mainand on this branch, then recomputed metrics from the settled transcript files.parallel_tool_callsvalues for Codex responses.openai-codex.falsestill disables the default.Review Conversations
If a bot review conversation is addressed by this PR, resolve that conversation yourself. Do not leave bot review conversation cleanup for maintainers.
Compatibility / Migration
Yes/No) YesYes/No) NoYes/No) NoFailure Recovery (if this breaks)
parallel_tool_calls: falsefor the affected Codex model/provider config, or revert this commitsrc/agents/pi-embedded-runner/extra-params.tsRisks and Mitigations
List only real risks for this PR. Add/remove entries as needed. If none, write
None.parallel_tool_calls: falsestill disables the new default, and the patch scope is limited toopenai-codexresponses.