{"record":{"id":"e6ef8d83f583886c","repo":"tinyhumansai/openhuman","slug":"thread-read-e","errorCode":null,"errorMessage":"thread_read: {e}","messagePattern":"thread_read: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/openhuman/threads/tools.rs","lineNumber":130,"sourceCode":"    fn description(&self) -> &str {\n        \"Read one conversation thread's metadata by `thread_id` (title, labels, \\\n         timestamps). For the messages themselves, use `thread_message_list`.\"\n    }\n\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]","sourceCodeStart":112,"sourceCodeEnd":148,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/threads/tools.rs#L112-L148","documentation":"Generic wrapper from thread_read: the underlying threads_list ops call failed, so the thread metadata could not even be looked up. The {e} carries the RPC/ops-layer error, not a per-thread fact.","triggerScenarios":"Thrown at src/openhuman/threads/tools.rs:130 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Read {e} for the ops-layer failure","Retry transient errors","If persistent, check core logs for the threads domain"],"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"}