{"record":{"id":"f7f1543f08dc83a4","repo":"tinyhumansai/openhuman","slug":"thread-read-thread-thread-id-not-found","errorCode":null,"errorMessage":"thread_read: thread `{thread_id}` not found","messagePattern":"thread_read: thread `(.+?)` not found","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/openhuman/threads/tools.rs","lineNumber":134,"sourceCode":"\n    fn parameters_schema(&self) -> serde_json::Value {\n        json!({\n            \"type\": \"object\",\n            \"properties\": { \"thread_id\": { \"type\": \"string\", \"description\": \"Thread id.\" } },\n            \"required\": [\"thread_id\"]\n        })\n    }\n\n    async fn execute(&self, args: serde_json::Value) -> anyhow::Result<ToolResult> {\n        log::debug!(\"[tool][threads] read invoked\");\n        let thread_id = read_required_str(&args, \"thread_id\")?;\n        let outcome = ops::threads_list(EmptyRequest {})\n            .await\n            .map_err(|e| anyhow::anyhow!(\"thread_read: {e}\"))?;\n        let value = serde_json::to_value(&outcome.value)?;\n        match find_thread_obj(&value, &thread_id) {\n            Some(found) => Ok(ToolResult::success(serde_json::to_string(&found)?)),\n            None => Err(anyhow::anyhow!(\n                \"thread_read: thread `{thread_id}` not found\"\n            )),\n        }\n    }\n\n    fn is_concurrency_safe(&self, _args: &serde_json::Value) -> bool {\n        true\n    }\n}\n\n/// Create a new thread.\npub struct ThreadCreateTool;\n\n#[async_trait]\nimpl Tool for ThreadCreateTool {\n    fn name(&self) -> &str {\n        \"thread_create\"\n    }","sourceCodeStart":116,"sourceCodeEnd":152,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/threads/tools.rs#L116-L152","documentation":"thread_read scanned the thread list and found no thread whose id equals the given thread_id. This is a not-found result derived from threads_list output, not a storage error — the id is wrong, archived, or from another workspace.","triggerScenarios":"Thrown at src/openhuman/threads/tools.rs:134 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Copy the thread_id exactly from the thread list","List threads to confirm the id exists in this workspace","Check for archived or deleted threads"],"exampleFix":null,"handlingStrategy":"validation","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"}