Skip to content

Restore parallel tool calls for Codex OAuth - #578

Merged
ericdallo merged 1 commit into
editor-code-assistant:masterfrom
itkonen:fix/codex-parallel-tool-calls
Aug 24, 2026
Merged

Restore parallel tool calls for Codex OAuth#578
ericdallo merged 1 commit into
editor-code-assistant:masterfrom
itkonen:fix/codex-parallel-tool-calls

Conversation

@itkonen

@itkonen itkonen commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

Getting parallel tool calls work with Codex with OAuth proved much simpler than I feared. Oddly the API requires the "Responses Lite" API with codex-5.6 models, but then it advertises parallel support allowing to use the full Responses API when returning parallel tool calls. I bet it wasn't designed by humans.

Summary

  • preserve the explicit live combination of Responses Lite and parallel tool-call support, then use the ordinary Responses function-tool shape when batching is requested
  • retain all_turns reasoning context and function-tool visibility without enabling hosted web or image tools
  • keep existing Lite behavior for fallback, partial, disabled, and no-function-tool cases

Testing

  • clojure -M:test --focus eca.llm-providers.openai-test
  • clojure -M:test --focus eca.llm-api-test
  • clojure -M:test --focus eca.features.chat-test/concurrent-tool-calls-test
  • LC_ALL=C LANG=C bb test
  • clj-kondo --lint src/eca/llm_providers/openai.clj test/eca/llm_providers/openai_test.clj

Closes #572

🤖 Generated with ECA (openai/gpt-5.6-sol - xhigh)

Route explicitly parallel-capable Lite models through the ordinary Responses
function-tool shape, since the Lite endpoint requires serial tool calls.
Preserve the Lite path for fallback and partial model metadata.

🤖 Generated with [ECA](https://eca.dev) (openai/gpt-5.6-sol - xhigh)

Co-Authored-By: eca-agent <git@eca.dev>

@ericdallo ericdallo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good, LMK if any issues with that, thank you

@ericdallo
ericdallo merged commit 90e38e0 into editor-code-assistant:master Aug 24, 2026
9 checks passed
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.

Support parallel tool execution for Codex OAuth models

2 participants