openai/codex · error · anyhow::Error

model-visible call id {call_id} was reused with different co

Error message

model-visible call id {call_id} was reused with different content

What it means

Error "model-visible call id {call_id} was reused with different content" thrown in openai/codex.

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)

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.