Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
Browser-only prompt no longer tells coding engines they have no shell (#4294)
Aditya Umale94844cbf3f80
diff --git a/server/surface.test.ts b/server/surface.test.tsindex 9d50da4ae2..06cc604cd3 100644--- a/server/surface.test.ts+++ b/server/surface.test.ts@@ -233,7 +233,10 @@ describe("surfacePrompt", () => {it("names only the browser tab when it is the only surface", () => {const text = surfacePrompt({ computer: null, browser: true });expect(text).toMatch(/happens in the built-in browser tab/);- expect(text).toMatch(/no desktop, file or shell computer/);+ expect(text).toMatch(/no desktop computer this turn/);+ // The browser is only the screen: a coding engine's own shell and file tools still work (#4291).+ expect(text).not.toMatch(/file or shell computer/);+ expect(text).toContain("your own shell and file tools still work for ordinary code and file tasks");expect(text).toMatch(/Browser tab of the Screen panel/);expect(text).toMatch(/say in one short sentence where you are working/);expect(text).not.toMatch(/happens on the cloud computer/);diff --git a/server/surface.ts b/server/surface.tsindex aed1047f47..430316b106 100644--- a/server/surface.ts+++ b/server/surface.ts@@ -212,7 +212,7 @@ export function surfacePrompt(` 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}.`;} else if (mounted.browser) {text =- " Everything you do on screen happens in the built-in browser tab; there is no desktop, file or shell computer this turn. If you need the user to sign in, tell them it is in the Browser tab of the Screen panel.";+ " Everything you do on screen happens in the built-in browser tab; there is no desktop computer this turn, but your own shell and file tools still work for ordinary code and file tasks, if you have them. If you need the user to sign in, tell them it is in the Browser tab of the Screen panel.";}if (text) text += RESTATE_SENTENCE + (opts.canSelect? SURFACE_AUTHORITY.replace(ASK_TO_SWITCH, "inspect connected choices with select_computer and select the requested available place; on a pending result end this turn so OpenMausBot can reconnect the correct tools and continue the original request")