{"record":{"id":"a61f7819be4537cf","repo":"tinyhumansai/openhuman","slug":"todo-replace-e","errorCode":null,"errorMessage":"todo_replace: {e}","messagePattern":"todo_replace: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/openhuman/threads/todos/tools.rs","lineNumber":476,"sourceCode":"        })\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] replace invoked\");\n        let cards_val = args\n            .get(\"cards\")\n            .cloned()\n            .ok_or_else(|| anyhow::anyhow!(\"missing required array argument `cards`\"))?;\n        let cards = serde_json::from_value(cards_val)\n            .map_err(|e| anyhow::anyhow!(\"todo_replace: invalid cards: {e}\"))?;\n        let location = board_location(&self.config, &args);\n        let snapshot = ops::replace(&location, cards)\n            .await\n            .map_err(|e| anyhow::anyhow!(\"todo_replace: {e}\"))?;\n        snapshot_to_result(snapshot)\n    }\n}\n\n/// Empty the board. **Destructive** — default-OFF.\npub struct TodoClearTool {\n    config: Arc<Config>,\n}\n\nimpl TodoClearTool {\n    pub fn new(config: Arc<Config>) -> Self {\n        Self { config }\n    }\n}\n\n#[async_trait]\nimpl Tool for TodoClearTool {\n    fn name(&self) -> &str {","sourceCodeStart":458,"sourceCodeEnd":494,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/threads/todos/tools.rs#L458-L494","documentation":"Generic wrapper from todo_replace: the wholesale board write failed after the cards array deserialized. The underlying {e} is the ops replace error — typically a persistence or validation failure in the board layer.","triggerScenarios":"Thrown at src/openhuman/threads/todos/tools.rs:476 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Read {e} for the board-layer failure reason","Verify write access to the thread's board storage","Retry 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"}