Compare commits

...

3 Commits

Author SHA1 Message Date
Aiden Cline b712f3bb27 fix(core): use long mcp tool timeout 2026-07-03 12:27:31 -05:00
Aiden Cline c0413cdefa fix(core): disable mcp tool call timeout 2026-07-03 12:25:09 -05:00
Aiden Cline 2c5cc78cd5 fix(core): keep mcp elicitations alive 2026-07-03 12:16:08 -05:00
+3 -2
View File
@@ -32,6 +32,7 @@ import { InstallationVersion } from "../installation/version"
const DEFAULT_STARTUP_TIMEOUT = 30_000
const DEFAULT_REQUEST_TIMEOUT = 30_000
const DEFAULT_TOOL_CALL_TIMEOUT = 100_000_000
type Transport = StdioClientTransport | StreamableHTTPClientTransport
@@ -281,8 +282,8 @@ export const connect = Effect.fnUntraced(function* (
client.callTool(
{ name: input.name, arguments: input.args ?? {} },
CallToolResultSchema,
// Keep progress tokens available without imposing a client timeout on tool execution.
{ signal, resetTimeoutOnProgress: true, onprogress: () => {} },
// Human-driven tools can exceed the SDK default; use an effectively infinite timeout.
{ signal, timeout: DEFAULT_TOOL_CALL_TIMEOUT, resetTimeoutOnProgress: true, onprogress: () => {} },
),
catch: (error) => (error instanceof Error ? error : new Error(String(error))),
}).pipe(