From 2447bb6c0035ce31ef8eb6ee0002f9aca85572b9 Mon Sep 17 00:00:00 2001 From: rUv Date: Tue, 13 Jan 2026 00:35:39 +0000 Subject: [PATCH] Checkpoint: File edits MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Automatic checkpoint created by Claude Code - Branch: v3 - Timestamp: 2026-01-13T00:35:39Z - Changes: 1 file(s) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- v3/@claude-flow/cli/src/runtime/headless.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/v3/@claude-flow/cli/src/runtime/headless.ts b/v3/@claude-flow/cli/src/runtime/headless.ts index b4c0a01734..709d58706b 100644 --- a/v3/@claude-flow/cli/src/runtime/headless.ts +++ b/v3/@claude-flow/cli/src/runtime/headless.ts @@ -134,16 +134,14 @@ Examples: async function runWorker(workerType: HeadlessWorkerType, timeout: number): Promise { console.log(`[Headless] Starting worker: ${workerType}`); - const executor = new HeadlessWorkerExecutor({ + const executor = new HeadlessWorkerExecutor(process.cwd(), { maxConcurrent: 1, - defaultTimeout: timeout, - workingDirectory: process.cwd(), - sandboxMode: 'permissive' + defaultTimeoutMs: timeout }); try { const result = await executor.execute(workerType, { - timeout, + timeoutMs: timeout, model: 'sonnet', sandbox: 'permissive' }); @@ -159,7 +157,7 @@ async function runWorker(workerType: HeadlessWorkerType, timeout: number): Promi process.exit(1); } } finally { - await executor.shutdown(); + // executor doesn't have shutdown, just let it be garbage collected } }