zellij-org/zellij · error · anyhow::Error

Unspecified exit reason

Error message

Unspecified exit reason

What it means

Error "Unspecified exit reason" thrown in zellij-org/zellij.

Solutions

  1. Check the attached error details and logs for the underlying cause.
  2. Retry the operation; if persistent, report the issue with reproduction steps.

When it happens

Trigger: Occurs when an optional protobuf enum field is unset; the converter cannot map it to a concrete value.

Common situations: Usually an environment problem, a race, or an internal invariant violation.


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

Appendix: source

Thrown at zellij-utils/src/ipc/protobuf_conversion.rs:3459

            ExitReason::CustomExitStatus(_status) => ProtoExitReason::CustomExitStatus,
        }
    }
}

impl TryFrom<ProtoExitReason> for ExitReason {
    type Error = anyhow::Error;
    fn try_from(reason: ProtoExitReason) -> Result<Self> {
        match reason {
            ProtoExitReason::Normal => Ok(ExitReason::Normal),
            ProtoExitReason::NormalDetached => Ok(ExitReason::NormalDetached),
            ProtoExitReason::ForceDetached => Ok(ExitReason::ForceDetached),
            ProtoExitReason::CannotAttach => Ok(ExitReason::CannotAttach),
            ProtoExitReason::Disconnect => Ok(ExitReason::Disconnect),
            ProtoExitReason::WebClientsForbidden => Ok(ExitReason::WebClientsForbidden),
            ProtoExitReason::KickedByHost => Ok(ExitReason::KickedByHost),
            ProtoExitReason::Error => Ok(ExitReason::Error("Protobuf error".to_string())),
            ProtoExitReason::CustomExitStatus => Ok(ExitReason::CustomExitStatus(0)),
            ProtoExitReason::Unspecified => Err(anyhow!("Unspecified exit reason")),
        }
    }
}

impl From<HostTerminalThemeMode> for ProtoHostTerminalThemeIndication {
    fn from(mode: HostTerminalThemeMode) -> Self {
        match mode {
            HostTerminalThemeMode::Dark => ProtoHostTerminalThemeIndication::Dark,
            HostTerminalThemeMode::Light => ProtoHostTerminalThemeIndication::Light,
        }
    }
}

impl From<ProtoHostTerminalThemeIndication> for HostTerminalThemeMode {
    fn from(mode: ProtoHostTerminalThemeIndication) -> Self {
        match mode {
            ProtoHostTerminalThemeIndication::Dark => HostTerminalThemeMode::Dark,
            ProtoHostTerminalThemeIndication::Light => HostTerminalThemeMode::Light,

View on GitHub (pinned to e839bfffa5)