From e1d0862caca73e3d10434e4a8ca3be696ff79bdb Mon Sep 17 00:00:00 2001 From: Patrick Erichsen Date: Fri, 17 Oct 2025 16:54:50 -0700 Subject: [PATCH] Update streamResponse_toolCalls.test.ts --- gui/src/redux/thunks/streamResponse_toolCalls.test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gui/src/redux/thunks/streamResponse_toolCalls.test.ts b/gui/src/redux/thunks/streamResponse_toolCalls.test.ts index e8a5393d8..11bb9238f 100644 --- a/gui/src/redux/thunks/streamResponse_toolCalls.test.ts +++ b/gui/src/redux/thunks/streamResponse_toolCalls.test.ts @@ -1949,9 +1949,9 @@ describe("streamResponseThunk - tool calls", () => { data, ) => { if ( - "command" in data.args && - typeof data.args.command === "string" && - data.args.command?.toLowerCase().startsWith("echo") + "command" in data.parsedArgs && + typeof data.parsedArgs.command === "string" && + data.parsedArgs.command?.toLowerCase().startsWith("echo") ) { return { policy: "allowedWithPermission" }; } @@ -2268,7 +2268,7 @@ describe("streamResponseThunk - tool calls", () => { let numCalls = 0; mockTerminalIdeMessenger.responseHandlers["tools/evaluatePolicy"] = async (data) => { - const args = data.args || {}; + const args = data.parsedArgs || {}; numCalls++; if ( numCalls <= 1 &&