Skip to content

[Responses] Translated adapters reject valid Codex task input without call_id #3732

Closed as not planned

Description

@yrlan-montagnier

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

  1. github-actions commented on Sep 6, 2026

    @github-actions
    Contributor

    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.

    • This issue does not use a recognized issue template.

    Please edit the issue to add:

    • Open a new issue with the Bug report, Feature request, Documentation, or Provider compatibility template.
    • Or edit this issue so the body uses the template section headings for the kind of report you are filing.

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions