refactor: remove cli run timeout path and rely on strict completion

This commit is contained in:
YeonGyu-Kim
2026-02-17 14:52:52 +09:00
parent 7b2c2529fe
commit 4d3cce685d
5 changed files with 2 additions and 94 deletions
+1 -5
View File
@@ -11,7 +11,6 @@ import { pollForCompletion } from "./poll-for-completion"
export { resolveRunAgent }
const DEFAULT_TIMEOUT_MS = 600_000
const EVENT_PROCESSOR_SHUTDOWN_TIMEOUT_MS = 2_000
export async function waitForEventProcessorShutdown(
@@ -39,7 +38,6 @@ export async function run(options: RunOptions): Promise<number> {
const {
message,
directory = process.cwd(),
timeout = DEFAULT_TIMEOUT_MS,
} = options
const jsonManager = options.json ? createJsonOutputManager() : null
@@ -99,9 +97,7 @@ export async function run(options: RunOptions): Promise<number> {
})
console.log(pc.dim("Waiting for completion...\n"))
const exitCode = await pollForCompletion(ctx, eventState, abortController, {
timeoutMs: timeout,
})
const exitCode = await pollForCompletion(ctx, eventState, abortController)
// Abort the event stream to stop the processor
abortController.abort()