sandbox-agent/foundry/packages/backend/src
Nathan Flurry 7b23e519c2 fix(foundry): add Bun idleTimeout safety net and subscription retry with backoff
Bun.serve() defaults to a 10s idle timeout that can kill long-running
requests. Actor RPCs go through the gateway tunnel with a 1s SSE ping,
so this likely never fires, but set idleTimeout to 255 as a safety net.

Subscription topics (app, org, session, task) previously had no retry
mechanism. If the initial connection or a mid-session error occurred,
the subscription stayed in error state permanently. Add exponential
backoff retry (1s base, 30s max) that cleans up the old connection
before each attempt and stops when disposed or no listeners remain.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-17 18:35:36 -07:00
..
actors fix(foundry): use $HOME instead of hardcoded /home/sandbox for sandbox repo paths 2026-03-17 17:33:53 -07:00
config fix(foundry): fix runner version 2026-03-17 14:33:13 -07:00
integrations chore(foundry): workbench action responsiveness (#254) 2026-03-14 20:42:18 -07:00
notifications Rename Foundry handoffs to tasks (#239) 2026-03-11 13:23:54 -07:00
services feat(foundry): add foundry base sandbox image with sudo, chromium, and dev tooling 2026-03-17 02:09:12 -07:00
driver.ts chore(foundry): workbench action responsiveness (#254) 2026-03-14 20:42:18 -07:00
index.ts fix(foundry): add Bun idleTimeout safety net and subscription retry with backoff 2026-03-17 18:35:36 -07:00
logging.ts Fix Foundry UI bugs: org names, sessions, and repo selection (#250) 2026-03-13 20:48:22 -07:00
sandbox-config.ts chore(foundry): workbench action responsiveness (#254) 2026-03-14 20:42:18 -07:00