diff --git a/src/agents/pi-tools.before-tool-call.e2e.test.ts b/src/agents/pi-tools.before-tool-call.e2e.test.ts index b615245bc3d..1f9176cec77 100644 --- a/src/agents/pi-tools.before-tool-call.e2e.test.ts +++ b/src/agents/pi-tools.before-tool-call.e2e.test.ts @@ -176,8 +176,15 @@ describe("before_tool_call hook deduplication (#15502)", () => { }); const withAbort = wrapToolWithAbortSignal(wrapped, abortController.signal); const [def] = toToolDefinitions([withAbort]); + const extensionContext = {} as Parameters[4]; - await def.execute("call-abort-dedup", { command: "ls" }, undefined, undefined, undefined); + await def.execute( + "call-abort-dedup", + { command: "ls" }, + undefined, + undefined, + extensionContext, + ); expect(hookRunner.runBeforeToolCall).toHaveBeenCalledTimes(1); });