From 724e7dba0ae4797a91b44f02736667cf4649c60f Mon Sep 17 00:00:00 2001 From: Shakker Date: Tue, 12 May 2026 05:53:44 +0100 Subject: [PATCH] test: check tool search controls --- .../run/attempt.spawn-workspace.context-engine.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/agents/pi-embedded-runner/run/attempt.spawn-workspace.context-engine.test.ts b/src/agents/pi-embedded-runner/run/attempt.spawn-workspace.context-engine.test.ts index 6e660ba5ed9..8d193cd82ff 100644 --- a/src/agents/pi-embedded-runner/run/attempt.spawn-workspace.context-engine.test.ts +++ b/src/agents/pi-embedded-runner/run/attempt.spawn-workspace.context-engine.test.ts @@ -205,14 +205,14 @@ describe("runEmbeddedAttempt context engine sessionKey forwarding", () => { }, }); - expect(hoisted.createOpenClawCodingToolsMock).toHaveBeenCalled(); + expect(hoisted.createOpenClawCodingToolsMock).toHaveBeenCalledTimes(1); const options = mockParams( hoisted.createOpenClawCodingToolsMock, 0, "createOpenClawCodingTools options", ); expect(options.includeToolSearchControls).toBe(true); - expect(options.toolSearchCatalogRef).toBeTruthy(); + expect(options.toolSearchCatalogRef).toEqual({}); }); it("sends transcriptPrompt visibly and queues runtime context as hidden custom context", async () => {