Fix watchdog parent messaging tests

This commit is contained in:
Friel
2026-05-04 01:38:37 +00:00
parent 4f15625639
commit 65a98ae481
2 changed files with 3 additions and 4 deletions

View File

@@ -1436,7 +1436,6 @@ async fn spawn_agent_can_fork_parent_thread_history_with_sanitized_items() {
SpawnAgentOptions {
fork_parent_spawn_call_id: Some(parent_spawn_call_id.clone()),
fork_mode: Some(SpawnAgentForkMode::FullHistory),
fork_parent_spawn_call_id: Some(parent_spawn_call_id),
..Default::default()
},
)
@@ -1757,7 +1756,6 @@ async fn spawn_agent_fork_flushes_parent_rollout_before_loading_history() {
SpawnAgentOptions {
fork_parent_spawn_call_id: Some(parent_spawn_call_id.clone()),
fork_mode: Some(SpawnAgentForkMode::FullHistory),
fork_parent_spawn_call_id: Some(parent_spawn_call_id),
..Default::default()
},
)
@@ -1868,7 +1866,6 @@ async fn spawn_agent_fork_last_n_turns_keeps_only_recent_turns() {
SpawnAgentOptions {
fork_parent_spawn_call_id: Some(parent_spawn_call_id.clone()),
fork_mode: Some(SpawnAgentForkMode::LastNTurns(2)),
fork_parent_spawn_call_id: Some(parent_spawn_call_id),
..Default::default()
},
)

View File

@@ -154,7 +154,9 @@ fn send_message_tool_requires_message_and_has_no_output_schema() {
properties
.get("target")
.and_then(|schema| schema.description.as_deref()),
Some("Relative or canonical task name to message (from spawn_agent).")
Some(
"Relative or canonical task name to message (from spawn_agent), or `parent` from a spawned non-watchdog agent."
)
);
assert_eq!(
parameters.required.as_ref(),