Fix tests

This commit is contained in:
Bennet Bo Fenner
2026-01-01 14:31:26 +01:00
parent e242c1abd4
commit be8bf13de3
2 changed files with 5 additions and 4 deletions

View File

@@ -436,6 +436,7 @@ impl From<&ResolvedLocation> for AgentLocation {
}
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
#[serde(rename_all = "snake_case")]
pub enum ToolSource {
/// Built-in tool
BuiltIn,

View File

@@ -2268,10 +2268,10 @@ async fn test_tool_updates_to_completion(cx: &mut TestAppContext) {
acp::ToolCall::new("1", "Thinking")
.kind(acp::ToolKind::Think)
.raw_input(json!({}))
.meta(acp::Meta::from_iter([(
"tool_name".into(),
"thinking".into()
)]))
.meta(acp::Meta::from_iter([
("tool_name".into(), "thinking".into()),
("tool_source".into(), "built_in".into())
]))
);
let update = expect_tool_call_update_fields(&mut events).await;
assert_eq!(