Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
Context breakdown test: close the server when making the bot fails
luishron123ed5fad402b22
diff --git a/server/context-breakdown.e2e.test.ts b/server/context-breakdown.e2e.test.tsindex 50e56c8d26..623198bee4 100644--- a/server/context-breakdown.e2e.test.ts+++ b/server/context-breakdown.e2e.test.ts@@ -19,7 +19,10 @@ const answer = {async function setup(extraEnv: NodeJS.ProcessEnv) {const fixture = await launchVerificationServer({ ...process.env, ...extraEnv }, undefined, undefined, undefined, undefined, undefined, ["codex"]);const control = async (...args: string[]) => runControlOmb([...args, "--url", fixture.info.url]) as Promise<any>;- const bot = (await control("new-bot", "--name", "Context probe")).bot;+ const bot = (await control("new-bot", "--name", "Context probe").catch(async (error) => {+ await fixture.close();+ throw error;+ })).bot;const thread: string = bot.activeTaskId;const post = (action: string) => request(`/api/bots/${bot.id}/${action}`, { method: "POST", body: JSON.stringify({ threadId: thread }) }, fixture.info.url);const context = () => post("context") as Promise<{ threadId: string; breakdown: ContextBreakdown | null }>;