Skip to content

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

Type agentBrowserRuntime so the server typecheck passes after #6184

milind-soni3036547b6150
diff --git a/server/host/browser.ts b/server/host/browser.ts
index ac2e4679fa..cbac9eb5ac 100644
--- a/server/host/browser.ts
+++ b/server/host/browser.ts
@@ -115,7 +115,7 @@ export function createBrowserHost(deps: BrowserHostDeps) {
spare: (session) => spareForRoom(agentBrowserRuntime.spare(session), { holds: !turnResources.free(`browser:${session}`), idleMs: idleMs() }),
close: (session) => agentBrowserRuntime.closeIfIdle(session, 1),
});
- const agentBrowserRuntime = new BrowserRuntime({
+ const agentBrowserRuntime: BrowserRuntime = new BrowserRuntime({
closeBrowser: (session, spec) => closeBrowserSession(spec.command, browserRuntimeEnv({ ...spec.env, AGENT_BROWSER_SESSION: session })),
applyViewport: (spec, size) => setBrowserViewport(spec.command, spec.env, size),
// A browser a person's view started counts toward the limit too. It is not refused, so a bot's next new one waits.