{"record":{"id":"5412bc4876489b14","repo":"tinyhumansai/openhuman","slug":"notify-user-message-is-required-and-non-empty","errorCode":null,"errorMessage":"notify_user: `message` is required and non-empty","messagePattern":"notify_user: `message` is required and non-empty","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/openhuman/subconscious/user_thread.rs","lineNumber":122,"sourceCode":"    }\n\n    fn permission_level(&self) -> PermissionLevel {\n        // Outward-facing: surfaces content to the user. Treated as a write\n        // so policy/approval can gate it under stricter autonomy tiers.\n        PermissionLevel::Write\n    }\n\n    fn scope(&self) -> ToolScope {\n        ToolScope::AgentOnly\n    }\n\n    async fn execute(&self, args: serde_json::Value) -> anyhow::Result<ToolResult> {\n        let message = args\n            .get(\"message\")\n            .and_then(|v| v.as_str())\n            .map(str::trim)\n            .filter(|s| !s.is_empty())\n            .ok_or_else(|| anyhow::anyhow!(\"notify_user: `message` is required and non-empty\"))?;\n        let subject = args.get(\"subject\").and_then(|v| v.as_str());\n\n        let config = crate::openhuman::config::load_config_with_timeout()\n            .await\n            .map_err(|e| anyhow::anyhow!(\"config load: {e}\"))?;\n\n        notify_user(config.workspace_dir, message, subject);\n        Ok(ToolResult::success(\n            \"Message delivered to the user.\".to_string(),\n        ))\n    }\n}\n\n/// All user-facing-thread tools, for registration into the tool registry.\npub fn all_user_thread_tools() -> Vec<Box<dyn Tool>> {\n    vec![Box::new(NotifyUserTool)]\n}\n","sourceCodeStart":104,"sourceCodeEnd":140,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/subconscious/user_thread.rs#L104-L140","documentation":"Generic error wrapper from create_skill's execute: the skill scaffolding/installation step itself failed after params parsed successfully. The underlying {e} distinguishes the real cause — typically an invalid skill name, an existing skill at the target path, or a filesystem error writing the skill directory.","triggerScenarios":"Thrown at src/openhuman/subconscious/user_thread.rs:122 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Read the wrapped error {e} for the concrete failure (name collision, invalid name, IO error)","If the skill already exists, choose a different name or update it instead of creating","Check write permissions on the skills directory for the chosen scope"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"749120085864ce16e0f273c7b86fac7740b39c5b","analyzedAt":"2026-08-17T21:21:45.363Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}