Repository navigation
Description
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_providerwithwire_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
- User sends a message → the two orphan items ride the next request.
- Strict upstream fails deserialization/validation on the dangling
function_call_output(missingcall_id, same as responses: function_call_output can be emitted without call_id and fails strict upstreams (400) #42088) → whole request 400. - 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
- Same asks as responses: function_call_output can be emitted without call_id and fails strict upstreams (400) #42088: emit
call_id, or drop dangling outputs, or normalizeinputbefore send. - Additionally for this source: consider gating Companion Page context attachment (or its dialect) on the official backend, and/or expose a setting to disable it — the snapshot is attached even when no Page is open, where it carries no information (
page_id: null).
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
- responses: function_call_output can be emitted without call_id and fails strict upstreams (400) #42088 — umbrella:
function_call_outputwithoutcall_idfails strict upstreams - function_call_output for send_message_to_thread is persisted without call_id, breaking strict Responses API providers #45914, Automations (heartbeat & cron) inject a
function_call_outputwithoutcall_id, permanently breaking the target session (400 missing field call_id) #44723, Codex Desktop: cross-thread prompts recorded asfunction_call_outputwithoutcall_idcause request rejection #45318, Codex Desktop automation + DeepSeek Responses: standalone automation_update output lacks call_id (HTTP 400) #41690, Codex Desktop + Kimi provider: all injected inputs (heartbeat/cron automations, thread delegation) fail with "tool_call_id is not found" and permanently poison the thread #43515, [Windows] Thread heartbeat automation injects a function_call_output without call_id and permanently breaks the thread on strict Responses API providers #44519, Injected function_call_output without call_id bricks the whole thread (Windows + DeepSeek Responses, app-server 0.154.0-alpha.6.2) #45227, Goal context item is recorded mid-turn, splits a parallel tool batch, and permanently wedges the thread with 400 No tool output found #60420 — same class, other injection sources
Activity