zellij-org/zellij · error · anyhow::Error
Worker name (" ") should not be specified in message to…
Error message
Worker name ("{}") should not be specified in message to plugin What it means
Error "Worker name ("{}") should not be specified in message to plugin" thrown in zellij-org/zellij.
Solutions
- Set the worker name when posting a message to a worker; omit it when messaging a plugin.
- Check the plugin's post_message call targets the right destination type.
When it happens
Trigger: Occurs at zellij-server/src/plugins/zellij_exports.rs:2602 when the operation fails: "Worker name (\"{}\") should not be specified in message to plugin". Currently there is no defensive handling preventing or contextualizing this failure before it surfaces.
Common situations: Plugin code misusing the worker messaging API.
AI-assisted analysis of zellij-org/zellij@5cb5df5cce (2026-08-19).
Data as JSON: /api/errors/d765b45d48ebf50f.
Report an issue: GitHub.
Appendix: source
Thrown at zellij-server/src/plugins/zellij_exports.rs:2602
));
}
fn post_message_to(env: &PluginEnv, plugin_message: PluginMessage) -> Result<()> {
let worker_name = plugin_message
.worker_name
.ok_or(anyhow!("Worker name not specified in message to worker"))?;
env.senders
.send_to_plugin(PluginInstruction::PostMessagesToPluginWorker(
env.plugin_id,
env.client_id,
worker_name,
vec![(plugin_message.name, plugin_message.payload)],
))
}
fn post_message_to_plugin(env: &PluginEnv, plugin_message: PluginMessage) -> Result<()> {
if let Some(worker_name) = plugin_message.worker_name {
return Err(anyhow!(
"Worker name (\"{}\") should not be specified in message to plugin",
worker_name
));
}
env.senders
.send_to_plugin(PluginInstruction::PostMessageToPlugin(
env.plugin_id,
env.client_id,
plugin_message.name,
plugin_message.payload,
))
}
fn hide_self(env: &PluginEnv) -> Result<()> {
env.senders
.send_to_screen(ScreenInstruction::SuppressPane(
PaneId::Plugin(env.plugin_id),
env.client_id,View on GitHub (pinned to 5cb5df5cce)