{"record":{"id":"d08931328ed8edcb","repo":"openai/codex","slug":"animation-name-fallback-does-not-exist","errorCode":null,"errorMessage":"animation {name} fallback {} does not exist","messagePattern":"animation (.+?) fallback (.+?) does not exist","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"codex-rs/tui/src/pets/model.rs","lineNumber":471,"sourceCode":"\nfn validate_animation_indices(\n    animations: &HashMap<String, Animation>,\n    frame_count: usize,\n) -> Result<()> {\n    for (name, animation) in animations {\n        if animation.frames.is_empty() {\n            bail!(\"animation {name} must include at least one frame\");\n        }\n        for frame in &animation.frames {\n            if frame.sprite_index >= frame_count {\n                bail!(\n                    \"animation {name} references sprite index {}, but pet has {frame_count} frames\",\n                    frame.sprite_index\n                );\n            }\n        }\n        if !animations.contains_key(&animation.fallback) {\n            bail!(\n                \"animation {name} fallback {} does not exist\",\n                animation.fallback\n            );\n        }\n    }\n    Ok(())\n}\n\nfn default_frame_count() -> usize {\n    (catalog::DEFAULT_FRAME_COLUMNS * catalog::DEFAULT_FRAME_ROWS) as usize\n}\n\nfn default_animations() -> HashMap<String, Animation> {\n    [\n        (\"idle\", idle_animation()),\n        (\n            \"running-right\",\n            app_state_animation(","sourceCodeStart":453,"sourceCodeEnd":489,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/tui/src/pets/model.rs#L453-L489","documentation":"Error \"animation {name} fallback {} does not exist\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/tui/src/pets/model.rs:471 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"}