zellij-org/zellij · error
no ConPTY terminal found for id {}
Error message
no ConPTY terminal found for id {} What it means
Error "no ConPTY terminal found for id {}" thrown in zellij-org/zellij.
Source
Thrown at zellij-server/src/os_input_output_windows.rs:602
{
Some(Some(term)) => {
let mut written: u32 = 0;
let ok = unsafe {
WriteFile(
term.input_write_handle,
buf.as_ptr(),
buf.len() as u32,
&mut written,
std::ptr::null_mut(),
)
};
if ok == 0 {
Err(io::Error::last_os_error()).with_context(err_context)
} else {
Ok(written as usize)
}
},
_ => Err(anyhow!("no ConPTY terminal found for id {}", terminal_id))
.with_context(err_context),
}
}
pub fn tcdrain(&self, terminal_id: u32) -> Result<()> {
let err_context = || format!("failed to drain terminal {}", terminal_id);
match self
.terminals
.lock()
.to_anyhow()
.with_context(err_context)?
.get(&terminal_id)
{
Some(Some(term)) => {
let ok = unsafe { FlushFileBuffers(term.input_write_handle) };
if ok == 0 {
// FlushFileBuffers can legitimately fail on pipe handlesView on GitHub (pinned to 98a0837077)
When it happens
Trigger: Thrown at zellij-server/src/os_input_output_windows.rs:602 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of zellij-org/zellij@98a0837077 (2026-08-16).
Data as JSON: /api/errors/681e92dc9218149f.
Report an issue: GitHub.