From f7e9e258137cf43a2e32e050e0c2de318d0d9cf9 Mon Sep 17 00:00:00 2001 From: Mervap Date: Mon, 16 Mar 2026 15:02:49 +0100 Subject: [PATCH] fix(acp): provide more meta in tool_call_update --- packages/cli/src/acp/acpClient.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/cli/src/acp/acpClient.ts b/packages/cli/src/acp/acpClient.ts index 072d91c20a..44c0373515 100644 --- a/packages/cli/src/acp/acpClient.ts +++ b/packages/cli/src/acp/acpClient.ts @@ -966,7 +966,10 @@ export class Session { sessionUpdate: 'tool_call_update', toolCallId: callId, status: 'completed', + title: invocation.getDescription(), content: content ? [content] : [], + locations: invocation.toolLocations(), + kind: toAcpToolKind(tool.kind), }); const durationMs = Date.now() - startTime; @@ -1030,6 +1033,7 @@ export class Session { content: [ { type: 'content', content: { type: 'text', text: error.message } }, ], + kind: toAcpToolKind(tool.kind), }); this.chat.recordCompletedToolCalls(this.config.getActiveModel(), [ @@ -1324,7 +1328,10 @@ export class Session { sessionUpdate: 'tool_call_update', toolCallId: callId, status: 'completed', + title: invocation.getDescription(), content: content ? [content] : [], + locations: invocation.toolLocations(), + kind: toAcpToolKind(readManyFilesTool.kind), }); if (Array.isArray(result.llmContent)) { const fileContentRegex = /^--- (.*?) ---\n\n([\s\S]*?)\n\n$/; @@ -1368,6 +1375,7 @@ export class Session { }, }, ], + kind: toAcpToolKind(readManyFilesTool.kind), }); throw error;