{"record":{"id":"e8af27514eb7e37d","repo":"tinyhumansai/openhuman","slug":"missing-id-parameter-for-pause-action","errorCode":null,"errorMessage":"Missing 'id' parameter for pause action","messagePattern":"Missing 'id' parameter for pause action","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/openhuman/tools/impl/system/schedule.rs","lineNumber":137,"sourceCode":"            }\n            \"cancel\" | \"remove\" => {\n                if let Some(blocked) = self.enforce_mutation_allowed(action) {\n                    return Ok(blocked);\n                }\n                let id = args\n                    .get(\"id\")\n                    .and_then(|value| value.as_str())\n                    .ok_or_else(|| anyhow::anyhow!(\"Missing 'id' parameter for cancel action\"))?;\n                Ok(self.handle_cancel(id))\n            }\n            \"pause\" => {\n                if let Some(blocked) = self.enforce_mutation_allowed(action) {\n                    return Ok(blocked);\n                }\n                let id = args\n                    .get(\"id\")\n                    .and_then(|value| value.as_str())\n                    .ok_or_else(|| anyhow::anyhow!(\"Missing 'id' parameter for pause action\"))?;\n                Ok(self.handle_pause_resume(id, true))\n            }\n            \"resume\" => {\n                if let Some(blocked) = self.enforce_mutation_allowed(action) {\n                    return Ok(blocked);\n                }\n                let id = args\n                    .get(\"id\")\n                    .and_then(|value| value.as_str())\n                    .ok_or_else(|| anyhow::anyhow!(\"Missing 'id' parameter for resume action\"))?;\n                Ok(self.handle_pause_resume(id, false))\n            }\n            other => Ok(ToolResult::error(format!(\n                    \"Unknown action '{other}'. Use create/add/once/list/get/cancel/remove/pause/resume.\"\n                ))),\n        }\n    }\n}","sourceCodeStart":119,"sourceCodeEnd":155,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/tools/impl/system/schedule.rs#L119-L155","documentation":"The pause action passed mutation approval but args lack the job 'id' string; fires before handle_pause_resume is called, so the job state is untouched.","triggerScenarios":"Thrown at src/openhuman/tools/impl/system/schedule.rs:137 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Include the \"id\" of the job to pause"],"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"}