openai/codex · error · anyhow::Error
pet frame count {frame_count} exceeds maximum {MAX_PET_FRAME
Error message
pet frame count {frame_count} exceeds maximum {MAX_PET_FRAMES} What it means
Error "pet frame count {frame_count} exceeds maximum {MAX_PET_FRAMES}" thrown in openai/codex.
Source
Thrown at codex-rs/tui/src/pets/model.rs:356
.checked_mul(frame.columns)
.context("pet frame grid width overflow")?;
let total_height = frame
.height
.checked_mul(frame.rows)
.context("pet frame grid height overflow")?;
if total_width != spritesheet_width || total_height != spritesheet_height {
bail!(
"pet frame grid must cover spritesheet exactly: expected {spritesheet_width}x{spritesheet_height}, got {total_width}x{total_height}"
);
}
let frame_count = frame
.columns
.checked_mul(frame.rows)
.context("pet frame count overflow")?;
let frame_count = usize::try_from(frame_count).context("pet frame count does not fit usize")?;
if frame_count > MAX_PET_FRAMES {
bail!("pet frame count {frame_count} exceeds maximum {MAX_PET_FRAMES}");
}
Ok(frame_count)
}
fn custom_pet_cache_id(id: &str) -> String {
format!("custom-{id}")
}
fn path_like(value: &str) -> bool {
value == "."
|| value == ".."
|| value.starts_with("~/")
|| value.starts_with("../")
|| value.starts_with("./")
|| Path::new(value).is_absolute()
|| value.contains('/')
|| value.contains('\\')
}View on GitHub (pinned to 339751715c)
When it happens
Trigger: Thrown at codex-rs/tui/src/pets/model.rs:356 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/012849028ea0be3e.
Report an issue: GitHub.