{"record":{"id":"84a126efdbf73c6d","repo":"openai/codex","slug":"helper-destination-has-no-parent","errorCode":null,"errorMessage":"helper destination has no parent: {}","messagePattern":"helper destination has no parent: (.+?)","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"codex-rs/windows-sandbox-rs/src/helper_materialization.rs","lineNumber":271,"sourceCode":"fn dev_build_suffix(source: &Path) -> Result<String> {\n    let metadata = fs::metadata(source)\n        .with_context(|| format!(\"read helper source metadata {}\", source.display()))?;\n    let modified = metadata\n        .modified()\n        .with_context(|| format!(\"read helper source mtime {}\", source.display()))?;\n    let duration = modified\n        .duration_since(UNIX_EPOCH)\n        .with_context(|| format!(\"convert helper source mtime {}\", source.display()))?;\n    Ok(format!(\"{}-{:x}\", metadata.len(), duration.as_secs(),))\n}\n\nfn copy_from_source_if_needed(source: &Path, destination: &Path) -> Result<CopyOutcome> {\n    if destination_is_fresh(source, destination)? {\n        return Ok(CopyOutcome::Reused);\n    }\n\n    let destination_dir = destination.parent().ok_or_else(|| {\n        anyhow!(\n            \"helper destination has no parent: {}\",\n            destination.display()\n        )\n    })?;\n    fs::create_dir_all(destination_dir).with_context(|| {\n        format!(\n            \"create helper destination directory {}\",\n            destination_dir.display()\n        )\n    })?;\n\n    let temp_path = NamedTempFile::new_in(destination_dir)\n        .with_context(|| {\n            format!(\n                \"create temporary helper file in {}\",\n                destination_dir.display()\n            )\n        })?","sourceCodeStart":253,"sourceCodeEnd":289,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/windows-sandbox-rs/src/helper_materialization.rs#L253-L289","documentation":"Error \"helper destination has no parent: {}\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/windows-sandbox-rs/src/helper_materialization.rs:271 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"}