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.
Summary
Responses custom tool results were rejected whenever
outputwas an array, even when it contained only text. This could interrupt Codex after a successful tool call withCannot translate multimodal custom_tool_call_output.Handle
custom_tool_call_outputthrough the same output conversion asfunction_call_outputin both the Chat Completions and Anthropic Messages translators. This supports text arrays, empty results, and images while preserving tool-call IDs and result ordering. Chat Completions places images after the complete tool-result group; Anthropic Messages keeps them insidetool_resultand preserves incomplete status.Regression coverage includes structured output conversion, image handling, unsupported file outputs, and two-turn HTTP continuations using
previous_response_idthrough both target protocols.Validation
All 125 tests across the two request translator suites and the Responses HTTP suite passed.