Update to acp 0.0.18 (#35595)

Release Notes:

- N/A
This commit is contained in:
Agus Zubiaga 2025-08-04 15:45:17 -03:00 committed by GitHub
parent f3f2dba606
commit 1325bf1420
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 30 additions and 24 deletions

View file

@ -178,7 +178,7 @@ impl ToolCall {
id: tool_call.id,
label: cx.new(|cx| {
Markdown::new(
tool_call.label.into(),
tool_call.title.into(),
Some(language_registry.clone()),
None,
cx,
@ -205,7 +205,7 @@ impl ToolCall {
let acp::ToolCallUpdateFields {
kind,
status,
label,
title,
content,
locations,
raw_input,
@ -219,8 +219,8 @@ impl ToolCall {
self.status = ToolCallStatus::Allowed { status };
}
if let Some(label) = label {
self.label = cx.new(|cx| Markdown::new_text(label.into(), cx));
if let Some(title) = title {
self.label = cx.new(|cx| Markdown::new_text(title.into(), cx));
}
if let Some(content) = content {
@ -1504,7 +1504,7 @@ mod tests {
thread.handle_session_update(
acp::SessionUpdate::ToolCall(acp::ToolCall {
id: id.clone(),
label: "Label".into(),
title: "Label".into(),
kind: acp::ToolKind::Fetch,
status: acp::ToolCallStatus::InProgress,
content: vec![],
@ -1608,7 +1608,7 @@ mod tests {
thread.handle_session_update(
acp::SessionUpdate::ToolCall(acp::ToolCall {
id: acp::ToolCallId("test".into()),
label: "Label".into(),
title: "Label".into(),
kind: acp::ToolKind::Edit,
status: acp::ToolCallStatus::Completed,
content: vec![acp::ToolCallContent::Diff {