Skip to content

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

refactor(agent): remove unused subagent tool fields

Steven Enamakelaf7a1c7d15df
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/continue_subagent_host.rs b/crates/openhuman-core/src/agent/orchestration/tools/continue_subagent_host.rs
index 743720165a..dc9519b555 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/continue_subagent_host.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/continue_subagent_host.rs
@@ -539,9 +539,6 @@ impl ContinueSubagentTool {
// parent turn's ledger, so it stays silent: omission adds
// nothing, which is the status quo. See the field's docs.
usage: None,
- worktree_path: None,
- changed_files: Vec::new(),
- dirty_status: None,
stop: None,
})
.await;
@@ -584,9 +581,6 @@ impl ContinueSubagentTool {
// parent turn's ledger, so it stays silent: omission adds
// nothing, which is the status quo. See the field's docs.
usage: None,
- worktree_path: None,
- changed_files: Vec::new(),
- dirty_status: None,
stop: incomplete_stop(
reason,
outcome.failure_cause.clone(),
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_completion.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_completion.rs
index ab7ed36e94..5716df1300 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_completion.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_completion.rs
@@ -113,9 +113,6 @@ pub(super) fn make_completion(
// spend never reached the parent turn's
// ledger or `chat_done`. See the field docs.
usage: Some(outcome.usage),
- worktree_path: None,
- changed_files: Vec::new(),
- dirty_status: None,
stop: None,
})
.await;
@@ -182,9 +179,6 @@ pub(super) fn make_completion(
// spend never reached the parent turn's
// ledger or `chat_done`. See the field docs.
usage: Some(outcome.usage),
- worktree_path: None,
- changed_files: Vec::new(),
- dirty_status: None,
stop: incomplete_stop(
reason,
outcome.failure_cause.clone(),
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_host_impl.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_host_impl.rs
index 43f35a0fad..08ab01817c 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_host_impl.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_host_impl.rs
@@ -391,9 +391,6 @@ impl SpawnSubagentTool {
// ledger, so `chat_done` already carries its tokens AND its
// cost. Populating here would double both. See the field's docs.
usage: None,
- worktree_path: None,
- changed_files: Vec::new(),
- dirty_status: None,
stop: None,
})
.await;
@@ -471,9 +468,6 @@ impl SpawnSubagentTool {
// ledger, so `chat_done` already carries its tokens AND its
// cost. Populating here would double both. See the field's docs.
usage: None,
- worktree_path: None,
- changed_files: Vec::new(),
- dirty_status: None,
stop: incomplete_stop(
reason,
outcome.failure_cause.clone(),
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/subagent_abort_report_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/subagent_abort_report_tests.rs
index b27e34c24e..50e0abb398 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/subagent_abort_report_tests.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/subagent_abort_report_tests.rs
@@ -92,9 +92,6 @@ fn completed(task_id: &str) -> AgentProgress {
output_chars: 2,
output: "ok".into(),
usage: None,
- worktree_path: None,
- changed_files: Vec::new(),
- dirty_status: None,
stop: None,
}
}
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/subagent_dispatch_host.rs b/crates/openhuman-core/src/agent/orchestration/tools/subagent_dispatch_host.rs
index bc745d5d1e..6b063448b7 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/subagent_dispatch_host.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/subagent_dispatch_host.rs
@@ -456,9 +456,6 @@ pub(crate) async fn dispatch_subagent_with_live_parent(
// parent turn's ledger, so it stays silent: omission adds
// nothing, which is the status quo. See the field's docs.
usage: None,
- worktree_path: None,
- changed_files: Vec::new(),
- dirty_status: None,
stop: None,
})
.await;
@@ -525,9 +522,6 @@ pub(crate) async fn dispatch_subagent_with_live_parent(
// parent turn's ledger, so it stays silent: omission adds
// nothing, which is the status quo. See the field's docs.
usage: None,
- worktree_path: None,
- changed_files: Vec::new(),
- dirty_status: None,
stop: incomplete_stop(reason, outcome.failure_cause.clone()),
})
.await;
diff --git a/crates/openhuman-core/src/threads/turn_state/mirror_observe_tests.rs b/crates/openhuman-core/src/threads/turn_state/mirror_observe_tests.rs
index 82cee92e99..8fd4037c4d 100644
--- a/crates/openhuman-core/src/threads/turn_state/mirror_observe_tests.rs
+++ b/crates/openhuman-core/src/threads/turn_state/mirror_observe_tests.rs
@@ -529,9 +529,6 @@ fn subagent_lifecycle_records_and_clears_active() {
output_chars: 80,
usage: None,
output: String::new(),
- worktree_path: None,
- changed_files: Vec::new(),
- dirty_status: None,
stop: None,
});
let s = m.snapshot();
@@ -721,9 +718,6 @@ fn subagent_completed_persists_capped_output_on_the_activity() {
output_chars: 11,
usage: None,
output: "final answer".into(),
- worktree_path: None,
- changed_files: Vec::new(),
- dirty_status: None,
stop: None,
});