The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
feat(agent): persist oversized tool results as artifacts
Steven Enamakel67c951b0433d
diff --git a/crates/openhuman-core/src/agent/harness/tool_result_artifacts/mod.rs b/crates/openhuman-core/src/agent/harness/tool_result_artifacts/mod.rsindex f0c4f187da..96fe5e31c1 100644--- a/crates/openhuman-core/src/agent/harness/tool_result_artifacts/mod.rs+++ b/crates/openhuman-core/src/agent/harness/tool_result_artifacts/mod.rs@@ -127,10 +127,13 @@ impl HostArtifactStore {}}-/// The part of a key below the `tool-results` namespace (either form).+/// The part of a key below the tool-results namespace: the harness's+/// `harness/tool_results/…` (v2), `tool-results/…` (v1) or the relative+/// `artifacts/tool-results/…` form.fn relative_to_namespace(key: &str) -> &str {let key = key.trim_start_matches("./");key.strip_prefix("artifacts/tool-results/")+ .or_else(|| key.strip_prefix("harness/tool_results/")).or_else(|| key.strip_prefix("tool-results/")).unwrap_or(key)}diff --git a/crates/openhuman-core/src/agent/harness/tool_result_artifacts/mod_tests.rs b/crates/openhuman-core/src/agent/harness/tool_result_artifacts/mod_tests.rsindex 17d69363ae..7854784434 100644--- a/crates/openhuman-core/src/agent/harness/tool_result_artifacts/mod_tests.rs+++ b/crates/openhuman-core/src/agent/harness/tool_result_artifacts/mod_tests.rs@@ -32,7 +32,7 @@ async fn threshold_persists_to_blobs_and_file_read_serves_the_key() {).await;- let key = "tool-results/session_one/shell/call-1.txt";+ let key = "harness/tool_results/session_one/shell/call-1.txt";assert!(outcome.persisted);assert!(out.contains(&format!("artifact_path: {key}\n")), "{out}");assert!(out.contains("[preview]"));diff --git a/crates/openhuman-core/src/agent/session_host/artifact_wiring_tests.rs b/crates/openhuman-core/src/agent/session_host/artifact_wiring_tests.rsindex 8dded6549c..4a0f782be9 100644--- a/crates/openhuman-core/src/agent/session_host/artifact_wiring_tests.rs+++ b/crates/openhuman-core/src/agent/session_host/artifact_wiring_tests.rs@@ -54,7 +54,7 @@ async fn the_store_materialises_in_the_workspace_not_the_action_dir() {tool_result_artifacts_dir(&workspace));let pointer = store.path_for_read_tool("shell", Some("c"));- assert_eq!(pointer, "tool-results/s/shell/c.txt");+ assert_eq!(pointer, "harness/tool_results/s/shell/c.txt");}/// A large result is stored on the blob store, its pointer opens through the