The reporter's own experiment through magpie to the same upstream: a
function_call with no function_call_output was turned away with exactly
the reported 400, and the same request with the output went through.
Volcengine checks the exchange on the chat form it turns /responses into.
The Chat path has mended this shape since #1275 (pairToolMessages); the
Responses relay had only orphanedToolOutputs, which handles the opposite
case (a result with no call).
pairToolItems runs beside orphanedToolOutputs for every Responses request
not going to a ChatGPT account. A function_call or custom_tool_call that
no result in the input answers gets "[The result of this tool call is
unavailable: the turn was interrupted.]". As in the Chat path, that result
goes at the end of the run of calls and results the call is in, so no
result lands between two parallel calls. A result with no call is still
left to orphanedToolOutputs. A result naming a call from an earlier request
(previous_response_id) stays as it is. Based on ggbdpq's patch on the
issue, which put the result right after the call.
TestResponsesRelayAnswersALoneCall (through the whole gateway) fails
without the change ("the lone call went unanswered") and passes with it.
TestPairToolItemsAnswersALoneCall covers parallel calls, custom calls,
byte-for-byte pass-through of paired, out-of-order and
previous_response_id requests, and that the caller's buffer is left
alone. go test -tags nogui ./internal/gateway under a temp HOME passes, as
do go vet (darwin, linux, windows) and gofmt. Not tried against the real
Volcengine coding plan: the only Volcengine key here is a pay-as-you-go
Ark key with no DeepSeek model enabled. The reporter's Codex rollout shows
every call paired, so which call went unanswered in their request is not
known. They are asked whether it still happens.