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
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
fix(update): update.ps1 hangs at setup step when Docker is unavailable
[._.]/ Adam Eivy775e06864572
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.mdindex 1e396e6a06..4a55d4a709 100644--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@ -62,3 +62,4 @@- **Morse Send drill** no longer reveals the answer or competes with itself for spacebar input: the morse pattern under each prompt is gone (the reference tabs on the right are still available for hints), the global spacebar keying listener only attaches in Send mode (so it doesn't fire on the trainer landing page or during Copy drills), the side widget's "Practice Key" panel is hidden outside Send mode and no longer duplicates the live decoded letter, and the "Your sending" box starts blank with a "waiting for your first key…" hint instead of a misleading "—" placeholder.- **CoS agents now reliably open PRs and request Copilot reviews when configured.** Previously, when both `openPR` and `reviewLoop` were enabled on a task, the worktree-cleanup logic's gate (`taskOpenPR && !taskReviewLoop`) skipped PR creation — falling through to auto-merge the agent's branch into main with no PR, no review, and contradictory wording in the agent prompt about whether it should open the PR itself. The cleanup now always opens the PR when `openPR` is set; when `reviewLoop` is also set, it requests a Copilot review on the new PR via the new `git.requestCopilotReview()` helper. The agent prompt is updated to consistently tell the agent the system handles PR creation and review requests.+- **`update.ps1` no longer hangs at "Running setup…" when Docker is unavailable.** `Invoke-Logged` now pipes empty stdin to all child processes so Node scripts detect non-TTY context correctly. `setup-db.js` no longer shows an invisible interactive prompt (stdout was redirected to the log file) and no longer silently rewrites `PGMODE=file` in `.env` — instead it logs a warning to stderr and exits 0 so the update continues.diff --git a/scripts/setup-db.js b/scripts/setup-db.jsindex cdbed5af6f..11c54f7a6e 100644--- a/scripts/setup-db.js+++ b/scripts/setup-db.js@@ -208,13 +208,15 @@ function setPgMode(mode) {// Prompt user to choose storage mode (TTY only)function promptStorageChoice(message, hint) {- return new Promise((resolve) => {- // Non-TTY (CI, piped scripts) — default to file-based- if (!process.stdin.isTTY) {- resolve('file');- return;- }+ // Stdout redirected means we can't show the prompt — warn and exit 0 without changing mode.+ if (!process.stdin.isTTY || !process.stdout.isTTY) {+ console.error(`⚠️ ${message}`);+ console.error(` ${hint}`);+ console.error(' Start Docker then run: npm run setup');+ process.exit(0);+ }+ return new Promise((resolve) => {console.log(`⚠️ ${message}`);console.log(` ${hint}`);console.log('');diff --git a/update.ps1 b/update.ps1index 751a3c72e8..fdbc252b70 100644--- a/update.ps1+++ b/update.ps1@@ -63,7 +63,7 @@ function Invoke-Logged {$cmd = $CmdArgs[0]$args = @()if ($CmdArgs.Count -gt 1) { $args = $CmdArgs[1..($CmdArgs.Count - 1)] }- & $cmd @args >> $UpdateLog 2>&1+ "" | & $cmd @args >> $UpdateLog 2>&1}Write-SafeHost "===================================" -ForegroundColor Cyan