Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

chore(surface): keep server/index.ts within its size limit

AdityaUmale26bdd827aa07
diff --git a/server/index.ts b/server/index.ts
index 67c9f31b9d..a359038c73 100644
--- a/server/index.ts
+++ b/server/index.ts
@@ -9949,8 +9949,7 @@ async function runClaimedGroupMemberTurn(
if (phone) integrations.device = phone;
if (roomPlan.browser && !(roomPlan.computer === undefined && roomTeamComputer)) {
const roomComputer = roomTeamComputer ? "cloud" : roomPlan.computer === "off" ? null : roomPlan.computer ?? null;
- const browser = await openBrowserBeside(() => browserIntegration(readyBot.id, readyBot.browserProfile, { threadId, generation: internalGeneration }),
- roomComputer, (error) => console.warn(`[browser] room thread ${threadId}: left out beside ${roomComputer} (${redactSecretsInText(String(error))})`));
+ const browser = await openBrowserBeside(() => browserIntegration(readyBot.id, readyBot.browserProfile, { threadId, generation: internalGeneration }), roomComputer, (error) => console.warn(`[browser] room thread ${threadId}: left out beside ${roomComputer} (${redactSecretsInText(String(error))})`));
if (browser) integrations.browser = browser.integration;
}
const browserReadyBot = store.bot(readyBot.id);