{"record":{"id":"fabb3eb1fea9950f","repo":"tinyhumansai/openhuman","slug":"config-load-e","errorCode":null,"errorMessage":"config load: {e}","messagePattern":"config load: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/openhuman/subconscious/user_thread.rs","lineNumber":127,"sourceCode":"        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\n#[cfg(test)]\nmod tests {\n    use super::*;\n\n    #[test]","sourceCodeStart":109,"sourceCodeEnd":145,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/subconscious/user_thread.rs#L109-L145","documentation":"notify_user rejected its input: the 'message' argument was absent, not a string, or whitespace-only after trimming. This is the argument-validation guard for the outward-facing notification tool; nothing was sent to the user.","triggerScenarios":"Thrown at src/openhuman/subconscious/user_thread.rs:127 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass a non-empty string in the 'message' argument","Trimmed-only whitespace does not count as a message; provide real content","Optionally add a 'subject' string as well"],"exampleFix":null,"handlingStrategy":"validation","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"}