Skip to content

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

Merge main (size guard and Linux dictation smoke fixes)

milind-soni7f072641d961
diff --cc src/components/app/AppChrome.tsx
index 2f85e6ed30,fe6c169b1a..f8a52d7e78
--- a/src/components/app/AppChrome.tsx
+++ b/src/components/app/AppChrome.tsx
@@@ -1,8 -1,9 +1,9 @@@
import { useEffect, useState, type ReactNode } from "react";
- import { AppWindow, CircleAlert, Info, Loader2, RotateCw } from "lucide-react";
+ import { AppWindow, CircleAlert, CircleCheck, Info, Loader2, RotateCw } from "lucide-react";
import { cn } from "@/lib/cn";
-import { t } from "@/lib/i18n";
+import { intlLocale, t } from "@/lib/i18n";
- import type { AppNetwork } from "../../../shared/app";
+ import { openExternalLink } from "@/lib/app-links";
+ import type { AppDoneState, AppNetwork } from "../../../shared/app";
import { ASK_CHIP, ASK_CHIP_IDLE, ASK_QUIET_BUTTON } from "../AskCard";
export const APP_SURFACE = "w-full overflow-hidden rounded-2xl bg-composer ring-1 ring-composer-ring";
diff --cc src/components/browser/StreamSurface.test.ts
index d6b726a142,b129c03f80..f45269961d
--- a/src/components/browser/StreamSurface.test.ts
+++ b/src/components/browser/StreamSurface.test.ts
@@@ -3,8 -3,7 +3,8 @@@ import { act, createElement } from "rea
import { createRoot, type Root } from "react-dom/client";
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
- import type { PreviewStreamControl, PreviewStreamEvents, PreviewStreamInput } from "@/lib/browser-stream-client";
+ import { PREVIEW_STREAM_LIBRARIES_COMMAND, PREVIEW_STREAM_SANDBOX_STEPS_URL, type PreviewStreamControl, type PreviewStreamEvents, type PreviewStreamInput } from "@/lib/browser-stream-client";
+import { setLocale } from "@/lib/i18n";
import { controlPill } from "./ChromeRow";
import { letterbox, mapToPage, mapToSurface, StreamSurface } from "./StreamSurface";
diff --cc src/components/browser/StreamSurface.tsx
index f4998c1a57,e625821bb2..6824573939
--- a/src/components/browser/StreamSurface.tsx
+++ b/src/components/browser/StreamSurface.tsx
@@@ -765,8 -764,12 +766,12 @@@ export function StreamSurface(props:
{hostSetup ? (
<div className="absolute inset-0 z-30 flex flex-col items-center justify-center gap-3 bg-card p-4 text-center">
<p role="alert" className="max-w-sm text-[13px] text-ink-secondary">{previewStreamHostSetupMessage(hostSetup)}</p>
- <code className="max-w-md select-all break-all rounded-lg bg-inset px-3 py-2 text-left text-[12px] text-ink">{hostSetup.command}</code>
+ {hostSetup.need === "libraries" ? (
+ <code className="max-w-md select-all break-all rounded-lg bg-inset px-3 py-2 text-left text-[12px] text-ink">{hostSetup.command}</code>
+ ) : (
+ <a href={PREVIEW_STREAM_SANDBOX_STEPS_URL} target="_blank" rel="noopener noreferrer" className="text-[12px] text-ink underline">Browser sandbox setup steps</a>
+ )}
- <button type="button" className="rounded-lg border border-hairline px-3 py-1.5 text-[12px] text-ink hover:bg-inset" onClick={() => setHostSetup(null)}>Try again</button>
+ <button type="button" className="rounded-lg border border-hairline px-3 py-1.5 text-[12px] text-ink hover:bg-inset" onClick={() => setHostSetup(null)}>{t("common.tryAgain")}</button>
</div>
) : null}
</div>