openai/codex · error · anyhow::Error
runtime code cell {runtime_cell_id} in thread {thread_id} ma
Error message
runtime code cell {runtime_cell_id} in thread {thread_id} mapped to both {existing} and {code_cell_id} What it means
Error "runtime code cell {runtime_cell_id} in thread {thread_id} mapped to both {existing} and {code_cell_id}" thrown in openai/codex.
Source
Thrown at codex-rs/rollout-trace/src/reducer/code_cell.rs:583
format!("code_cell:{model_visible_call_id}")
}
/// Records the thread-local runtime cell id to reduced code-cell id mapping.
///
/// Runtime ids can repeat across threads, so callers must provide the owning
/// thread id when creating or resolving this bridge.
pub(super) fn record_runtime_code_cell_id(
&mut self,
thread_id: &str,
runtime_cell_id: &str,
code_cell_id: &str,
) -> Result<()> {
let key = runtime_code_cell_key(thread_id, runtime_cell_id);
if let Some(existing) = self.code_cell_ids_by_runtime.get(&key) {
if existing == code_cell_id {
return Ok(());
}
bail!(
"runtime code cell {runtime_cell_id} in thread {thread_id} mapped to both \
{existing} and {code_cell_id}"
);
}
self.code_cell_ids_by_runtime
.insert(key, code_cell_id.to_string());
Ok(())
}
/// Resolves a runtime cell id to the reduced code-cell id for the given thread.
pub(super) fn code_cell_id_for_runtime_cell_id(
&self,
thread_id: &str,
runtime_cell_id: &str,
event_name: &str,
) -> Result<CodeCellId> {
self.code_cell_id_for_runtime_cell_id_if_known(thread_id, runtime_cell_id)
.with_context(|| {View on GitHub (pinned to 339751715c)
When it happens
Trigger: Thrown at codex-rs/rollout-trace/src/reducer/code_cell.rs:583 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/aeaed57a55fcef4b.
Report an issue: GitHub.