{"record":{"id":"89a31bb523894eea","repo":"tinyhumansai/openhuman","slug":"todo-add-e","errorCode":null,"errorMessage":"todo_add: {e}","messagePattern":"todo_add: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/openhuman/threads/todos/tools.rs","lineNumber":202,"sourceCode":"                \"notes\": { \"type\": \"string\" },\n                \"blocker\": { \"type\": \"string\" }\n            },\n            \"required\": [\"content\"]\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] add invoked\");\n        let content = read_required_str(&args, \"content\")?;\n        let location = board_location(&self.config, &args);\n        let patch = card_patch(&args)?;\n        let snapshot = ops::add(&location, &content, patch)\n            .await\n            .map_err(|e| anyhow::anyhow!(\"todo_add: {e}\"))?;\n        snapshot_to_result(snapshot)\n    }\n}\n\n/// Edit an existing card (partial update).\npub struct TodoEditTool {\n    config: Arc<Config>,\n}\n\nimpl TodoEditTool {\n    pub fn new(config: Arc<Config>) -> Self {\n        Self { config }\n    }\n}\n\n#[async_trait]\nimpl Tool for TodoEditTool {\n    fn name(&self) -> &str {","sourceCodeStart":184,"sourceCodeEnd":220,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/threads/todos/tools.rs#L184-L220","documentation":"Generic wrapper from todo_add: adding a card to the board failed after 'content' and the optional card patch parsed. The underlying {e} is the ops::add error — usually a malformed patch field or a board persistence failure.","triggerScenarios":"Thrown at src/openhuman/threads/todos/tools.rs:202 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect {e} for which optional field (status, objective, notes, ...) was invalid","Ensure status values match the allowed set when provided","Retry on transient persistence errors"],"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"}