Skip to content

fix: accept Codex parallel tool policy with built-ins - #191

Merged
franciscojavierarceo merged 3 commits into
mainfrom
codex/fix-codex-parallel-builtins
Aug 20, 2026
Merged

franciscojavierarceo merged 3 commits into
mainfrom
codex/fix-codex-parallel-builtins

Conversation

@franciscojavierarceo

@franciscojavierarceo franciscojavierarceo commented Aug 20, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • preserve the Responses API caller's parallel_tool_calls value when built-in tools are declared
  • remove the local rejection/defaulting introduced by PR #128
  • cover true, false, omitted, built-in-only, and mixed tool declarations

Related issue: #190

Codex normally sends parallel_tool_calls: true. OpenAI's parallel function-calling contract allows supported models to parallel-call functions while built-in tools are available; a built-in tool simply cannot be included in the same parallel function-call batch. Agentic API already routes gateway-executed built-ins separately, so rejecting the request at normalization is unnecessarily stricter than the wire contract.

Test Plan

  • cargo fmt --all -- --check
  • cargo test -p agentic-server-core --quiet
  • cargo test --workspace
  • cargo clippy --all-targets -- -D warnings
  • uv run --with pre-commit pre-commit run --all-files

All listed checks passed locally. The full core suite reported 358 passed and 3 ignored tests; the workspace suite reported zero failures.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Preserves callers’ parallel_tool_calls policy when built-in tools are normalized for vLLM.

Changes:

  • Removes built-in-tool rejection and forced serial defaults.
  • Adds coverage for true, false, omitted, built-in-only, and mixed tools.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@franciscojavierarceo
franciscojavierarceo merged commit adc7291 into main Aug 20, 2026
6 checks passed
franciscojavierarceo added a commit that referenced this pull request Aug 21, 2026
- restore the clippy allows for Rust 1.98 that the #191 revert removed
  (main is red on `cargo clippy -D warnings` without them)
- advertise supports_parallel_tool_calls=false in the Codex catalog again,
  since the gateway rejects it with built-in tools after the revert

Co-Authored-By: Claude Fable 5 <[email protected]>
Signed-off-by: Francisco Javier Arceo <[email protected]>
franciscojavierarceo added a commit that referenced this pull request Aug 21, 2026
Reference #197 (serialized parallel tool calls) instead of the reverted
#191 in the Codex catalog comment and the harness testing guide.

Co-Authored-By: Claude Fable 5 <[email protected]>
Signed-off-by: Francisco Javier Arceo <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants