Skip to content

Codex App: side-conversation handoff inserts null call_id and permanently breaks parent thread #62054

Closed as not planned

Description

@YHHD

Codex side-conversation handoff corrupts parent thread with null call_id

Summary

Sending a message from a side conversation to its parent thread via
send_message_to_thread appends a malformed function_call_output item to the
parent thread. The item has call_id: null. The next parent-thread request fails
before reaching the model with:

input[467].call_id: expected a non-empty string

The parent thread then fails consistently on subsequent attempts.

Environment

  • macOS: 26.6.2 (25G83)
  • ChatGPT/Codex app: 26.1111.21308 (build 27194)
  • Codex Framework: 157.0.8103.78
  • Surface: Codex app, side conversation → parent thread
  • Tool: send_message_to_thread

Reproduction steps

  1. Open an existing Codex parent thread.
  2. Create a side conversation from that thread.
  3. In the side conversation, send a message to the parent using
    send_message_to_thread.
  4. Return to the parent thread and send any follow-up message.

Actual result

The parent thread fails with:

input[467].call_id: expected a non-empty string

Local session evidence:

function_call count:        154
function_call_output count: 154 matched + 1 unmatched
unmatched item:
  type: function_call_output
  name: send_message_to_thread
  call_id: null

The malformed item is the 467th input item. Repeated attempts produce the same
failure.

Expected result

  • The parent thread should receive the side-conversation message.
  • The parent thread should continue normally.
  • The synthetic handoff item should have a valid non-empty call_id, or should
    not be represented as a function_call_output if it has no corresponding
    function call.

Impact

  • Side-conversation handoff to a parent thread is unusable.
  • The parent thread becomes effectively read-only because every new turn sends
    the malformed history to the API and fails validation.
  • The only recovery is to start a new main thread; forking the broken thread may
    copy the bad history.

Workaround

  • Do not use send_message_to_thread from a side conversation into a thread
    that must remain usable.
  • Write a handoff document to the workspace instead.
  • Start a fresh parent thread and reference the handoff document.
  • Do not reuse or fork the corrupted parent thread.

Suggested fix

  • Generate a unique non-empty call_id for the synthetic
    send_message_to_thread output and pair it with a matching function call; or
  • Represent side-conversation notifications as a normal user/system message
    rather than function_call_output.
  • Add validation/migration to detect a function_call_output with a null or
    empty call_id and repair/skip it when loading an existing thread.

Notes

This report intentionally contains no conversation contents, credentials, or
server secrets.

Activity

  1. added
    bug
    app
    session
    tool-calls
    on Nov 17, 2026
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

    appbugsessiontool-calls

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions