Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
Give the hand-off resend test a backup the person chose
AdityaUmale9d639deea8e0
diff --git a/server/peer-limit-resend.e2e.test.ts b/server/peer-limit-resend.e2e.test.tsindex 3a6c360191..3f55044770 100644--- a/server/peer-limit-resend.e2e.test.ts+++ b/server/peer-limit-resend.e2e.test.ts@@ -19,7 +19,7 @@ async function finishedHandoff(dataDir: string, botId: string) {const jsonLines = (path: string): any[] => existsSync(path)? readFileSync(path, "utf8").split("\n").filter(Boolean).map((line) => JSON.parse(line)) : [];-/** A Chief on one Claude sign-in hands work to a specialist on another ("helper"), with Codex as the other AI. */+/** A Chief on one Claude sign-in hands work to a specialist on another ("helper"), with Codex as the specialist's chosen backup. */async function withHandoffFixture(helperPlan: Record<string, unknown>, check: (fixture: {api: (method: string, path: string, body?: unknown) => Promise<any>;control: (...args: string[]) => Promise<any>;@@ -73,6 +73,9 @@ async function withHandoffFixture(helperPlan: Record<string, unknown>, check: (fawait api("PATCH", `/api/bots/${chief.id}`, { chiefOfStaff: true, managedSections: ["Engineering"], acknowledgePeerScope: true });const own = (await api("GET", "/api/bots")).bots.find((entry: any) => entry.id === specialist.id).modelSelection;await api("PATCH", `/api/bots/${specialist.id}/tasks/${specialist.activeTaskId}`, { modelSelection: { ...own, instanceId: "helper" }, updateBotDefault: true });+ // Codex is the backup the person chose for the specialist; a limited AI hands its turns only to such a backup.+ const { instances } = await api("GET", "/api/instances") as { instances: any[] };+ await api("PATCH", `/api/bots/${specialist.id}`, { fallback: [{ instanceId: "codex", model: instances.find((instance) => instance.instanceId === "codex").models.default }] });const brief = "CHECK_THE_FIXTURE_REPORT_5Q";writeFileSync(planPath, JSON.stringify({[chief.id]: { turns: [