Repository navigation
Description
Provider details
- Provider: translated adapters, reproduced with Kiro
- OpenCodex: 2.44.0 at
af344a28eabcee09a5e04c48ab897449792719c2 - Codex Desktop/CLI: 0.153.4
- Endpoint:
POST /v1/responses - Model:
gpt-5.6-luna
Problem
Codex can start or resume another task by adding a valid Responses function_call_output that has an item id, name, namespace, and output, but deliberately has no call_id:
{
"type": "function_call_output",
"id": "fco_...",
"name": "create_thread",
"namespace": "codex_app",
"output": "<codex_delegation>...</codex_delegation>"
}This is external input for the destination task, rather than the result of a tool call made by that task. The OpenAI Responses passthrough already repairs this shape into user input. Translated adapters use the common Responses parser, which turns it into a tool result with an empty identity. The server then correctly rejects it with:
tool result requires a non-empty string call_id
This is the translated-adapter/Kiro case that remains after #3259.
Expected behavior
A structurally valid function_call_output or custom_tool_call_output without a usable call_id should become marked user input before adapter translation. Malformed orphan outputs must continue to fail closed, and identified outputs must remain tool results.
The rule should be based on the Responses item contract, without matching delegation XML, tool names, namespaces, or ID prefixes.
Proposed fix
Centralize the orphan-output repair shared by passthrough and the common parser. Preserve text, refusal content, images, and encrypted-content markers when converting valid orphan outputs. Keep malformed payloads as invalid tool results so the existing server guard rejects them.
A local implementation has been validated with:
- Responses parser tests: 65 passed
- Responses compaction/routing tests: 59 passed
- Kiro adapter tests: 81 passed
- OpenAI Responses passthrough tests: 160 passed
- Typecheck and
git diff --check - Live Codex smoke tests for task creation, a second message, a same-directory fork, and archive/unarchive
- The originally blocked task accepted a new inter-task message and entered normal processing instead of failing immediately
The broader test:changed run was stopped because it caused system-wide memory pressure and the Linux kernel terminated Chromium. It was not rerun; the targeted affected suites above completed successfully.
Activity
github-actions commentedon Sep 6, 2026
Issue closed: use an issue template
Thanks for taking the time to submit this issue. It was closed automatically because it was not opened with a recognized issue template (Bug report, Feature request, Documentation, or Provider compatibility). Freeform and API-opened issues cannot skip this check.
Please edit the issue to add:
See the Contributing guide for details.
Once the report passes the automated checks, it will be reopened automatically unless a maintainer has changed its state.