{"record":{"id":"1125dd31122b070e","repo":"openai/codex","slug":"unknown-file-read-handle-handle-id","errorCode":null,"errorMessage":"unknown file read handle `{handle_id}`","messagePattern":"unknown file read handle `(.+?)`","errorType":"exception","errorClass":"io::Error","httpStatus":null,"severity":"error","filePath":"codex-rs/exec-server/src/file_read.rs","lineNumber":124,"sourceCode":"}\n\n#[cfg(windows)]\nfn read_file_at(file: &File, bytes: &mut [u8], offset: u64) -> io::Result<usize> {\n    std::os::windows::fs::FileExt::seek_read(file, bytes, offset)\n}\n\nfn validate_read_block_len(len: usize) -> io::Result<()> {\n    if !(1..=FILE_READ_CHUNK_SIZE).contains(&len) {\n        return Err(io::Error::new(\n            io::ErrorKind::InvalidInput,\n            format!(\"file read block length must be between 1 and {FILE_READ_CHUNK_SIZE}\"),\n        ));\n    }\n    Ok(())\n}\n\nfn unknown_handle_error(handle_id: &str) -> io::Error {\n    io::Error::new(\n        io::ErrorKind::NotFound,\n        format!(\"unknown file read handle `{handle_id}`\"),\n    )\n}\n","sourceCodeStart":106,"sourceCodeEnd":129,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/exec-server/src/file_read.rs#L106-L129","documentation":"Error \"unknown file read handle `{handle_id}`\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/exec-server/src/file_read.rs:124 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Open the file read first and use the handle_id it returned."],"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"}