sandbox-agent/foundry/packages/backend
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
..
src fix(foundry): add Bun idleTimeout safety net and subscription retry with backoff 2026-03-17 18:35:36 -07:00
test chore(foundry): migrate to actions (#262) 2026-03-16 15:23:59 -07:00
CLAUDE.md feat(foundry): add foundry base sandbox image with sudo, chromium, and dev tooling 2026-03-17 02:09:12 -07:00
package.json SDK: Add ensureServer() for automatic server recovery (#260) 2026-03-15 20:29:28 -07:00
tsconfig.json Rename Foundry handoffs to tasks (#239) 2026-03-11 13:23:54 -07:00
vitest.config.ts Rename Foundry handoffs to tasks (#239) 2026-03-11 13:23:54 -07:00