{"record":{"id":"fd49bd2bb0b52c72","repo":"tinyhumansai/openhuman","slug":"todo-remove-e","errorCode":null,"errorMessage":"todo_remove: {e}","messagePattern":"todo_remove: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/openhuman/threads/todos/tools.rs","lineNumber":417,"sourceCode":"            \"properties\": {\n                \"thread_id\": thread_id_prop(),\n                \"id\": { \"type\": \"string\", \"description\": \"Card id to remove (required).\" }\n            },\n            \"required\": [\"id\"]\n        })\n    }\n\n    fn permission_level(&self) -> PermissionLevel {\n        PermissionLevel::Write\n    }\n\n    async fn execute(&self, args: serde_json::Value) -> anyhow::Result<ToolResult> {\n        log::debug!(\"[tool][todos] remove invoked\");\n        let id = read_required_str(&args, \"id\")?;\n        let location = board_location(&self.config, &args);\n        let snapshot = ops::remove(&location, &id)\n            .await\n            .map_err(|e| anyhow::anyhow!(\"todo_remove: {e}\"))?;\n        snapshot_to_result(snapshot)\n    }\n}\n\n/// Replace the entire board with a supplied card set. **Destructive** —\n/// default-OFF.\npub struct TodoReplaceTool {\n    config: Arc<Config>,\n}\n\nimpl TodoReplaceTool {\n    pub fn new(config: Arc<Config>) -> Self {\n        Self { config }\n    }\n}\n\n#[async_trait]\nimpl Tool for TodoReplaceTool {","sourceCodeStart":399,"sourceCodeEnd":435,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/threads/todos/tools.rs#L399-L435","documentation":"Generic wrapper from todo_remove: deleting the card failed after the id argument read. The underlying {e} is the ops::remove error — most commonly no card with that id on the board.","triggerScenarios":"Thrown at src/openhuman/threads/todos/tools.rs:417 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Run todo_list and copy the card id exactly","Confirm you are targeting the same thread (or scratch) board the card lives on","Read {e} for the concrete removal failure"],"exampleFix":null,"handlingStrategy":"try-catch","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"}