{"record":{"id":"84afb141a128b762","repo":"openai/codex","slug":"unsupported-84afb1","errorCode":"Unsupported","errorMessage":"keyboard enhancement reset is not implemented for the legacy Windows API","messagePattern":"keyboard enhancement reset is not implemented for the legacy Windows API","errorType":"exception","errorClass":"std::io::Error","httpStatus":null,"severity":"error","filePath":"codex-rs/tui/src/tui/keyboard_modes.rs","lineNumber":247,"sourceCode":"    let _ = execute!(\n        stdout(),\n        PopKeyboardEnhancementFlags,\n        ResetKeyboardEnhancementFlags,\n        DisableModifyOtherKeys\n    );\n}\n\n#[derive(Debug, Clone, Copy, PartialEq, Eq)]\nstruct ResetKeyboardEnhancementFlags;\n\nimpl Command for ResetKeyboardEnhancementFlags {\n    fn write_ansi(&self, f: &mut impl fmt::Write) -> fmt::Result {\n        f.write_str(\"\\x1b[<u\")\n    }\n\n    #[cfg(windows)]\n    fn execute_winapi(&self) -> std::io::Result<()> {\n        Err(std::io::Error::new(\n            std::io::ErrorKind::Unsupported,\n            \"keyboard enhancement reset is not implemented for the legacy Windows API\",\n        ))\n    }\n\n    #[cfg(windows)]\n    fn is_ansi_code_supported(&self) -> bool {\n        false\n    }\n}\n\n#[derive(Debug, Clone, Copy, PartialEq, Eq)]\nstruct EnableModifyOtherKeys;\n\nimpl Command for EnableModifyOtherKeys {\n    fn write_ansi(&self, f: &mut impl fmt::Write) -> fmt::Result {\n        f.write_str(\"\\x1b[>4;2m\")\n    }","sourceCodeStart":229,"sourceCodeEnd":265,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/tui/src/tui/keyboard_modes.rs#L229-L265","documentation":"Error \"keyboard enhancement reset is not implemented for the legacy Windows API\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/tui/src/tui/keyboard_modes.rs:247 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"}