From e0a83c00461cba2f428def320b1366491db301d6 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sun, 3 May 2026 13:01:38 +0100 Subject: [PATCH] test: fix tui command completion typecheck --- src/tui/commands.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tui/commands.test.ts b/src/tui/commands.test.ts index ee64c626fed..d7b5bb29035 100644 --- a/src/tui/commands.test.ts +++ b/src/tui/commands.test.ts @@ -56,7 +56,7 @@ describe("getSlashCommands", () => { ]); }); - it("falls back to provider-resolved levels when thinkingLevels is empty (#76482)", () => { + it("falls back to provider-resolved levels when thinkingLevels is empty (#76482)", async () => { const commands = getSlashCommands({ provider: "anthropic", model: "claude-sonnet-4-6", @@ -64,7 +64,7 @@ describe("getSlashCommands", () => { }); const think = commands.find((command) => command.name === "think"); // Should fall back to listThinkingLevelLabels, not return empty completions - const completions = think?.getArgumentCompletions?.(""); + const completions = await think?.getArgumentCompletions?.(""); expect(completions?.length).toBeGreaterThan(0); }); });