Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
browser: keep Google Chrome's first-run screens off a private display
milind-soni227b300ec993
diff --git a/server/browser/chrome/flags.ts b/server/browser/chrome/flags.tsindex 1ff8a4220e..de08db288e 100644--- a/server/browser/chrome/flags.ts+++ b/server/browser/chrome/flags.ts@@ -111,7 +111,7 @@ export function chromeArgs(input: ChromeFlagsInput): string[] {args.push(`--user-agent=${input.userAgent}`);}if (headless) args.push(`--screen-info=${screenInfo(input.screen ?? SERVER_SCREEN)}`);- else if (fillsScreen(input)) args.push("--window-position=0,0", "--start-maximized", "--hide-crash-restore-bubble");+ else if (fillsScreen(input)) args.push("--window-position=0,0", "--start-maximized", "--hide-crash-restore-bubble", "--disable-search-engine-choice-screen");else if (input.windowPosition) args.push(`--window-position=${Math.round(input.windowPosition.x)},${Math.round(input.windowPosition.y)}`);if (input.locale && LOCALE.test(input.locale)) args.push(`--lang=${input.locale}`);if (input.egressPort !== undefined && input.egressPort !== null) {diff --git a/server/browser/desktop/policy.test.ts b/server/browser/desktop/policy.test.tsindex 7a36a73d7e..f2690b8c6d 100644--- a/server/browser/desktop/policy.test.ts+++ b/server/browser/desktop/policy.test.ts@@ -17,6 +17,8 @@ describe("the lock-down policy of a Chrome on a private display", () => {expect(policy.IncognitoModeAvailability).toBe(1);expect(policy.AllowFileSelectionDialogs).toBe(false);expect(policy).not.toHaveProperty("DeveloperToolsAvailability");+ expect(policy.PrivacySandboxPromptEnabled).toBe(false);+ expect(policy.PromotionsEnabled).toBe(false);});it("lets through only the folders named, and nothing beside them", () => {diff --git a/server/browser/desktop/policy.ts b/server/browser/desktop/policy.tsindex 3ace7c878d..bc510cb04b 100644--- a/server/browser/desktop/policy.ts+++ b/server/browser/desktop/policy.ts@@ -26,6 +26,10 @@ export function desktopPolicy(fileRoots: readonly string[] = []): Record<string,PromptForDownloadLocation: false,TaskManagerEndProcessEnabled: false,DefaultBrowserSettingEnabled: false,+ // Google Chrome's own first-run screens (the ad privacy notice, What's new and other promotions) would sit over the+ // page a person sees on the display, as no headless Chrome shows them.+ PrivacySandboxPromptEnabled: false,+ PromotionsEnabled: false,};}