Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
test(bot-box): wait for the boxed process to close before reading its output
AdityaUmale423fa571c23e
diff --git a/server/bot-box/retained-upload.linux.test.ts b/server/bot-box/retained-upload.linux.test.tsindex f3cd975b15..b73ce70496 100644--- a/server/bot-box/retained-upload.linux.test.ts+++ b/server/bot-box/retained-upload.linux.test.ts@@ -36,7 +36,7 @@ describe.skipIf(detection.box !== "bwrap")(`an upload added after a box in its blet out = "";child.stdout?.on("data", (chunk) => { out += chunk; });child.stderr?.on("data", (chunk) => { out += chunk; });- const exited = new Promise<void>((resolve) => child.once("exit", () => { wrapped.release(); resolve(); }));+ const exited = new Promise<void>((resolve) => child.once("close", () => { wrapped.release(); resolve(); }));await expect.poll(() => out, { timeout: 30_000 }).toBe("started\n");// The person's first attachment, handed to the next turn after the box started.