{"record":{"id":"d765b45d48ebf50f","repo":"zellij-org/zellij","slug":"worker-name-should-not-be-specified-in-mess","errorCode":null,"errorMessage":"Worker name (\"{}\") should not be specified in message to plugin","messagePattern":"Worker name \\(\"(.+?)\"\\) should not be specified in message to plugin","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"zellij-server/src/plugins/zellij_exports.rs","lineNumber":2602,"sourceCode":"        ));\n}\n\nfn post_message_to(env: &PluginEnv, plugin_message: PluginMessage) -> Result<()> {\n    let worker_name = plugin_message\n        .worker_name\n        .ok_or(anyhow!(\"Worker name not specified in message to worker\"))?;\n    env.senders\n        .send_to_plugin(PluginInstruction::PostMessagesToPluginWorker(\n            env.plugin_id,\n            env.client_id,\n            worker_name,\n            vec![(plugin_message.name, plugin_message.payload)],\n        ))\n}\n\nfn post_message_to_plugin(env: &PluginEnv, plugin_message: PluginMessage) -> Result<()> {\n    if let Some(worker_name) = plugin_message.worker_name {\n        return Err(anyhow!(\n            \"Worker name (\\\"{}\\\") should not be specified in message to plugin\",\n            worker_name\n        ));\n    }\n    env.senders\n        .send_to_plugin(PluginInstruction::PostMessageToPlugin(\n            env.plugin_id,\n            env.client_id,\n            plugin_message.name,\n            plugin_message.payload,\n        ))\n}\n\nfn hide_self(env: &PluginEnv) -> Result<()> {\n    env.senders\n        .send_to_screen(ScreenInstruction::SuppressPane(\n            PaneId::Plugin(env.plugin_id),\n            env.client_id,","sourceCodeStart":2584,"sourceCodeEnd":2620,"githubUrl":"https://github.com/zellij-org/zellij/blob/5cb5df5cce4e16c5d1c57c7c062e4a90a7823c41/zellij-server/src/plugins/zellij_exports.rs#L2584-L2620","documentation":"Error \"Worker name (\"{}\") should not be specified in message to plugin\" thrown in zellij-org/zellij.","triggerScenarios":"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.","commonSituations":"Plugin code misusing the worker messaging API.","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."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5cb5df5cce4e16c5d1c57c7c062e4a90a7823c41","analyzedAt":"2026-08-19T07:42:58.758Z","contentChangedAt":"2026-08-19T07:42:58.758Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}