more fixes

This commit is contained in:
Roy Han
2026-03-11 13:25:59 -07:00
parent fcc2d8be21
commit 9e058f1bc5
3 changed files with 10 additions and 0 deletions
+4
View File
@@ -492,6 +492,7 @@ mod tests {
query: Some("weather".to_string()),
queries: None,
},
metadata: None,
}
),
other => panic!("expected TurnItem::WebSearch, got {other:?}"),
@@ -519,6 +520,7 @@ mod tests {
action: WebSearchAction::OpenPage {
url: Some("https://example.com".to_string()),
},
metadata: None,
}
),
other => panic!("expected TurnItem::WebSearch, got {other:?}"),
@@ -548,6 +550,7 @@ mod tests {
url: Some("https://example.com".to_string()),
pattern: Some("needle".to_string()),
},
metadata: None,
}
),
other => panic!("expected TurnItem::WebSearch, got {other:?}"),
@@ -570,6 +573,7 @@ mod tests {
id: "ws_partial".to_string(),
query: String::new(),
action: WebSearchAction::Other,
metadata: None,
}
),
other => panic!("expected TurnItem::WebSearch, got {other:?}"),
+2
View File
@@ -215,6 +215,7 @@ mod tests {
id: "msg-1".to_string(),
content: Vec::new(),
phase: None,
metadata: None,
}))
.await
.is_some()
@@ -225,6 +226,7 @@ mod tests {
id: "msg-2".to_string(),
content: Vec::new(),
phase: None,
metadata: None,
}))
.await,
None
+4
View File
@@ -235,6 +235,7 @@ async fn thread_snapshot_replay_does_not_duplicate_agent_message_history() {
text: "assistant reply".to_string(),
}],
phase: None,
metadata: None,
}),
}),
});
@@ -3503,6 +3504,7 @@ fn complete_assistant_message(
text: text.to_string(),
}],
phase,
metadata: None,
}),
}),
});
@@ -3538,6 +3540,7 @@ fn complete_user_message_for_inputs(chat: &mut ChatWidget, item_id: &str, conten
item: TurnItem::UserMessage(UserMessageItem {
id: item_id.to_string(),
content,
metadata: None,
}),
}),
});
@@ -5819,6 +5822,7 @@ async fn slash_copy_state_tracks_plan_item_completion() {
item: TurnItem::Plan(PlanItem {
id: "plan-1".to_string(),
text: plan_text.clone(),
metadata: None,
}),
}),
});