openai/codex · error · anyhow::Error
model-visible call id
Error message
model-visible call id {call_id} was reused with different content What it means
Two conversation items in the same thread shared a model-visible call_id and kind but had different content, violating the assumption that a call id uniquely identifies one item's payload.
Solutions
- Ensure the producer reuses call ids only for identical item content
- Relax the consistency check if legitimately divergent items share a call id
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at codex-rs/rollout-trace/src/reducer/conversation.rs:495 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of openai/codex@339751715c (2026-08-25).
Data as JSON: /api/errors/79dbd90f41d9d60b.
Report an issue: GitHub.
Appendix: source
Thrown at codex-rs/rollout-trace/src/reducer/conversation.rs:495
})
.cloned()
}
fn ensure_call_id_consistency(
&self,
thread_id: &str,
normalized: &NormalizedConversationItem,
) -> Result<()> {
let Some(call_id) = normalized.call_id.as_deref() else {
return Ok(());
};
for item in self.rollout.conversation_items.values() {
if item.thread_id == thread_id
&& item.call_id.as_deref() == Some(call_id)
&& item.kind == normalized.kind
&& !conversation_item_matches(item, normalized)
{
bail!("model-visible call id {call_id} was reused with different content");
}
}
Ok(())
}
fn item_matches(&self, item_id: &str, normalized: &NormalizedConversationItem) -> bool {
let Some(item) = self.rollout.conversation_items.get(item_id) else {
return false;
};
conversation_item_matches(item, normalized)
}
fn next_conversation_item_id(&mut self) -> String {
let ordinal = self.next_conversation_item_ordinal;
self.next_conversation_item_ordinal += 1;
format!("conversation_item:{ordinal}")
}
}View on GitHub (pinned to 339751715c)