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
fix: remove bridge launch from start.sh — single owner (startup-cleanup.sh)
The bridge was launched in two places:
1. start.sh — as a background subshell before pi starts
2. startup-cleanup.sh — in a tmux session after control-agent is live
This caused recurring issues:
- Port 7890 conflicts (both try to bind)
- Orphaned supervisor loops surviving restarts
- Bridge can't find pi socket (start.sh launches before UUID is known)
- PID file tracking is unreliable across restarts
Fix: start.sh now only CLEANS UP stale bridge processes. The actual
bridge launch is solely owned by startup-cleanup.sh, which:
- Runs after pi starts (UUID is known)
- Sets PI_SESSION_ID correctly
- Uses a tmux session with restart loop
- Does full port/process cleanup before launching
This eliminates the dual-owner race condition.
0 commit comments