{"record":{"id":"6a65bb07b2267967","repo":"zellij-org/zellij","slug":"resizepseudoconsole-failed-hresult-0x-08x","errorCode":null,"errorMessage":"ResizePseudoConsole failed: HRESULT 0x{:08x}","messagePattern":"ResizePseudoConsole failed: HRESULT 0x(.+?)","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"zellij-server/src/os_input_output_windows.rs","lineNumber":560,"sourceCode":"            )\n        };\n\n        match self\n            .terminals\n            .lock()\n            .to_anyhow()\n            .with_context(err_context)?\n            .get(&terminal_id)\n        {\n            Some(Some(term)) => {\n                if cols > 0 && rows > 0 {\n                    let size = COORD {\n                        X: cols as i16,\n                        Y: rows as i16,\n                    };\n                    let hr = unsafe { ResizePseudoConsole(term.hpcon, size) };\n                    if hr != S_OK {\n                        Err::<(), _>(anyhow!(\"ResizePseudoConsole failed: HRESULT 0x{:08x}\", hr))\n                            .with_context(err_context)\n                            .non_fatal();\n                    }\n                }\n            },\n            _ => {\n                Err::<(), _>(anyhow!(\"no ConPTY terminal found for id {}\", terminal_id))\n                    .with_context(err_context)\n                    .non_fatal();\n            },\n        }\n        Ok(())\n    }\n\n    pub fn write_to_tty_stdin(&self, terminal_id: u32, buf: &[u8]) -> Result<usize> {\n        let err_context = || format!(\"failed to write to stdin of terminal {}\", terminal_id);\n\n        match self","sourceCodeStart":542,"sourceCodeEnd":578,"githubUrl":"https://github.com/zellij-org/zellij/blob/5cb5df5cce4e16c5d1c57c7c062e4a90a7823c41/zellij-server/src/os_input_output_windows.rs#L542-L578","documentation":"Error \"ResizePseudoConsole failed: HRESULT 0x{:08x}\" thrown in zellij-org/zellij.","triggerScenarios":"Occurs at zellij-server/src/os_input_output_windows.rs:560 when the operation fails: \"ResizePseudoConsole failed: HRESULT 0x{:08x}\". Currently there is no defensive handling preventing or contextualizing this failure before it surfaces.","commonSituations":"Happens on resize/teardown races on Windows or unsupported Windows builds.","solutions":["Verify the pane id still exists; the terminal may have exited before the resize.","Update Windows to a build with stable ConPTY support and retry."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5cb5df5cce4e16c5d1c57c7c062e4a90a7823c41","analyzedAt":"2026-08-19T07:42:58.758Z","contentChangedAt":"2026-08-19T07:42:58.758Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}