{"record":{"id":"23747a9264fdbba1","repo":"openai/codex","slug":"inference-response-referenced-unknown-call-infere","errorCode":null,"errorMessage":"inference response referenced unknown call {inference_call_id}","messagePattern":"inference response referenced unknown call (.+?)","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"codex-rs/rollout-trace/src/reducer/conversation.rs","lineNumber":152,"sourceCode":"        wall_time_unix_ms: i64,\n        inference_call_id: &InferenceCallId,\n        response_payload: &RawPayloadRef,\n    ) -> Result<Vec<String>> {\n        let payload = self.read_payload_json(response_payload)?;\n        let Some(output_items) = payload.get(\"output_items\").and_then(Value::as_array) else {\n            bail!(\n                \"inference response payload {} did not contain output_items\",\n                response_payload.raw_payload_id\n            );\n        };\n\n        let Some((thread_id, codex_turn_id)) = self\n            .rollout\n            .inference_calls\n            .get(inference_call_id)\n            .map(|inference| (inference.thread_id.clone(), inference.codex_turn_id.clone()))\n        else {\n            bail!(\"inference response referenced unknown call {inference_call_id}\");\n        };\n\n        let items = normalize::normalize_model_items(output_items, response_payload)?;\n        // Response output is appended immediately: it was produced by the model,\n        // so it is conversation even before a later request carries it forward.\n        let append_at = self\n            .thread_conversation_snapshots\n            .get(&thread_id)\n            .map_or(0, Vec::len);\n        let response_item_ids = self.reconcile_conversation_items(\n            items,\n            ReconcileItems {\n                thread_id: &thread_id,\n                codex_turn_id: &codex_turn_id,\n                wall_time_unix_ms,\n                produced_by: vec![ProducerRef::Inference {\n                    inference_call_id: inference_call_id.clone(),\n                }],","sourceCodeStart":134,"sourceCodeEnd":170,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/rollout-trace/src/reducer/conversation.rs#L134-L170","documentation":"Error \"inference response referenced unknown call {inference_call_id}\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/rollout-trace/src/reducer/conversation.rs:152 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"339751715c64496cb86246bfb3935f40e309dd3d","analyzedAt":"2026-08-25T05:35:09.876Z","schemaVersion":2},"datasetVersion":"2026-08-25T06:17:31.827Z"}