#4498·9router

Responses: output items are missing their status field and validating clients abort every tool call

Author: Christian-GennariCreated Sep 30, 2026Updated Sep 30, 2026

Bug

The openai to openai-responses translator emits response.output_item.added and response.output_item.done events whose items carry no status field, for message, reasoning, function_call and custom_tool_call items alike.

The Responses API puts a status on every output item: "in_progress" while the item streams, "completed" in the done event and in response.output.

Impact

Clients that validate the event stream reject these items and kill the run. opencode v1.x (OpenAI SDK) aborts on the first tool call with Tool execution aborted and reports the tool input as empty, on every route that lands on this translator (reproduced with the deepseek pool combo served through a commandcode upstream).

Root cause

In open-sse/translator/response/openai-responses.js, the item objects built in startReasoning, closeReasoning, emitTextContent, closeMessage, emitToolCall and closeToolCall are emitted without a status field. Nothing else is wrong with the stream: in the captured failing stream the ids, names and argument fragments all parse, only the status is missing.

Isolated with a transforming proxy that replays a captured stream into a real opencode client: adding the status field turns every tool call green (3/3 runs, read and bash tools), while renumbering output_index changes nothing.

Fix

Emit status: "in_progress" on added and status: "completed" on done for every output item type, and let response.completed pick the field up through the completed item records.

A PR with the change and unit coverage follows.