zellij-org/zellij · error
Invalid session name: {}
Error message
Invalid session name: {} What it means
Error "Invalid session name: {}" thrown in zellij-org/zellij.
Source
Thrown at zellij-client/src/web_client/session_management.rs:143
cwd: None,
host_terminal_env: Default::default(),
initial_panes: None,
};
let is_web_client = true;
ClientToServerMsg::AttachClient {
cli_assets,
tab_position_to_focus: None,
pane_to_focus: None,
is_web_client,
}
}
}
pub fn create_ipc_pipe(session_name: &str) -> PathBuf {
if let Err(e) = zellij_utils::sessions::validate_session_name(session_name) {
log::error!("Invalid session name: {}", e);
panic!("Invalid session name: {}", e);
}
let zellij_ipc_pipe: PathBuf = {
let mut sock_dir = zellij_utils::consts::ZELLIJ_SOCK_DIR.clone();
fs::create_dir_all(&sock_dir).unwrap();
zellij_utils::shared::set_permissions(&sock_dir, 0o700).unwrap();
sock_dir.push(session_name);
sock_dir
};
crate::check_ipc_pipe_length(&zellij_ipc_pipe);
zellij_ipc_pipe
}
View on GitHub (pinned to e839bfffa5)
Solutions
- Validate the value against the allowed enum range before constructing the message.
- Ensure client and server use matching protobuf definitions; regenerate bindings if versions differ.
When it happens
Trigger: Occurs when a protobuf enum value received over IPC has no matching variant; conversion rejects the unknown value.
Common situations: Typical of version skew between client and server, or a malformed/corrupted IPC message.
AI-assisted analysis of zellij-org/zellij@e839bfffa5 (2026-08-19).
Data as JSON: /api/errors/c5fa9542dd78f63d.
Report an issue: GitHub.