Skip to content

Companion Page context (codex_apps_open_page) attaches function_call_output without call_id to every message since Desktop 26.1106 — permanently bricks threads on strict /responses providers #61298

Closed as duplicate

Description

@zhyuzhyu

Summary

Since Codex Desktop 26.1106.51428, the composer attaches Companion Page context to every message submitted on an existing thread. The items are persisted to the rollout as function_call_output entries without call_id and are replayed in the request input, so any strict OpenAI-compatible /responses upstream rejects the entire request with 400 — and because the items persist and every new message re-attaches a fresh pair, the thread becomes permanently unusable.

This is a new source of the failure class tracked in #42088 (previously reported sources: automations #44723 / #41690 / #44519, subagent delegation #45914 / #43515, cross-thread prompts #45318, goal context #60420).

Environment

  • Codex Desktop 26.1106.51428 (macOS), bundled app-server
  • Custom model_provider with wire_api = "responses" pointing at an OpenAI-compatible relay (strict request validation, DeepSeek-compatible)

What gets injected

On every message submitted to an existing thread — even when no Page is open — two items land in the rollout and in the next request's input:

{"type":"function_call_output","id":"fco_…","name":"codex_apps_open_page","namespace":"agent","output":"{\"page_id\":null}"},
{"type":"function_call_output","id":"fco_…","name":"codex_apps_selected_page_part_1_of_1","namespace":"agent","output":"Companion Page snapshot part 1 of 1:\n{\"page_id\":null,\"document_view\":null}"}

In the minified composer code the attachment is unconditional for existing threads: it always includes codex_apps_open_page = {page_id: s} where s is null when no Page panel is visible; only the codex_apps_open_page_instructions item is conditional on a page being open.

Failure mode

  1. User sends a message → the two orphan items ride the next request.
  2. Strict upstream fails deserialization/validation on the dangling function_call_output (missing call_id, same as responses: function_call_output can be emitted without call_id and fails strict upstreams (400) #42088) → whole request 400.
  3. The items are persisted; retries replay them, and each new message attaches a fresh pair → every subsequent turn fails. The thread is bricked.

A detail that makes this look intermittent: the client appears to include the freshly attached pair only in the first request after a submission (subsequent in-turn requests filter them out — per-request history-vs-input item counts differ by exactly the two orphan items), so the failure consistently lands on "the request right after sending a message", not on every request.

Evidence that 26.1106 introduced it

  • 38 days of rollout history on this machine (198 files) contain zero such items before 2026-11-12.
  • The app updated to 26.1106.51428 at 11:18 local on 2026-11-12; the first injected item appears at 11:34 the same day.
  • Two long-lived threads created before the update (Nov 10 and Nov 11) had no such items until after the update, then gained them on their next messages — same thread, the items start exactly at the update boundary.

Reproduction

POST to a strict /responses endpoint with input = [the two items above] + [a plain user message] → 400. Remove the two items → 200.

Additionally observed on our particular upstream (marking as single-upstream evidence, not generalized): even a legal function_call/function_call_output pair named codex_apps_open_page with a matching call_id, and with the tool declared in the request's tools array, was still rejected — suggesting some gateways reject these synthetic agent-namespace attachments categorically, so fixing only the missing call_id may not be sufficient for this source.

Expected behavior

Workaround

A local normalizing proxy that strips (or rewrites into a plain developer-role message) the orphan codex_apps_* items before forwarding restores affected threads.

Related issues

Activity

  1. added
    bug
    app
    app-server
    custom-model
    on Nov 13, 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

    appapp-serverbugcustom-model

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions