Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
Bot access: recheck account-list widening against the fresh bot before saving
AdityaUmale4d1d76045fba
diff --git a/server/routes/bot-patch.ts b/server/routes/bot-patch.tsindex ff20ba0abc..f294025c7d 100644--- a/server/routes/bot-patch.ts+++ b/server/routes/bot-patch.ts@@ -660,6 +660,10 @@ export function createBotPatchRoutes(deps: BotPatchRouteDeps): RouteHandler {return json(res, 409, { error: "Stop this bot's turns before changing its tool selection." });}}+ if (body.connectorScopes !== undefined && widensConnectorScopes(freshBrowserBot?.connectorScopes, trustPatch.connectorScopes) &&+ auth.kind === "loopback" && !DESKTOP_MANAGED && !browserOrigin && store.bots.some((candidate) => candidate.busy)) {+ return json(res, 409, { error: "A bot is working right now, so this change has to come from the desktop app or a paired device. Try again once every bot is idle." });+ }// A running turn cannot unmount custom servers; rechecked after the awaits above.if (body.mcpServers !== undefined) {if (auth.kind === "session" && !sessions.isLive(auth.session.id)) {