Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
test(calls): Windows takes turns without a key now
AdityaUmale50ced2f575a5
diff --git a/src/components/CallView.journeys.test.ts b/src/components/CallView.journeys.test.tsindex 5f96d29968..c93b75d6ae 100644--- a/src/components/CallView.journeys.test.ts+++ b/src/components/CallView.journeys.test.ts@@ -260,13 +260,23 @@ describe("calling a bot off the Mac", () => {await firstLiveCall();});- it.each(["win32", "linux"] as const)("on This computer in the %s app with no Fish Audio key, the call is Live, Take turns asks for the key, and Live points to API keys", async (platform) => {- open(desktopApp(platform, "this-computer"));+ it("on This computer in the linux app with no Fish Audio key, the call is Live, Take turns asks for the key, and Live points to API keys", async () => {+ open(desktopApp("linux", "this-computer"));chat(THIS_COMPUTER);expectTurnsDisabled("Add a Fish Audio or ElevenLabs key to take turns on calls. On this computer, Take turns hears you through Fish Audio or ElevenLabs speech-to-text. Add either key in Settings → AI → Other services.");await firstLiveCall();});+ it("on This computer in the win32 app with no key, Take turns is on and listening stays on this computer", () => {+ open(desktopApp("win32", "this-computer"));+ chat(THIS_COMPUTER);+ expect(callButton()?.getAttribute("aria-label")).toBe("Call Ada");+ press(container.querySelector('[aria-label="Call mode"]'));+ const [turns] = menuItems();+ expect(turns?.hasAttribute("aria-disabled")).toBe(false);+ expect(turns?.textContent).toContain("Listening stays on this computer.");+ });+it.each(["win32", "linux"] as const)("on This computer in the %s app with a Fish Audio key, Take turns is on and says where the voice goes", (platform) => {open(desktopApp(platform, "this-computer"));chat({ ...THIS_COMPUTER, savedKeys: { fishAudioKey: { configured: true } } } as AppState["config"]);@@ -328,7 +338,7 @@ describe("calling a bot off the Mac", () => {expect(callButton()?.getAttribute("aria-label")).toBe("Call Ada");});- it("shows a room's call button only on this computer's own page, and asks for a Fish Audio key off the Mac", () => {+ it("shows a room's call button only on this computer's own page, and asks for a Fish Audio key on Linux", () => {roomHeader(CLOUD);expect(callButton()).toBeNull();for (const platform of ["darwin", "win32", "linux"] as const) {@@ -340,7 +350,8 @@ describe("calling a bot off the Mac", () => {open(desktopApp(platform, "this-computer"));flushSync(() => root.render(null));roomHeader(THIS_COMPUTER);- expect(callButton()?.getAttribute("aria-label"), `${platform} on This computer`).toBe("Add a Fish Audio or ElevenLabs key to take turns on calls");+ expect(callButton()?.getAttribute("aria-label"), `${platform} on This computer`)+ .toBe(platform === "win32" ? "Call Standup" : "Add a Fish Audio or ElevenLabs key to take turns on calls");flushSync(() => root.render(null));roomHeader({ ...THIS_COMPUTER, savedKeys: { fishAudioKey: { configured: true } } } as AppState["config"]);expect(callButton()?.getAttribute("aria-label"), `${platform} with a key`).toBe("Call Standup");