From 4178d9bdf031c964ec21595848036cae39db4881 Mon Sep 17 00:00:00 2001 From: Juniper Bevensee Date: Tue, 28 Jul 2026 10:42:27 +1200 Subject: [PATCH] =?UTF-8?q?fix(camofox):=201h=20BROWSER=5FIDLE=5FTIMEOUT?= =?UTF-8?q?=5FMS=20=E2=80=94=20VNC=20handoffs=20outlive=20the=205-min=20re?= =?UTF-8?q?aper?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Human-in-the-loop checkout/login via VNC generates no camofox API activity, so the server's 5-minute default idle timeout kills the browser mid-payment (hit live 2026-07-28 during a Ticket Tailor checkout handoff). Co-Authored-By: Claude Fable 5 --- lib/services/harness-compose.test.ts | 1 + lib/services/harness-compose.ts | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/lib/services/harness-compose.test.ts b/lib/services/harness-compose.test.ts index 66035ca..2444389 100644 --- a/lib/services/harness-compose.test.ts +++ b/lib/services/harness-compose.test.ts @@ -98,6 +98,7 @@ describe('generateStandaloneCompose', () => { expect(result).toContain('ENABLE_VNC=true') expect(result).toContain('VNC_BIND=0.0.0.0') expect(result).toContain('VNC_RESOLUTION=1280x720') + expect(result).toContain('BROWSER_IDLE_TIMEOUT_MS=3600000') expect(result).toContain('CAMOFOX_PORT=9377') }) diff --git a/lib/services/harness-compose.ts b/lib/services/harness-compose.ts index b37c079..0dcaca9 100644 --- a/lib/services/harness-compose.ts +++ b/lib/services/harness-compose.ts @@ -265,6 +265,10 @@ services: - ENABLE_VNC=true - VNC_BIND=0.0.0.0 - VNC_RESOLUTION=1280x720 + # Human-in-the-loop flows (VNC checkout/login handoff) generate no API + # activity, and the camofox server's 5-minute default reaps the browser + # mid-payment. One hour keeps sessions alive across a human handoff. + - BROWSER_IDLE_TIMEOUT_MS=3600000 volumes: - ${agentDataDir}/.camofox:/data ${ollamaBlock}