tinyhumansai/openhuman · error

Missing 'id' parameter for resume action

Error message

Missing 'id' parameter for resume action

What it means

The resume action passed mutation approval but args lack the job 'id' string; fires before the pause/resume handler runs.

Source

Thrown at src/openhuman/tools/impl/system/schedule.rs:147

            }
            "pause" => {
                if let Some(blocked) = self.enforce_mutation_allowed(action) {
                    return Ok(blocked);
                }
                let id = args
                    .get("id")
                    .and_then(|value| value.as_str())
                    .ok_or_else(|| anyhow::anyhow!("Missing 'id' parameter for pause action"))?;
                Ok(self.handle_pause_resume(id, true))
            }
            "resume" => {
                if let Some(blocked) = self.enforce_mutation_allowed(action) {
                    return Ok(blocked);
                }
                let id = args
                    .get("id")
                    .and_then(|value| value.as_str())
                    .ok_or_else(|| anyhow::anyhow!("Missing 'id' parameter for resume action"))?;
                Ok(self.handle_pause_resume(id, false))
            }
            other => Ok(ToolResult::error(format!(
                    "Unknown action '{other}'. Use create/add/once/list/get/cancel/remove/pause/resume."
                ))),
        }
    }
}

impl ScheduleTool {
    fn enforce_mutation_allowed(&self, action: &str) -> Option<ToolResult> {
        if !self.security.can_act() {
            return Some(ToolResult::error(format!(
                "[policy-blocked] Security policy: read-only mode, cannot perform '{action}'"
            )));
        }

        if !self.security.record_action() {

View on GitHub (pinned to 7491200858)

Solutions

  1. Include the "id" of the job to resume
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at src/openhuman/tools/impl/system/schedule.rs:147 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of tinyhumansai/openhuman@7491200858 (2026-08-17). Data as JSON: /api/errors/53e560975c4053ee. Report an issue: GitHub.