mirror of
https://github.com/openai/codex.git
synced 2026-05-18 02:02:30 +00:00
Fix watchdog parent messaging tests
This commit is contained in:
@@ -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()
|
||||
},
|
||||
)
|
||||
|
||||
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user