Repository navigation
Description
Environment
- Codex Desktop
26.825.51511/ app-server0.151.0-alpha.7.2 - Upstream: a strict OpenAI-compatible
/responsesserver (e.g. DeepSeek)
Symptom
Resuming an existing thread, or sending a message into a thread that contains a prior tool call, fails with:
Failed to deserialize the JSON body into the target type: input: missing field `call_id` at line 1 column ~...
Root cause
A response_item of type: "function_call_output" in the replayed input array carries id, name, namespace, output, and internal_chat_message_metadata_passthrough, but is missing call_id. The Responses API requires call_id on function_call_output to link it to the matching function_call. Strict deserializers (e.g. DeepSeek) reject the entire request at the wire layer, so a single dangling item breaks every message in the thread.
Minimal repro shape:
{
"type": "function_call_output",
"id": "...",
"name": "...",
"namespace": "",
"output": [{"type": "output_text", "text": "..."}],
"internal_chat_message_metadata_passthrough": {}
// missing: "call_id"
}Related
- Missing \call_id\ on injected standalone \unction_call_output\ also breaks normal thread resume / cross-thread send under third-party Responses providers #42067 — earlier report of this class of failure
- Codex Desktop automation + DeepSeek Responses: standalone automation_update output lacks call_id (HTTP 400) #41690 — automation + DeepSeek + missing
call_id - Codex Desktop macOS: Azure gpt-5.6-sol automations fail because bootstrap output has no call_id #41799
- Tool
parametersschemaoneOf/nullcausing similar strict-serde failures: Codex Desktop: automation_update schema (root oneOf, type null) 400s on strict providers like DeepSeek (Responses API) #37786, Codex Desktop custom provider app/dynamic tools end turns without function_call after automation_update-related prompts #30523
Expected behavior
Pick one (preferably the first):
- Always emit
call_idonfunction_call_output, sourced from its matchingfunction_call. - Omit
function_call_outputitems that have no correspondingfunction_callin the same request (dangling outputs are invalid). - At minimum, validate/normalize
inputbefore serialization so a malformed item cannot fail-close the whole request.
Suggested fix location
The thread/session serialization path that reconstructs input items on restore/continue. A function_call_output should either carry a call_id that matches its function_call, or be dropped when unmatched.
Impact
Any strict /responses upstream cannot resume/replay threads containing such an item; one missing call_id fails the whole stream.
Activity
github-actions commentedon Sep 1, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
SIMON-WORLD commentedon Sep 1, 2026
Additional observation (same Codex Desktop update regression)
With the same Codex Desktop build (
26.825.51511/ app-server0.151.0-alpha.7.2), when a cross-thread/session-injectedusermessage arrives in a receiving thread that carries a very largeinstructionscontext (e.g. AGENTS.md + handoff docs, often >100KB), the model may not treat that injected message as the current turn: the assistant responds as if no task was given, even though theusermessage is present ininputand is the last item. This is consistent with the thread-reconstruction regression in #41690.Repro: send a concrete, imperative task to a fresh worker thread via the orchestration tools (
create_thread/send_message_to_thread); the worker replies "no task provided / waiting for instructions" despite receiving a full, explicit task. Reproduced across several imperative prompts.Impact: breaks session/orchestration workflows that rely on a cross-thread user turn being executed immediately.
Suggested direction: when assembling
inputfor a thread, ensure a freshly injectedusermessage is the terminal executable turn, and that a largeinstructionspayload cannot shadow it (e.g., place guidance before the injected user turn, or hand off rather than re-inject the whole context).svkozak commentedon Sep 1, 2026
Same issue when using a
/responsescompatible proxy:This specifically affects automations, they are all broken.
hong2499947306-svg commentedon Sep 2, 2026
I'm hitting the same issue with Codex Desktop + custom provider (wire_api = "responses") + Automation.Symptom: Automation fails immediately with function_call_output requires call_id on HTTP requests; continuation via previous_response_id is only supported on Responses WebSocket v2.Evidence: Session JSONL shows the injected function_call_output has an id but no call_id.Workarounds tried:
Added supports_websockets = true to config → no effect
Enabled responses_websockets_v2 feature flag → no effect
It seems the Automation runtime hardcodes HTTP transport and injects a function_call_output without call_id, which violates the Responses API spec for HTTP.Please prioritize fixing this, as it blocks all Automation usage with custom providers.
NWYLZW commentedon Sep 3, 2026
Additional reproduction: Codex Desktop task orchestration
Correction to the originally posted environment: the active host process was running from /Applications/ChatGPT.app, not the retained /Applications/Codex.app compatibility bundle.
Environment:
A concrete reproduction through the built-in cross-task tools:
Restarting Codex Desktop did not clear the failure.
This narrows the trigger in this environment: initial task creation can succeed, while replay/delivery of the subsequent cross-task message produces an invalid function_call_output without call_id. No project-specific code is required to trigger it. Internal paths, task IDs, and project content are omitted.
HuaFireX commentedon Sep 7, 2026
I reproduced the same issue on 2026-09-07 (Asia/Shanghai) with Codex Desktop.
Both creating a new projectless/project session and sending a follow-up message to the created thread fail before the assistant produces any output. Retrying produces the same error:
function_call_output requires item_reference ids matching each call_id,
or previous_response_id/tool_call context
This appears to affect cross-thread/session orchestration. The main thread remains functional, and existing threads can still be listed/read.
Request IDs:
202609070938295333435638268d9d6cUpwmB5a
20260907173828362768325Hz4gSh4I
seanford commentedon Sep 8, 2026
Windows 11 / Azure: same-day recurrence after verified recovery in 0.153.4
Adding a verified recurrence to this issue. The first conversation repair worked: the original malformed entries remained repaired and the task continued successfully. Later worker messages inserted new malformed entries and broke the same task again.
Environment:
26.901.6511.00.153.426200gpt-5.6-solwire_api = "responses"codex_app.send_message_to_threaddelivering worker reports to an existing parent taskExact error:
{ "error": { "message": "Invalid Value: 'input.call_id'. Function call output requires call_id.", "type": "invalid_request_error", "param": "input", "code": null } }The persisted incoming report has this shape (values redacted):
{ "type": "response_item", "payload": { "type": "function_call_output", "id": "fco_REDACTED", "name": "send_message_to_thread", "namespace": "codex_app", "output": "<codex_delegation>...worker report redacted...</codex_delegation>", "internal_chat_message_metadata_passthrough": {} } }There is no
call_id. This is an unsolicited incoming report, not a result paired with a function call made by the recipient.Observed sequence on 2026-09-08, all times UTC:
15:33.16:43:21, after backing up the complete conversation and fully exiting Codex, those four records were converted to the existing nativeagent_messagerepresentation, preserving the worker source, report text, and turn metadata. All other 17,039 records were byte-identical.19:09:57.21:38:10.907, another worker report was persisted as a new call-ID-lesscodex_app.send_message_to_threadoutput. The recipient failed at21:38:11.831with the error above.agent_messagerecords; they had not reverted.Reproduction: use an otherwise working Azure Responses task, deliver a worker report with
send_message_to_thread, and retry the recipient. After repairing its history, deliver another report through the same app tool: the failure returns. Native collaboration messages were already present in successful portions of this conversation.Expected: represent unsolicited task/worker messages as compatible context messages with preserved provenance. If a real function result is serialized, its
call_idmust correspond to a real call. Validate or normalize these items both when inserting them and when replaying existing history; repairing old records alone does not prevent new corruption.This adds Windows/current-stable evidence and a confirmed repair-then-recurrence sequence to the existing cross-task reports. Endpoint hostnames, credentials, project names, local paths, task IDs, and report contents are omitted. No full conversation logs are attached.
0okay commentedon Sep 11, 2026
Additional DeepSeek data point:
create_threadon its own seeds a thread that is dead on its very first turn.Environment
26.903.9818.0(Windows x64), bundledcodex-cli 0.153.4config.toml:wire_api = "responses",base_url = "https://api.deepseek.com",model = "deepseek-flash"What happened
Delegated a task with the app tool
create_thread(target: an existing project,environment.type = "local").The returned thread's first turn failed after ~2.8 s with:
That turn contains exactly one item — the injected delegation output itself:
{ "type": "function_call_output", "id": "fco_...", "name": "create_thread", "namespace": "codex_app", "output": "<codex_delegation>...</codex_delegation>", "internal_chat_message_metadata_passthrough": {} }No
call_id, and there is no matchingfunction_callbecause the thread has no prior history at all. The thread therefore never works even once.The same failure mode also reproduces with
send_message_to_threadinto an existing DeepSeek thread. In that thread the rollout holds 122function_callentries and 122function_call_outputentries, allcall_id-paired, plus exactly one unmatched output — the injected delegation item. After it was written, every later turn in that thread, including plain user messages, failed with the identical 400.So on a strict Responses provider each of the two delegation tools (
create_thread,send_message_to_thread) is sufficient on its own to produce a permanently unusable thread, and forcreate_threadthe thread is broken before the model ever sees the prompt.Local workaround (confirms the item is the only defect)
Delete the single unmatched
function_call_outputfrom the thread rollout (the remaining history is perfectly paired) and reopen the thread; it resumes normally. The practical mitigation meanwhile is to avoid app-tool delivery on strict Responses providers.Related
#41690, #42067, #43515 (Kimi — lists delegation paths), #44519, #44723. Flagging #43515 as the closest match on the delegation trigger; this comment adds the DeepSeek repro and the "dead on first turn" detail for
create_thread.argszero commentedon Sep 11, 2026
Tracing @0okay's "dead on first turn" case and @seanford's repair-then-recurrence sequence to current main, I think the mechanism is now fully pinned, and it is a design tension rather than a missing check — which is why repairing history keeps working while new deliveries keep breaking it. All line numbers below are from
origin/main@02a8f038b8.The item is not "an output that lost its call_id"
FunctionCallOutputcarries two optional fields (protocol/src/models.rs:1101-1113):id: Option<ResponseItemId>andcall_id: Option<String>. That distinction matters, because the reported shape is not "unpaired" — it is an output whosecall_idslot was replaced by a syntheticid.The production producer of the delegation path is app-server
turn/startwithtoolOutput:TurnToolOutput { name, namespace, output }(app-server-protocol/src/protocol/v2/turn.rs:145-149, referenced at:166). There is no field through which a client could supply a pairing, andthread/inject_itemsis a separate RPC.inputand requires a nonemptyname(app-server/src/request_processors/turn_processor.rs:536-544), then it buildsFunctionCallOutput { id: None, call_id: None, name: Some(tool_output.name), .. }(:592-603).id_prefix()maps that variant to"fco"(models.rs:1305), andassign_missing_response_item_idfills an empty id viaResponseItemId::new(prefix)(core/src/session/mod.rs:3443-3451), reached through the dedicated standalone-output arm atcore/src/session/turn_input.rs:672-676.So
id: "fco_..."with thecall_idkey absent is exactly what this path produces — it is not corruption in the rollout. It also explains @0okay's first-turn case structurally:toolOutputcannot be combined with nonemptyinput(:537-541), and a standalone output is explicitly accepted as an entire turn's input (core/src/session/turn_input.rs:255-260), so a brand-new thread's sole input item is an unpaired output. Replay fails at the first request, and since history is replayed on every later turn, every report's "permanently unusable thread" follows.Why no existing guard heals it
There is a production orphan-drop guard on the request path:
normalize_history(core/src/context_manager/history.rs:707-719) callsremove_orphan_outputs(:714), which flags unmatched outputs atcore/src/context_manager/normalize.rs:184-192. Look at the run match arm: it isFunctionCallOutput { call_id: Some(call_id), .. } if !function_call_ids.contains(..). Acall_id: Noneitem cannot match, so it is skipped by construction — and that is correct per the invariant documented one line above the call: "every output has a corresponding call entry or names an external tool event" (history.rs:703-706, reiterated at:713). Re-pairingnullwith the enclosingfunction_callwould be wrong for the same reason: it would not fix the column, it would just make anulllook valid.The "stand alone" behaviour is a deliberate, locked contract, not an oversight — introduced for exactly this use case ("External tool events may need to enter thread history without a preceding function call", PR #39782) and extended to turn routing in PR #40991. It is pinned by a protocol round-trip test (
models.rs:3208,named_unpaired_function_call_output_round_trips_without_call_id) and allowed by the test harness itself, which lets name-bearing unpairedfunction_call_outputitems pass its own invariant check (core/tests/common/responses.rs:1560-1567). That divergence is why this never fails in CI: the mock encodes the OpenAI-tolerant reading, while the deployment targets cited in this thread (Kimi, DeepSeek, Azure, the/responsesproxy) require the paired reading.Where a fix can actually go
Two things are true at once: the item is legitimate under this repo's contract, and it is unrepresentable to a provider that requires pairing. So the choice is a policy decision at request assembly, and the injection site is not the place to make it.
The house pattern already exists at precisely that spot. Request assembly computes
is_openai(core/src/client.rs:794) and then mutatesinputper provider (:833) — clearing metadata passthrough and stripping encrypted args. A provider-conditional rewrite would slot in there. There is also a first-class flag precedent for this exact class of "capability varies by provider":supports_standalone_web_search(model-provider-info/src/lib.rs:154), declared true on the builtin OpenAI provider and false on custom ones (:497vs:533), then consumed as an availability gate inext/web-search/src/extension.rs:45-47. A companion flag for standalone function outputs would be more honest than gating onis_openai, which is plain name equality against"OpenAI"(lib.rs:546) and therefore says nothing about whether a given wire endpoint requires pairing.Treatment options, with the trade-offs I can see:
Rewrite the standalone output into a context item the provider understands, gated on the capability flag. This is what the manual workaround repairs toward, and what @seanford asks for ("represent unsolicited task/worker messages as compatible context messages with preserved provenance"). The repo already has a conversion for unsolicited inter-agent deliveries —
InterAgentCommunication::to_model_input_item(protocol/src/protocol.rs:889-913) — but note it emitsResponseItem::AgentMessage, a Codex-specificagent_messageitem type rather than a standard Responses item, so a strict third-party endpoint may reject that instead. A plainMessagecarrying the payload plus provenance is the more portable representation. Neither is mechanical:AgentMessagerequiresauthorandrecipient(models.rs:1024-1030), whichTurnToolOutputdoes not carry, so the rewrite is lossy unless the client supplies provenance.Stop routing inter-agent delivery through
toolOutput. Larger, but it removes the mismatch structurally, sincetoolOutputis an app-server client contract that cannot express pairing.What I cannot decide from the outside is which of these upstream wants, because (1) trades structure for portability and (2) changes a client-facing API. Both are maintainer calls, and either way a Windows/macOS/CLI test asserting no
null-call_idfunction_call_outputreaches a provider flagged as pairing-required would lock the behaviour in.One correction to my own analysis on the sibling #44779, where I argued this shape can only be a
function_call_output: that still holds on this revision — of the id-bearing variants, onlyFunctionCallOutput.call_idcarriesskip_serializing_if(models.rs:1105-1107), whileToolSearchCall(:1085) andToolSearchOutput(:1161) are plainOption<String>and serializenullrather than omitting the key. But the locus I named there was too narrow. At the time I had onlythread/inject_itemsin view, which cannot produce it; theturn/starttoolOutputparameter is the path that does, and it is documented nowhere in prose —app-server/README.mdis 176 lines on main and contains nocall_idtext at all since its restructure. The authoritative statement of the parameter's shape is now the generated schema,app-server-protocol/schema/json/v2/TurnStartParams.json(toolOutputat:817-826), together withTurnToolOutputatapp-server-protocol/src/protocol/v2/turn.rs:145-149.ZzkAItech commentedon Sep 13, 2026
Independent verification on the current macOS build
Environment
26.908.408340.154.0-alpha.6.2deepseek/deepseek-v4.1-flashVerification results
ephemeral:truethread usingturn/start.toolOutputforautomation_updatefails with HTTP 400 andmessages.2.tool_call_id.messages.6.tool_call_id.messages.10.tool_call_id.create_threadproduced child threads whose first persisted response item was afunction_call_outputnamedcreate_threadwith nocall_id; each failed before the model received the delegation.Observation at the proxy boundary
When the malformed item passes through a Responses-to-Chat-Completions proxy, the absent
call_idcan be converted totool_call_id = "". This is not the origin of the defect, but it explains why different provider setups surface eithermissing field call_idorTool message must have tool_call_id.Assessment and regression coverage
The producer path should not create a standalone
function_call_outputunless a matchingfunction_call.call_idexists. The recommended regression checks are:toolOutput.create_threadinitializes the child thread with a normal instruction message.function_call_outputalways retains a non-empty matchingcall_id.create_threadboth complete through strict Responses providers over HTTP.No credentials, API keys, private prompts, or local paths are included.
argszero commentedon Sep 13, 2026
Two things in this verification stand out: the proxy observation (absent
call_idbecomingtool_call_id: "") is the sharpest datum in the thread, and thecreate_threaditem identifies which producer is involved. That producer is not the dynamic-tool path, and the distinction changes what a fix can be.The item is built with
call_id: Noneby constructionturn/start'stoolOutputroute is the only non-test construction site of this shape in the tree — every othercall_id: Noneoccurrence is either a match/destructure (turn_input.rs:258,spawn.rs:73,stream_events_utils.rs:149,session/mod.rs:1599) or an unrelated field:and the API type carries no pairing field at all:
TurnToolOutput { name, namespace, output }(app-server-protocol/src/protocol/v2/turn.rs:155-159). It is an alternative toinput, not a companion —turn_processor.rs:538-545rejects combining the two ("toolOutputcannot be combined with nonemptyinput"). So a client using this route cannot express "this result answers call X" even if it wanted to.The paired route already exists — and it is a different one
For app-executed tools that answer a model call, the app-server issues
DynamicToolCallParams { thread_id, turn_id, call_id, namespace, tool, arguments }(app-server-protocol/src/protocol/v2/item.rs:1642-1649) — the app is handed thecall_id— and the result returns through it:app-server/src/dynamic_tools.rs:18-52keeps that id and submitsOp::DynamicToolResponse { id: call_id, response }, whichcore/src/session/handlers.rs:230-232completes the pending call with, via the normal tool machinery (core/src/tools/handlers/dynamic.rs:117, with the pending call registered under that id at:174). That output is a pairedfunction_call_output.So the qualification in your assessment is the whole story: the items you are seeing are not outputs that lost their
call_id— they are results pushed outside the call/response cycle, where nofunction_callexists in the thread to pair with. If the heartbeat and thecreate_threadresult reach the server throughtoolOutput, they are exactly that shape, and there is nothing in the thread for them to pair with.Why checks 3 and 4 cannot hold as stated
The standalone (unpaired) output is a deliberate, first-class carrier in this repo, not an accident. Four independent confirmations on current
main:core/src/session/turn_input.rs:255-267: the only two things that may start or steer a turn are user input or a standalone function-call output ("only user input or standalone function-call outputs can start or steer a turn");core/src/stream_events_utils.rs:143-151(response_item_may_include_external_context) listsFunctionCallOutput { call_id: None, .. }beside tool_search and web_search;core/src/agent/control/spawn.rs:65-93(keep_forked_rollout_item) returnstrueforFunctionCallOutput { call_id: None, .. }andfalseforFunctionCallOutput { call_id: Some(_), .. }, so a child thread is supposed to begin with one — which is precisely yourcreate_threadobservation;guardian-context/src/transcript.rs:218-231matches exactly this shape (call_id: None, name: Some(name), namespace) and labels ittool {namespace}.{name} result.So check 4 as written ("no orphan output is persisted into a fresh thread rollout") conflicts with
keep_forked_rollout_item; the child-thread case looks intended. Check 3 is true today for every output that has a call: outside tests, everything paired is built withcall_id: Some(..).The actual defect is the wire form, and it is narrow
The provider request serializes the internal model directly (
codex-api/src/common.rs:264,pub input: Vec<ResponseItem>) andcall_idisskip_serializing_if = "Option::is_none"(protocol/src/models.rs:1107-1109) — so the key is absent, notnull. (An explicitnullwould not help either:call_idis required by the item's schema, so it is not a legal value for it.) Nothing repairs it first: both normalize passes match onlycall_id: Some(..)(core/src/context_manager/normalize.rs:28,:185,:202), so unpaired items fall through to_ => {}.Two treatments, both keeping the standalone contract intact:
function_call_outputmissing a required field. The repo already names this class ("external context"), and the transcript renderer shows the intent is name-based identification.TurnToolOutputso a client that does know the originating call can say so, leaving the standalone form for genuinely caller-less results. Then "my provider rejects standalone items" can be handled as a capability; there is precedent insupports_standalone_web_search(config/src/thread_config.rs:316, consumed when deciding tool exposure atcore/src/tools/spec_plan.rs:174) — with the caveat that that flag governs what the model is offered, not how an output is serialized, so it is a starting point rather than a drop-in.On checks 1 and 2 specifically: if the heartbeat and the child-thread seed are meant to be instructions, they should be sent through plain
input—turn/start'sinputfield produces an ordinary user message, and nothing about seeding a child thread requirestoolOutput. As long as the client usestoolOutput, this repo will keep emitting the unpaired shape, because that is what the route is for.Happy to prototype either treatment with a regression test asserting that a strict provider never receives an unpaired
function_call_output— though a maintainer's steer would help on which layer should own it: the app-server route, or the serialization ofResponseItemfor providers that require the field.JunkaiWang-TheoPhy commentedon Sep 17, 2026
Adding wire-level measurements from a macOS machine (app-server
0.154.0-alpha.6.2, upstreamhttps://api.deepseek.com/v1/responses) that pin down what a fix has to produce, since the "expected behavior" list in the report contains one option that does not work on its own.input[i]sentfunction_call_outputwithname/namespace/output, nocall_idinput: missing field 'call_id'call_id, no matchingfunction_callNo tool call found for tool output with call_id …function_call+ the original output, one sharedcall_iddevelopermessageSo option 1 in the report ("always emit
call_idonfunction_call_output, sourced from its matchingfunction_call") only holds when a matching call exists. For the injected standalone items that this issue is about — where no call exists — the request still fails, with a different error. Options 2 (drop the item) and 3 (normalize/validate before serialization) are the ones that produce an acceptable request; option 2 needs care because the item is the payload of an injected event, and dropping it loses the event.One more observation that may help whoever fixes this: the two failure modes are easy to confuse because the provider's wording does not match the cause. On this machine a transcript whose tool-call batch was split by its own outputs (
callA → outputA → callB → outputB) was rejected withThe 'reasoning_text' in the thinking mode must be passed back to the API, and only reordering (calls contiguous, that batch's outputs after it) turned it into a 200 — while a genuinely missing output reportsNo tool output found for tool call X. Neither message names the actual invariant.JunkaiWang-TheoPhy commentedon Sep 17, 2026
Cross-reference: I filed the send-boundary location plus a runnable strict-upstream checker as #46193 (this thread already has the wire-level table from my earlier comment). If a normalizer ends up being added on the client side, that issue lists the four shapes it has to produce/accept and the two error texts they map to.
pluto1747-cybr commentedon Sep 25, 2026
Still reproducible on Codex Desktop
26.917.71314/ CLI0.155.0-alpha.16.4(macOS + Windows, custom DeepSeek Responses provider,multi_agent_version=v1):create_thread,send_message_to_thread, andfork_thread+ send all fail the first turn with 422input: missing field 'call_id'.Full request ids and rollout line evidence are in #45914. A manually created UI thread on the same machine is a working control, so this is specifically the programmatic/injected path, not all turns.
taiqiyuan123 commentedon Nov 9, 2026
Codex desktop: first message fails over HTTP when injected Page context has no call_id
This is a concrete desktop trigger for standalone
function_call_outputitems withoutcall_id: starting a new chat from Home / the new-chat panel can inject Page companion context before the model has made any tool calls. It also happens when no Page is open.Environment
26.1103.4239.0on Windows.codex-cli 0.167.0-alpha.3.2.Microsoft Windows NT 10.0.26300.0 x64.4.0.27during the initial reproduction; now updated to4.0.28.0.166.0-alpha.5.1, did not have these injected items. This is an observed version boundary, not a claim about the exact commit responsible.Reproduction
The first request contains the following Page-context items. These excerpts were checked against the original failed session log; unrelated fields and identifiers are omitted:
[ { "type": "function_call_output", "name": "codex_apps_open_page", "namespace": "agent", "output": "{\"page_id\":null}" }, { "type": "function_call_output", "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}" } ]Neither item has
call_id, and neither has a corresponding model-generatedfunction_call.Actual behavior
The HTTP request is rejected on the first message:
In the initial tests, existing healthy chats continued to work while new chats from the affected entry point failed. A second computer was also reported to have the same symptom after updating, and the same workaround restored its use; its exact build and raw logs have not been independently checked for this report.
Controlled comparison and workaround
The troubleshooting record includes the following comparison using the same failing request and credential:
function_call_outputitems lackingcall_idinto developer messages, preserving their Page-context text: 200, with a completed response.For example, the first item is rewritten as:
{ "type": "message", "role": "developer", "content": [ { "type": "input_text", "text": "<codex_apps_open_page>\n{\"page_id\":null}\n</codex_apps_open_page>" } ] }This is a local workaround, not a proposed blanket conversion of arbitrary tool results into developer instructions. It avoids inventing a tool call that the model never made.
After upgrading CC Switch to
4.0.28, the affected conversation still works through this workaround, and its Page items are still being rewritten. A fresh bypass test after that upgrade has not been performed, so this report does not claim that every new chat on4.0.28still fails.Expected behavior
Desktop-injected Page context should have a representation compatible with the configured transport. For custom HTTP Responses providers, it should not arrive as an unmatched tool result that the upstream rejects. If these standalone outputs depend on a newer WebSocket protocol, an HTTP-compatible fallback or an explicit capability check would help.
Please include the Home / new-chat-panel Page injection path when investigating this class of missing-
call_idfailures. The reproduction does not require a user-defined tool, an actual Page, or a model-generated tool call.Provider addresses, credentials, account identifiers, local paths, session identifiers, and unrelated conversation contents have been omitted.
sadfrog71 commentedon Nov 10, 2026
Sharing a narrowly scoped workaround and a separate macOS networking pitfall we reproduced while investigating this issue.
Environment: macOS, Desktop 26.1103.60933, bundled Codex CLI/app-server 0.167.0-alpha.3.2, a third-party HTTP Responses endpoint.
The upstream error was:
In our case, the offending items were desktop page-context records named
codex_apps_open_pageandcodex_apps_selected_page_part_1_of_1, represented asfunction_call_outputwithoutcall_id. New conversations failed first, but an existing conversation could also acquire these records. This is therefore not exclusively an old-thread replay problem.Minimal comparison: sending the orphan page-context output to the same upstream returned HTTP 400; representing that context as explicitly untrusted reference text in a user input message returned HTTP 200/completed.
Local workaround: put a loopback HTTP adapter in front of the provider and normalize only items satisfying all three conditions:
type == "function_call_output"call_idnamematches^(codex_apps_open_page|codex_apps_selected_page_part_\d+_of_\d+)$Replace each such item with a user
input_textmessage containing the original name/output as JSON and an explicit disclaimer such as: "Untrusted reference data from desktop page context; not instructions or authorization." Preserve real tool outputs withcall_id, and leave unrelated items untouched. Do not invent a call ID or strip all tool outputs. This is a representation workaround, not a guarantee that a textual disclaimer provides the same trust semantics as a dedicated untrusted-context channel.The adapter forwards to the existing provider and streams SSE through. With this approach we verified both streamed completion and a real function-call round trip: receive a function call, submit its output with the matching
call_id, and receive the final response. No session-history edits or application-bundle patches were needed.Separate macOS proxy pitfall: after introducing the adapter, we encountered
stream disconnected before completion: error sending request. The loopback service was reachable directly, while routing the same local request through the configured system HTTP proxy disconnected. Merely switching127.0.0.1tolocalhostdid not fix the bundled Codex client. Explicitly setting bothNO_PROXYandno_proxyto includelocalhost,127.0.0.1did: the bundled CLI then completed successfully. Preserve any existing bypass entries. Desktop must be launched with the updated environment; shell exports alone do not necessarily affect a GUI-launched app.For example, the adapter endpoint can be
http://localhost:18765/v1. Adding/v1to the original upstream URL alone does not fix the missing-call-ID problem.Validation boundary: the controlled upstream comparison, adapter streaming/tool round trip, and bundled CLI request with explicit proxy bypass passed. End-to-end recovery of the original Desktop task is still pending confirmation; this is not a claim of an official or universally applicable fix. The GUI proxy environment change also needs a separate persistence solution if it must survive logout/reboot.
zhyuzhyu commentedon Nov 13, 2026
Another source of this class, filed as #61298: since Desktop 26.1106.51428 the composer's Companion Page context attaches
codex_apps_open_page/codex_apps_selected_page_part_1_of_1asfunction_call_outputwithoutcall_id(namespace"agent") to every message on an existing thread — even when no Page is open ({"page_id":null}), which makes it much higher-frequency than the automation/delegation sources. Because the items persist and each new message re-attaches a fresh pair, affected threads fail on the request right after every submission and stay bricked. Rollout history on our side shows zero such items across 38 days before the 26.1106 update, with the first injection 16 minutes after install. Repro and details in #61298.I-am-zeroZ commentedon Nov 22, 2026
Additional affected path:
goal_objectiveinjection in Codex 0.171.0. The original session successfully resumed after a targeted local repair.Environment
wire_api = "responses")Observed behavior
An existing thread became unable to continue after Goal-related context was persisted as:
{ "type": "function_call_output", "id": "fco_REDACTED", "name": "goal_objective", "namespace": "agent", "output": "<user's goal text>" }The item has no
call_id. It was also retained in a compaction'sreplacement_history.Three consecutive turns failed with:
Sending an ordinary
continuedid not recover the thread.Local findings and verified recovery
The rollout contained three affected occurrences:
goal_objectiveoutput records.replacement_history.After backing up the rollout, only these three occurrences were converted into ordinary user text messages containing the original goal text. The repair preserved timestamps, line lengths, and pagination byte offsets. No project files, goal status, or database records were changed.
Local validation passed, and I subsequently confirmed that the original session successfully resumed normal conversation.
This is a recovery workaround for the persisted history, not a fix for the producer. Re-enabling Goal continuation has not been tested, so recurrence remains possible.
Expected behavior
Goal context should use a representation compatible with the configured transport. A goal injected without a corresponding model-generated function call should not be sent over HTTP as a
function_call_outputmissingcall_id.Please include the Goal /
goal_objectiveinjection path when investigating this issue, alongside automation, cross-thread messaging, and Page context.