{"record":{"id":"e6991dd59af0a5ed","repo":"tinyhumansai/openhuman","slug":"missing-paths-parameter","errorCode":null,"errorMessage":"Missing 'paths' parameter","messagePattern":"Missing 'paths' parameter","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/openhuman/tools/impl/filesystem/git_operations.rs","lineNumber":347,"sourceCode":"\n        // Limit message length\n        let message = Self::truncate_commit_message(&sanitized);\n\n        let output = self\n            .run_git_command_in(cwd, &[\"commit\", \"-m\", &message])\n            .await;\n\n        match output {\n            Ok(_) => Ok(ToolResult::success(format!(\"Committed: {message}\"))),\n            Err(e) => Ok(ToolResult::error(format!(\"Commit failed: {e}\"))),\n        }\n    }\n\n    async fn git_add(&self, cwd: &Path, args: serde_json::Value) -> anyhow::Result<ToolResult> {\n        let paths = args\n            .get(\"paths\")\n            .and_then(|v| v.as_str())\n            .ok_or_else(|| anyhow::anyhow!(\"Missing 'paths' parameter\"))?;\n\n        // Validate paths against injection patterns\n        self.sanitize_git_args(paths)?;\n\n        let output = self.run_git_command_in(cwd, &[\"add\", \"--\", paths]).await;\n\n        match output {\n            Ok(_) => Ok(ToolResult::success(format!(\"Staged: {paths}\"))),\n            Err(e) => Ok(ToolResult::error(format!(\"Add failed: {e}\"))),\n        }\n    }\n\n    async fn git_checkout(\n        &self,\n        cwd: &Path,\n        args: serde_json::Value,\n    ) -> anyhow::Result<ToolResult> {\n        let branch = args","sourceCodeStart":329,"sourceCodeEnd":365,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/tools/impl/filesystem/git_operations.rs#L329-L365","documentation":"Git tool argument guard inside git_add: the required 'paths' argument is missing or not a string. Fires before path sanitization or `git add` runs.","triggerScenarios":"Thrown at src/openhuman/tools/impl/filesystem/git_operations.rs:347 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass 'paths' as a string of the file(s) to stage","Use a space- or git-compatible path spec the tool's sanitizer accepts"],"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-14T00:17:10.932Z"}