Skip to content

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

test(progress): add stop field to AgentProgress test fixtures

Steven Enamakel87e89f569358
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 394764f1c0..b27e34c24e 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
@@ -95,6 +95,7 @@ fn completed(task_id: &str) -> AgentProgress {
worktree_path: None,
changed_files: Vec::new(),
dirty_status: None,
+ stop: None,
}
}
diff --git a/crates/openhuman-core/src/agent/progress_tracing/progress_tracing_accuracy_tests.rs b/crates/openhuman-core/src/agent/progress_tracing/progress_tracing_accuracy_tests.rs
index 195c6e4d32..ed2b76049f 100644
--- a/crates/openhuman-core/src/agent/progress_tracing/progress_tracing_accuracy_tests.rs
+++ b/crates/openhuman-core/src/agent/progress_tracing/progress_tracing_accuracy_tests.rs
@@ -98,6 +98,7 @@ fn child_completed(task: &str, elapsed: u64) -> AgentProgress {
worktree_path: None,
changed_files: Vec::new(),
dirty_status: None,
+ stop: None,
}
}
diff --git a/crates/openhuman-core/src/agent/progress_tracing/progress_tracing_attribution_tests.rs b/crates/openhuman-core/src/agent/progress_tracing/progress_tracing_attribution_tests.rs
index efe86f2897..61f5467d22 100644
--- a/crates/openhuman-core/src/agent/progress_tracing/progress_tracing_attribution_tests.rs
+++ b/crates/openhuman-core/src/agent/progress_tracing/progress_tracing_attribution_tests.rs
@@ -634,6 +634,7 @@ fn subagent_span_records_prompt_and_final_output_when_capture_on() {
worktree_path: None,
changed_files: vec![],
dirty_status: None,
+ stop: None,
},
105,
),
diff --git a/crates/openhuman-core/src/agent/progress_tracing/progress_tracing_content_gate_tests.rs b/crates/openhuman-core/src/agent/progress_tracing/progress_tracing_content_gate_tests.rs
index 60e7461e94..9620e6b68e 100644
--- a/crates/openhuman-core/src/agent/progress_tracing/progress_tracing_content_gate_tests.rs
+++ b/crates/openhuman-core/src/agent/progress_tracing/progress_tracing_content_gate_tests.rs
@@ -17,6 +17,7 @@ fn subagent_content_is_withheld_when_capture_off() {
worktree_path: None,
changed_files: vec![],
dirty_status: None,
+ stop: None,
},
105,
),
diff --git a/crates/openhuman-core/src/agent/progress_tracing/progress_tracing_span_tree_tests.rs b/crates/openhuman-core/src/agent/progress_tracing/progress_tracing_span_tree_tests.rs
index bfffb38cc5..d4b3602417 100644
--- a/crates/openhuman-core/src/agent/progress_tracing/progress_tracing_span_tree_tests.rs
+++ b/crates/openhuman-core/src/agent/progress_tracing/progress_tracing_span_tree_tests.rs
@@ -237,6 +237,7 @@ fn subagent_lifecycle_nests_under_the_turn() {
worktree_path: Some("/private/should/not/leak".to_string()),
changed_files: vec!["secret_file.rs".to_string()],
dirty_status: Some(true),
+ stop: None,
},
40,
),
@@ -327,6 +328,7 @@ fn unknown_subagent_task_ids_are_ignored() {
worktree_path: None,
changed_files: vec![],
dirty_status: None,
+ stop: None,
},
10,
);
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 c07b545724..156d94516f 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,6 +529,7 @@ fn subagent_lifecycle_records_and_clears_active() {
worktree_path: None,
changed_files: Vec::new(),
dirty_status: None,
+ stop: None,
});
let s = m.snapshot();
assert_eq!(s.tool_timeline[0].status, ToolTimelineStatus::Success);
@@ -720,6 +721,7 @@ fn subagent_completed_persists_capped_output_on_the_activity() {
worktree_path: None,
changed_files: Vec::new(),
dirty_status: None,
+ stop: None,
});
let entry = m
diff --git a/crates/openhuman-core/src/web_chat/progress_bridge_tests.rs b/crates/openhuman-core/src/web_chat/progress_bridge_tests.rs
index 09c084124d..d8f81fba60 100644
--- a/crates/openhuman-core/src/web_chat/progress_bridge_tests.rs
+++ b/crates/openhuman-core/src/web_chat/progress_bridge_tests.rs
@@ -624,6 +624,7 @@ async fn subagent_completed_carries_parent_call_id_and_capped_output() {
worktree_path: None,
changed_files: Vec::new(),
dirty_status: None,
+ stop: None,
})
.await
.unwrap();