zellij-org/zellij · error
ResizePseudoConsole failed: HRESULT 0x{:08x}
Error message
ResizePseudoConsole failed: HRESULT 0x{:08x} What it means
Error "ResizePseudoConsole failed: HRESULT 0x{:08x}" thrown in zellij-org/zellij.
Source
Thrown at zellij-server/src/os_input_output_windows.rs:560
)
};
match self
.terminals
.lock()
.to_anyhow()
.with_context(err_context)?
.get(&terminal_id)
{
Some(Some(term)) => {
if cols > 0 && rows > 0 {
let size = COORD {
X: cols as i16,
Y: rows as i16,
};
let hr = unsafe { ResizePseudoConsole(term.hpcon, size) };
if hr != S_OK {
Err::<(), _>(anyhow!("ResizePseudoConsole failed: HRESULT 0x{:08x}", hr))
.with_context(err_context)
.non_fatal();
}
}
},
_ => {
Err::<(), _>(anyhow!("no ConPTY terminal found for id {}", terminal_id))
.with_context(err_context)
.non_fatal();
},
}
Ok(())
}
pub fn write_to_tty_stdin(&self, terminal_id: u32, buf: &[u8]) -> Result<usize> {
let err_context = || format!("failed to write to stdin of terminal {}", terminal_id);
match selfView on GitHub (pinned to 5cb5df5cce)
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.
When it happens
Trigger: 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.
Common situations: Happens on resize/teardown races on Windows or unsupported Windows builds.
AI-assisted analysis of zellij-org/zellij@5cb5df5cce (2026-08-19).
Data as JSON: /api/errors/6a65bb07b2267967.
Report an issue: GitHub.