From e41438faaf3ee90e549dfeeb55b4924ef7f7cc3d Mon Sep 17 00:00:00 2001 From: cte Date: Fri, 16 Jan 2026 22:37:05 -0800 Subject: [PATCH] Remove timeout --- apps/cli/src/agent/extension-host.ts | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/apps/cli/src/agent/extension-host.ts b/apps/cli/src/agent/extension-host.ts index 88020ae3a7..a3ceec132f 100644 --- a/apps/cli/src/agent/extension-host.ts +++ b/apps/cli/src/agent/extension-host.ts @@ -437,9 +437,6 @@ export class ExtensionHost extends EventEmitter implements ExtensionHostInterfac this.sendToExtension({ type: "newTask", text: prompt }) return new Promise((resolve, reject) => { - let timeoutId: NodeJS.Timeout | null = null - const timeoutMs: number = 110_000 - const completeHandler = () => { cleanup() resolve() @@ -451,23 +448,10 @@ export class ExtensionHost extends EventEmitter implements ExtensionHostInterfac } const cleanup = () => { - if (timeoutId) { - clearTimeout(timeoutId) - timeoutId = null - } - this.client.off("taskCompleted", completeHandler) this.client.off("error", errorHandler) } - // Set timeout to prevent indefinite hanging. - timeoutId = setTimeout(() => { - cleanup() - reject( - new Error(`Task completion timeout after ${timeoutMs}ms - no completion or error event received`), - ) - }, timeoutMs) - this.client.once("taskCompleted", completeHandler) this.client.once("error", errorHandler) })