zellij-org/zellij · error

Program terminates

Error message

Program terminates

What it means

Error "Program terminates" thrown in zellij-org/zellij.

Solutions

  1. Check preceding log lines for the root cause; this is the generic termination marker.
  2. Run with increased logging (zellij --debug) to find the originating error.

When it happens

Trigger: Occurs at zellij-utils/src/errors.rs:160 when the operation fails: "Program terminates". Currently there is no defensive handling preventing or contextualizing this failure before it surfaces.

Common situations: Appears at the end of any fatal error path; not a root cause by itself.


AI-assisted analysis of zellij-org/zellij@5cb5df5cce (2026-08-19). Data as JSON: /api/errors/4bb3d0a1533d54d8. Report an issue: GitHub.

Appendix: source

Thrown at zellij-utils/src/errors.rs:160

}

/// Helper function to silence `#[warn(unused_must_use)]` cargo warnings. Used exclusively in
/// `FatalError::non_fatal`!
fn discard_result<T>(_arg: anyhow::Result<T>) {}

impl<T> FatalError<T> for anyhow::Result<T> {
    fn non_fatal(self) {
        if self.is_err() {
            discard_result(self.context("a non-fatal error occured").to_log());
        }
    }

    fn fatal(self) -> T {
        if let Ok(val) = self {
            val
        } else {
            self.context("a fatal error occured")
                .expect("Program terminates")
        }
    }
}

/// Different types of calls that form an [`ErrorContext`] call stack.
///
/// Complex variants store a variant of a related enum, whose variants can be built from
/// the corresponding Zellij MSPC instruction enum variants ([`ScreenInstruction`],
/// [`PtyInstruction`], [`ClientInstruction`], etc).
#[derive(Copy, Clone, PartialEq, Serialize, Deserialize, Debug)]
pub enum ContextType {
    /// A screen-related call.
    Screen(ScreenContext),
    /// A PTY-related call.
    Pty(PtyContext),
    /// A plugin-related call.
    Plugin(PluginContext),
    /// An app-related call.

View on GitHub (pinned to 5cb5df5cce)