You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bb-app supervisor retries forever after another server takes its port #2993
When a managed bb-app start server exits and another healthy bb server has taken the configured URL/port, the full-stack supervisor retries the server indefinitely (roughly once per second).
Each retry fails with EADDRINUSE, writes another uncaught-exception diagnostic, and leaves the first supervisor plus its host daemon alive. This can create sustained CPU/disk churn and two host daemons for one data directory.
Reproduction
Start the managed full stack on the default data directory and port.
Cause that managed server child to exit while leaving its supervisor/daemon alive.
Start another healthy bb server on the same URL.
Observe Restarting server / Server failed to restart and EADDRINUSE repeating indefinitely.
Expected
After the managed server child exits, the supervisor should probe the configured health URL. If another valid healthy server owns it, it should stop its own remaining daemon and exit cleanly rather than retrying forever.
Proposed regression coverage
A supervisor test where the server child exits and an injected occupancy probe returns true should assert:
no replacement server is spawned;
the supervisor resolves as stopped;
its daemon receives SIGTERM.
I have a local tested patch implementing this behavior in packages/bb-app/src/launcher.ts.
Activity
bb-slop-cop commentedon Sep 3, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilothost,cli,confirmed-repro.confirmed-repro.Stop supervision when a healthy server replaces the managed child (ge…
Give every persisted retry schedule one owner, an attempt cap and a n…