Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

refactor(subagent_host): simplify local directory resolution

Steven Enamakel9f7bf2c56227
diff --git a/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs b/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs
index d7ae735fd3..40ee472ed9 100644
--- a/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs
@@ -571,12 +571,7 @@ async fn run_typed_mode(
// (not per turn) keeps the sub-agent system
// prompt byte-stable for prefix caching.
let agents_md = if parent.agent_config.agents_md_enabled {
- let local_dir = options
- .workspace_descriptor
- .as_ref()
- .or(parent.workspace_descriptor.as_ref())
- .map(|descriptor| descriptor.root.clone())
- .or_else(|| config.as_ref().ok().map(|c| c.action_dir.clone()));
+ let local_dir = config.as_ref().ok().map(|c| c.action_dir.clone());
match local_dir {
Some(dir) => crate::agent::prompts::load_agents_md_layers(&parent.workspace_dir, &dir),
None => {
diff --git a/docs/TEST-COVERAGE-MATRIX.md b/docs/TEST-COVERAGE-MATRIX.md
index 3846491060..e43b2be0c9 100644
--- a/docs/TEST-COVERAGE-MATRIX.md
+++ b/docs/TEST-COVERAGE-MATRIX.md
@@ -225,7 +225,7 @@ End-to-end coverage of the agent harness via the web-chat RPC surface against an
| 4.4.5 | Approval Gate — TTL Timeout | RI | `tests/agent_harness_e2e.rs` | ✅ | `OPENHUMAN_APPROVAL_TTL_SECS` (debug-only) → no decision → auto-deny |
| 4.4.6 | Subagent + Approval Gate | RI | `tests/agent_harness_e2e.rs` | ✅ | Approval fires inside subagent context; decision propagates; artifact content asserted |
| 4.4.7 | Multi-turn State Persistence | RI+RU | `tests/agent_harness_e2e.rs`, `crates/openhuman-core/src/agent/session_host/runtime_adapter_tests.rs::a_cold_resumed_thread_can_send_again`, `crates/openhuman-core/src/agent/session_host/transcript_compat_tests.rs` | ✅ | Turn-2 request carries turn-1 history; a cold host resumes the committed thread and accepts another turn (#6608). Historical tool results replay after executor retirement; a missing executor recovers as an unknown-tool response without restoring execution authority (#7410) |
-| 4.4.8 | Concurrent Async Subagent Tasks | RI | `tests/agent_harness_e2e.rs` | ✅ | Independent async sub-agent runs can overlap and both results reach the parent |
+| 4.4.8 | Concurrent Async Subagent Tasks | RI | `tests/agent_harness_e2e.rs` | ✅ | Two independent async workers dispatch and overlap concurrently; parent delivery is not asserted here |
| 4.4.9 | Max Iterations / Empty Response | RI | `tests/agent_harness_e2e.rs` | ✅ | Tool-call limit surface + empty-completion graceful terminal (both skip Sentry) |
| 4.4.10 | Provider Error Retry | RI | `tests/agent_harness_e2e.rs` | ✅ | First upstream 500 retried by ReliableProvider; second succeeds |
| 4.4.11 | Inference Phase Transitions | WD | `app/test/e2e/specs/agent-harness-behaviors.spec.ts` | ✅ | Redux `inferenceStatusByThread` observes `subagent` phase then clears to idle |