summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNoam Bressler <[email protected]>2026-01-08 21:56:16 +0200
committerGitHub <[email protected]>2026-01-08 13:56:16 -0600
commit958f1edfef3c0332ffb0d1f1e4e05ac71e59e03c (patch)
tree3e02e821773dc221df7c605192b4dc5ae75a1de3
parent2bb299d7413f774fc67a185ed2074112c9e74300 (diff)
downloadopencode-958f1edfef3c0332ffb0d1f1e4e05ac71e59e03c.tar.gz
opencode-958f1edfef3c0332ffb0d1f1e4e05ac71e59e03c.zip
fix: Add kind, title, rawInput to ACP tool_call_update events (#7368)
Co-authored-by: noam-v <[email protected]>
-rw-r--r--packages/opencode/src/acp/agent.ts12
1 files changed, 12 insertions, 0 deletions
diff --git a/packages/opencode/src/acp/agent.ts b/packages/opencode/src/acp/agent.ts
index a161b7908..6d8a64b7d 100644
--- a/packages/opencode/src/acp/agent.ts
+++ b/packages/opencode/src/acp/agent.ts
@@ -167,6 +167,8 @@ export namespace ACP {
sessionUpdate: "tool_call_update",
toolCallId: part.callID,
status: "in_progress",
+ kind: toToolKind(part.tool),
+ title: part.tool,
locations: toLocations(part.tool, part.state.input),
rawInput: part.state.input,
},
@@ -242,6 +244,7 @@ export namespace ACP {
kind,
content,
title: part.state.title,
+ rawInput: part.state.input,
rawOutput: {
output: part.state.output,
metadata: part.state.metadata,
@@ -260,6 +263,9 @@ export namespace ACP {
sessionUpdate: "tool_call_update",
toolCallId: part.callID,
status: "failed",
+ kind: toToolKind(part.tool),
+ title: part.tool,
+ rawInput: part.state.input,
content: [
{
type: "content",
@@ -491,6 +497,8 @@ export namespace ACP {
sessionUpdate: "tool_call_update",
toolCallId: part.callID,
status: "in_progress",
+ kind: toToolKind(part.tool),
+ title: part.tool,
locations: toLocations(part.tool, part.state.input),
rawInput: part.state.input,
},
@@ -566,6 +574,7 @@ export namespace ACP {
kind,
content,
title: part.state.title,
+ rawInput: part.state.input,
rawOutput: {
output: part.state.output,
metadata: part.state.metadata,
@@ -584,6 +593,9 @@ export namespace ACP {
sessionUpdate: "tool_call_update",
toolCallId: part.callID,
status: "failed",
+ kind: toToolKind(part.tool),
+ title: part.tool,
+ rawInput: part.state.input,
content: [
{
type: "content",