Skip to content

Commit e41438f

Browse files
committed
Remove timeout
1 parent d14e7e2 commit e41438f

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

apps/cli/src/agent/extension-host.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -437,9 +437,6 @@ export class ExtensionHost extends EventEmitter implements ExtensionHostInterfac
437437
this.sendToExtension({ type: "newTask", text: prompt })
438438

439439
return new Promise((resolve, reject) => {
440-
let timeoutId: NodeJS.Timeout | null = null
441-
const timeoutMs: number = 110_000
442-
443440
const completeHandler = () => {
444441
cleanup()
445442
resolve()
@@ -451,23 +448,10 @@ export class ExtensionHost extends EventEmitter implements ExtensionHostInterfac
451448
}
452449

453450
const cleanup = () => {
454-
if (timeoutId) {
455-
clearTimeout(timeoutId)
456-
timeoutId = null
457-
}
458-
459451
this.client.off("taskCompleted", completeHandler)
460452
this.client.off("error", errorHandler)
461453
}
462454

463-
// Set timeout to prevent indefinite hanging.
464-
timeoutId = setTimeout(() => {
465-
cleanup()
466-
reject(
467-
new Error(`Task completion timeout after ${timeoutMs}ms - no completion or error event received`),
468-
)
469-
}, timeoutMs)
470-
471455
this.client.once("taskCompleted", completeHandler)
472456
this.client.once("error", errorHandler)
473457
})

0 commit comments

Comments
 (0)