zellij-org/zellij · error · anyhow::Error
Missing connect_to_session
Error message
Missing connect_to_session
What it means
Error "Missing connect_to_session" thrown in zellij-org/zellij.
Source
Thrown at zellij-utils/src/ipc/protobuf_conversion.rs:638
other => other.try_into()?,
};
Ok(ServerToClientMsg::Exit { exit_reason })
},
Some(server_to_client_msg::Message::Connected(_)) => Ok(ServerToClientMsg::Connected),
Some(server_to_client_msg::Message::Log(log)) => {
Ok(ServerToClientMsg::Log { lines: log.lines })
},
Some(server_to_client_msg::Message::LogError(log_error)) => {
Ok(ServerToClientMsg::LogError {
lines: log_error.lines,
})
},
Some(server_to_client_msg::Message::SwitchSession(switch)) => {
Ok(ServerToClientMsg::SwitchSession {
connect_to_session: switch
.connect_to_session
.ok_or_else(|| anyhow!("Missing connect_to_session"))?
.try_into()?,
})
},
Some(server_to_client_msg::Message::UnblockCliPipeInput(unblock)) => {
Ok(ServerToClientMsg::UnblockCliPipeInput {
pipe_name: unblock.pipe_name,
})
},
Some(server_to_client_msg::Message::CliPipeOutput(pipe_output)) => {
Ok(ServerToClientMsg::CliPipeOutput {
pipe_name: pipe_output.pipe_name,
output: pipe_output.output,
})
},
Some(server_to_client_msg::Message::QueryTerminalSize(_)) => {
Ok(ServerToClientMsg::QueryTerminalSize)
},
Some(server_to_client_msg::Message::StartWebServer(_)) => {View on GitHub (pinned to e839bfffa5)
Solutions
- Include the required 'connect_to_session' 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/d4873fe322dc8d96.
Report an issue: GitHub.