Skip to content

The open source coding agent.

TypeScript

sync

Dax Raad979bad3e64e3
diff --git a/packages/opencode/src/session/index.ts b/packages/opencode/src/session/index.ts
index 5e7d34b0d42..ebe18ac445f 100644
--- a/packages/opencode/src/session/index.ts
+++ b/packages/opencode/src/session/index.ts
@@ -492,9 +492,9 @@ export namespace Session {
)
if (match && match.type === "tool-invocation") {
match.toolInvocation = {
- args: match.toolInvocation.args,
- toolCallId: match.toolInvocation.toolCallId,
- toolName: match.toolInvocation.toolName,
+ args: value.args,
+ toolCallId: value.toolCallId,
+ toolName: value.toolName,
state: "result",
result: value.result as string,
}