test: check tool search controls

This commit is contained in:
Shakker
2026-05-12 05:53:44 +01:00
parent e4a5dd9c91
commit 724e7dba0a

View File

@@ -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 () => {