Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
Keep the signed-in preference to tasks with no named place, and let the Browser tab win when it holds the task's state
Bugfixer 28959b3341591
diff --git a/server/surface.test.ts b/server/surface.test.tsindex 8fd95daf21..89f6e829d5 100644--- a/server/surface.test.ts+++ b/server/surface.test.ts@@ -209,7 +209,7 @@ describe("surfacePrompt", () => {const text = surfacePrompt({ computer, browser: true });const label = computer === "vm" ? "the Local VM" : "the cloud computer";expect(text).toContain(`The built-in browser and ${label} may not share sign-ins.`);- expect(text).toContain(`When you pick the surface for a new task, if you already saw its site signed in on ${label} with the account it needs, pick ${label} instead of the Browser tab, unless the user asked for the Browser tab.`);+ expect(text).toContain(`When you pick the surface for a new task and the user did not name a place, if you already saw its site signed in on ${label} with the account it needs, pick ${label} instead of the Browser tab, unless the task needs something already in the Browser tab, such as a cart; if the site turns out signed out on ${label}, use the Browser tab when it is signed in there.`);expect(text).not.toMatch(/check whether the site is already signed in/);}expect(surfacePrompt({ computer: "vm", browser: false })).not.toContain("share sign-ins");diff --git a/server/surface.ts b/server/surface.tsindex 60fb8da16d..13f518f2df 100644--- a/server/surface.ts+++ b/server/surface.ts@@ -228,7 +228,7 @@ export function surfacePrompt(// The two browsers usually share no cookies: "Web tasks → the built-in browser" alone sent a bot whose site was// signed in on the computer to a signed-out tab, where it asked the person to sign in again.text =- ` Two surfaces are mounted this turn: the built-in browser (the browser server's browser_navigate, browser_snapshot, browser_click, browser_fill and friends) and ${computer} (the computer server's tools). Web tasks → the built-in browser. Desktop apps, files and shell → ${computer} tools. Pick one surface for a task and stay on it; if you need the user to sign in, say which surface — the Browser tab or ${computer}. The built-in browser and ${computer} may not share sign-ins. When you pick the surface for a new task, if you already saw its site signed in on ${computer} with the account it needs, pick ${computer} instead of the Browser tab, unless the user asked for the Browser tab.`;+ ` Two surfaces are mounted this turn: the built-in browser (the browser server's browser_navigate, browser_snapshot, browser_click, browser_fill and friends) and ${computer} (the computer server's tools). Web tasks → the built-in browser. Desktop apps, files and shell → ${computer} tools. Pick one surface for a task and stay on it; if you need the user to sign in, say which surface — the Browser tab or ${computer}. The built-in browser and ${computer} may not share sign-ins. When you pick the surface for a new task and the user did not name a place, if you already saw its site signed in on ${computer} with the account it needs, pick ${computer} instead of the Browser tab, unless the task needs something already in the Browser tab, such as a cart; if the site turns out signed out on ${computer}, use the Browser tab when it is signed in there.`;} else if (computer) {text =` Everything you do on screen happens on ${computer}, web pages included, through its own browser; there is no separate built-in browser this turn. If you need the user to sign in, tell them it is on ${computer}.`;