tinyhumansai/openhuman · error
artifact_list
Error message
artifact_list: {e} What it means
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.
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.
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at src/openhuman/agent/artifacts/tools.rs:91 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of tinyhumansai/openhuman@7491200858 (2026-08-17).
Data as JSON: /api/errors/d48960bc31d73e69.
Report an issue: GitHub.
Appendix: source
Thrown at src/openhuman/agent/artifacts/tools.rs:91
"type": "object",
"properties": {
"offset": { "type": "integer", "minimum": 0, "description": "Pagination offset (default 0)." },
"limit": { "type": "integer", "minimum": 1, "description": "Max artifacts to return (default 50, cap 200)." }
}
})
}
async fn execute(&self, args: serde_json::Value) -> anyhow::Result<ToolResult> {
log::debug!("[tool][artifacts] list invoked");
let offset = read_opt_usize(&args, "offset");
let limit = read_opt_usize(&args, "limit");
// The agent-facing tool surface lists everything in the workspace;
// the per-chat filter is an RPC-only knob used by the React panel
// (#3226). Keep the tool path unchanged so existing agent flows
// (orchestrator artifact reasoning) still see the full set.
let outcome = ops::ai_list_artifacts(&self.config, offset, limit, None)
.await
.map_err(|e| anyhow::anyhow!("artifact_list: {e}"))?;
Ok(ToolResult::success(serde_json::to_string(&outcome.value)?))
}
fn is_concurrency_safe(&self, _args: &serde_json::Value) -> bool {
true
}
}
/// Retrieve a single artifact's metadata plus its absolute on-disk path.
pub struct ArtifactGetTool {
config: Arc<Config>,
}
impl ArtifactGetTool {
pub fn new(config: Arc<Config>) -> Self {
Self { config }
}
}View on GitHub (pinned to 7491200858)