zellij-org/zellij · error · anyhow::Error
Missing terminal_size
Error message
Missing terminal_size
What it means
Error "Missing terminal_size" thrown in zellij-org/zellij.
Source
Thrown at zellij-utils/src/ipc/protobuf_conversion.rs:266
is_web_client: first_client.is_web_client,
})
},
Some(client_to_server_msg::Message::AttachClient(attach)) => {
Ok(ClientToServerMsg::AttachClient {
cli_assets: attach
.cli_assets
.ok_or_else(|| anyhow!("Missing cli_assets"))?
.try_into()?,
tab_position_to_focus: attach.tab_position_to_focus.map(|pos| pos as usize),
pane_to_focus: attach.pane_to_focus.map(|p| p.try_into()).transpose()?,
is_web_client: attach.is_web_client,
})
},
Some(client_to_server_msg::Message::AttachWatcherClient(attach_watcher)) => {
Ok(ClientToServerMsg::AttachWatcherClient {
terminal_size: attach_watcher
.terminal_size
.ok_or_else(|| anyhow::anyhow!("Missing terminal_size"))?
.try_into()?,
is_web_client: attach_watcher.is_web_client,
})
},
Some(client_to_server_msg::Message::Action(action)) => Ok(ClientToServerMsg::Action {
action: action
.action
.ok_or_else(|| anyhow!("Missing action"))?
.try_into()?,
terminal_id: action.terminal_id,
client_id: action.client_id.map(|id| id as u16),
is_cli_client: action.is_cli_client,
}),
Some(client_to_server_msg::Message::Key(key)) => Ok(ClientToServerMsg::Key {
key: key.key.ok_or_else(|| anyhow!("Missing key"))?.try_into()?,
raw_bytes: key.raw_bytes.into_iter().map(|b| b as u8).collect(),
is_kitty_keyboard_protocol: key.is_kitty_keyboard_protocol,
}),View on GitHub (pinned to e839bfffa5)
Solutions
- Include the required 'terminal_size' field in the protobuf message before sending it.
- Verify the sender populates all mandatory fields; add a presence check before conversion.
When it happens
Trigger: Occurs when a protobuf message received over IPC omits the required field; deserialization fails instead of using a default.
Common situations: Occurs when a client or plugin sends an incompletely populated message, often from a version mismatch or hand-crafted payload.
AI-assisted analysis of zellij-org/zellij@e839bfffa5 (2026-08-19).
Data as JSON: /api/errors/a07481adbee6bb65.
Report an issue: GitHub.