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

Failed to serialized plugin ids

Error message

Failed to serialized plugin ids: {}

What it means

Error "Failed to serialized plugin ids: {}" thrown in zellij-org/zellij.

Solutions

  1. Check the attached error for the underlying serialization failure and fix the offending data.
  2. Ensure plugin/wasm artifacts and zellij versions are compatible.

When it happens

Trigger: Occurs at zellij-server/src/plugins/zellij_exports.rs:941 when the operation fails: "Failed to serialized plugin ids: {}". Currently there is no defensive handling preventing or contextualizing this failure before it surfaces.

Common situations: Typically version skew, corrupted data, or an unexpected payload shape.


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

Appendix: source

Thrown at zellij-server/src/plugins/zellij_exports.rs:941

            plugin_id: env.plugin_id,
        });

    env.senders
        .send_to_screen(ScreenInstruction::RequestPluginPermissions(
            env.plugin_id,
            PluginPermission::new(env.plugin.location.to_string(), permissions),
        ))
}

fn get_plugin_ids(env: &PluginEnv) {
    let ids = PluginIds {
        plugin_id: env.plugin_id,
        zellij_pid: process::id(),
        initial_cwd: env.plugin_cwd.clone(),
        client_id: env.client_id,
    };
    ProtobufPluginIds::try_from(ids)
        .map_err(|e| anyhow!("Failed to serialized plugin ids: {}", e))
        .and_then(|serialized| {
            wasi_write_object(env, &serialized.encode_to_vec())?;
            Ok(())
        })
        .with_context(|| {
            format!(
                "failed to query plugin IDs from host for plugin {}",
                env.name()
            )
        })
        .non_fatal();
}

fn get_zellij_version(env: &PluginEnv) {
    let protobuf_zellij_version = ProtobufZellijVersion {
        version: VERSION.to_owned(),
    };
    wasi_write_object(env, &protobuf_zellij_version.encode_to_vec())

View on GitHub (pinned to 5cb5df5cce)