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
test(ci): bind agent harness threads to action root
Steven Enamakel94926096fcb5
diff --git a/tests/agent_harness_e2e.rs b/tests/agent_harness_e2e.rsindex 4342e5c68a..7865b01ea3 100644--- a/tests/agent_harness_e2e.rs+++ b/tests/agent_harness_e2e.rs@@ -789,6 +789,32 @@ async fn send_web_chat(.to_owned()}+async fn bind_thread_action_dir(stack: &Stack, thread_id: &str, action_dir: &Path) {+ let created = post_json_rpc(+ &stack.rpc_base,+ 7_900,+ "openhuman.threads_upsert",+ json!({+ "id": thread_id,+ "title": thread_id,+ "created_at": "2026-01-01T00:00:00Z"+ }),+ )+ .await;+ assert_no_jsonrpc_error(&created, "upsert attachment test thread");+ let bound = post_json_rpc(+ &stack.rpc_base,+ 7_901,+ "openhuman.threads_update_working_dir",+ json!({+ "thread_id": thread_id,+ "action_dir": action_dir.to_string_lossy()+ }),+ )+ .await;+ assert_no_jsonrpc_error(&bound, "bind attachment test thread action directory");+}+// ─── Tests ───────────────────────────────────────────────────────────────────// ─── Large-stack thread wrapper (mirrors json_rpc_e2e.rs:81-101) ────────────@@ -979,6 +1005,12 @@ async fn subagent_delegation_happy_path_inner() {let fixture_path =Path::new(env!("CARGO_MANIFEST_DIR")).join("../../tests/fixtures/images/handoff-hero.png");let stack = boot_stack().await;+ bind_thread_action_dir(+ &stack,+ "thread-sub",+ &stack._tmp.path().join("OpenHuman/projects"),+ )+ .await;let image_path = Path::new(&std::env::var("HOME").expect("test HOME")).join("OpenHuman/projects/delegation-vision.png");std::fs::create_dir_all(image_path.parent().expect("action directory"))@@ -1423,6 +1455,12 @@ async fn approval_gate_approve_flow_inner() {text_completion("Done. File written: APPROVED_WRITE_CANARY"),]);let stack = boot_stack_with_config(SUPERVISED_AUTONOMY_CONFIG).await;+ bind_thread_action_dir(+ &stack,+ "thread-approve",+ &stack._tmp.path().join("OpenHuman/projects"),+ )+ .await;// Pre-create the file so file_write sees it as an existing file and// external_effect_with_args returns true → approval gate intercepts.@@ -2193,6 +2231,12 @@ async fn multi_hop_delegation_chain_inner() {let fixture_path =Path::new(env!("CARGO_MANIFEST_DIR")).join("../../tests/fixtures/images/handoff-hero.png");let stack = boot_stack().await;+ bind_thread_action_dir(+ &stack,+ "thread-multihop",+ &stack._tmp.path().join("OpenHuman/projects"),+ )+ .await;let image_path = Path::new(&std::env::var("HOME").expect("test HOME")).join("OpenHuman/projects/delegation-vision.png");std::fs::create_dir_all(image_path.parent().expect("action directory"))