Skip to content

An agentic browser harness: an AI side panel & orb in your own logged-in Chrome, Edge, Arc, Brave or even Firefox run by the agent/subscription you already use (Claude Code, Codex, Antigravity). Free, open source, no API key. Also an MCP server.

fix(daemon): let a typing run outlast the default request timeout

Shahriar9b107220212a
diff --git a/mcp/src/extension-link.ts b/mcp/src/extension-link.ts
index 13bbb2e..8bbc256 100644
--- a/mcp/src/extension-link.ts
+++ b/mcp/src/extension-link.ts
@@ -9,6 +9,7 @@ import {
type SocketFrame,
} from '@/lib/actions/protocol';
import type { ToolDescriptor } from '@/lib/actions/manifest';
+import { typeText, typingDurationMs } from '@/lib/actions/page/type-text';
import { log } from './log';
const PING_INTERVAL_MS = 20_000;
@@ -122,6 +123,7 @@ const SCREENSHOT_TIMEOUT_MS = 120_000;
function timeoutFor(action: string, input: unknown): number {
if (action === 'page.screenshot') return SCREENSHOT_TIMEOUT_MS;
+ if (action === typeText.name) return typingDurationMs(input) + DEFAULT_TIMEOUT_MS;
const declared = (input as { timeoutMs?: unknown } | undefined)?.timeoutMs;
return typeof declared === 'number' && declared > 0 ? declared + 5_000 : DEFAULT_TIMEOUT_MS;
}