{"record":{"id":"d48960bc31d73e69","repo":"tinyhumansai/openhuman","slug":"artifact-list-e","errorCode":null,"errorMessage":"artifact_list: {e}","messagePattern":"artifact_list: (.+?)","errorType":"error_code","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/openhuman/agent/artifacts/tools.rs","lineNumber":91,"sourceCode":"            \"type\": \"object\",\n            \"properties\": {\n                \"offset\": { \"type\": \"integer\", \"minimum\": 0, \"description\": \"Pagination offset (default 0).\" },\n                \"limit\": { \"type\": \"integer\", \"minimum\": 1, \"description\": \"Max artifacts to return (default 50, cap 200).\" }\n            }\n        })\n    }\n\n    async fn execute(&self, args: serde_json::Value) -> anyhow::Result<ToolResult> {\n        log::debug!(\"[tool][artifacts] list invoked\");\n        let offset = read_opt_usize(&args, \"offset\");\n        let limit = read_opt_usize(&args, \"limit\");\n        // The agent-facing tool surface lists everything in the workspace;\n        // the per-chat filter is an RPC-only knob used by the React panel\n        // (#3226). Keep the tool path unchanged so existing agent flows\n        // (orchestrator artifact reasoning) still see the full set.\n        let outcome = ops::ai_list_artifacts(&self.config, offset, limit, None)\n            .await\n            .map_err(|e| anyhow::anyhow!(\"artifact_list: {e}\"))?;\n        Ok(ToolResult::success(serde_json::to_string(&outcome.value)?))\n    }\n\n    fn is_concurrency_safe(&self, _args: &serde_json::Value) -> bool {\n        true\n    }\n}\n\n/// Retrieve a single artifact's metadata plus its absolute on-disk path.\npub struct ArtifactGetTool {\n    config: Arc<Config>,\n}\n\nimpl ArtifactGetTool {\n    pub fn new(config: Arc<Config>) -> Self {\n        Self { config }\n    }\n}","sourceCodeStart":73,"sourceCodeEnd":109,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/agent/artifacts/tools.rs#L73-L109","documentation":"Error-context wrapper in the ArtifactListTool execute path. After reading optional offset/limit args, the tool calls `ops::ai_get_artifact`/list; any failure from the artifact store or ops layer (store unavailable, bad pagination, persistence error) is caught and re-emitted as `artifact_list: {e}` so the agent-visible result names which tool failed, with the cause appended.","triggerScenarios":"Thrown at src/openhuman/agent/artifacts/tools.rs:91 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Read the cause after `artifact_list:` — it carries the underlying store/ops error.","Retry with default pagination (omit offset/limit) in case the supplied range was invalid.","If the store is persistently failing, check core logs and workspace disk state before retrying."],"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-23T08:17:48.524Z"}