Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: update.sh hang after restart due to undici keeping event loop alive

Adam Eivy6a4f2b1cc986
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md
index c204f920bc..36a4c48f91 100644
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@ -2,6 +2,7 @@
## Fixed
+- `update.sh` no longer hangs after "PortOS restarted" — the browser-open script now exits explicitly instead of waiting for Node's undici connection pool to drain.
- Writers-room storyboard renders queued through Codex now wait their turn instead of erroring with "A Codex generation is already in progress" when you fire a second render before the first finishes. Codex jobs run on their own queue lane, so they don't block (and aren't blocked by) local image or video renders.
## Added
diff --git a/scripts/open-ui-in-browser.js b/scripts/open-ui-in-browser.js
index a645fc7895..1235ac0aca 100644
--- a/scripts/open-ui-in-browser.js
+++ b/scripts/open-ui-in-browser.js
@@ -103,3 +103,4 @@ if (!res.ok) {
}
console.log(`🌐 Opened ${TARGET_URL} in PortOS browser`);
+process.exit(0);