Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
test(rooms): let the sender's turn record itself before the restart cuts the member's turn
milind-sonifbe39e120254
diff --git a/server/room-coordination.e2e.test.ts b/server/room-coordination.e2e.test.tsindex 15e1bdc0ee..9e88e762dd 100644--- a/server/room-coordination.e2e.test.ts+++ b/server/room-coordination.e2e.test.ts@@ -419,6 +419,8 @@ it("runs a room member's turn a restart cut again once, told so, and resumes thef.plan[f.target.id] = { reply: "Built CSV", gateFile };await f.start();await expect.poll(() => f.nodes().find((node: any) => node.parentId)?.status, { timeout: 15_000 }).toBe("running");+ // The sender's turn records itself only as it ends, which can be just after the member's turn starts; only the member's turn is cut.+ await expect.poll(() => { try { return f.provider().some((turn: any) => turn.botId === f.sender.id); } catch { return false; } }, { timeout: 15_000 }).toBe(true);await f.restart("SIGKILL");writeFileSync(gateFile, "open");await expect.poll(() => f.nodes().every((node: any) => node.status === "completed"), { timeout: 30_000 }).toBe(true);