{"record":{"id":"0ea24746dfbb8bde","repo":"FoundationAgents/OpenManus","slug":"parameter-plan-id-is-required-for-command-delet","errorCode":null,"errorMessage":"Parameter `plan_id` is required for command: delete","messagePattern":"Parameter `plan_id` is required for command: delete","errorType":"exception","errorClass":"ToolError","httpStatus":null,"severity":"error","filePath":"app/tool/planning.py","lineNumber":309,"sourceCode":"        ]:\n            raise ToolError(\n                f\"Invalid step_status: {step_status}. Valid statuses are: not_started, in_progress, completed, blocked\"\n            )\n\n        if step_status:\n            plan[\"step_statuses\"][step_index] = step_status\n\n        if step_notes:\n            plan[\"step_notes\"][step_index] = step_notes\n\n        return ToolResult(\n            output=f\"Step {step_index} updated in plan '{plan_id}'.\\n\\n{self._format_plan(plan)}\"\n        )\n\n    def _delete_plan(self, plan_id: Optional[str]) -> ToolResult:\n        \"\"\"Delete a plan.\"\"\"\n        if not plan_id:\n            raise ToolError(\"Parameter `plan_id` is required for command: delete\")\n\n        if plan_id not in self.plans:\n            raise ToolError(f\"No plan found with ID: {plan_id}\")\n\n        del self.plans[plan_id]\n\n        # If the deleted plan was the active plan, clear the active plan\n        if self._current_plan_id == plan_id:\n            self._current_plan_id = None\n\n        return ToolResult(output=f\"Plan '{plan_id}' has been deleted.\")\n\n    def _format_plan(self, plan: Dict) -> str:\n        \"\"\"Format a plan for display.\"\"\"\n        output = f\"Plan: {plan['title']} (ID: {plan['plan_id']})\\n\"\n        output += \"=\" * len(output) + \"\\n\\n\"\n\n        # Calculate progress statistics","sourceCodeStart":291,"sourceCodeEnd":327,"githubUrl":"https://github.com/FoundationAgents/OpenManus/blob/52a13f2a57d8c7f6737eefb02ccf569594d44273/app/tool/planning.py#L291-L327","documentation":"Error \"Parameter `plan_id` is required for command: delete\" thrown in FoundationAgents/OpenManus.","triggerScenarios":"Raised when the `delete` command is invoked on the planning tool without providing the required `plan_id` parameter.","commonSituations":"See trigger scenarios.","solutions":["Pass the `plan_id` parameter when calling the planning tool with command `delete`.","Call `list` first to find the ID of the plan you want to delete."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"52a13f2a57d8c7f6737eefb02ccf569594d44273","analyzedAt":"2026-08-15T02:33:49.993Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}