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(issue-1811): stop update.ps1 aborting on native-command stderr under ErrorActionPreference=Stop

[._.]/ Adam Eivy046eb8f64a14
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md
index d30e296a48..46ba96b782 100644
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@ -3,6 +3,10 @@
- Shell page now has a **Fullscreen** button that promotes the terminal to a full-viewport overlay (above the sidebar), hiding the stacked header/tabs/quick-commands toolbars so the TUI gets the whole screen — a major mobile usability win where those toolbars previously ate most of the display. Fullscreen keeps a compact, horizontally-scrollable control bar (Exit, Ctrl+C, Paste, arrow/Enter keys) so you can still drive a TUI by thumb, and the Ctrl+C/Paste labels now collapse on small screens to save width.
- OpenCode Ollama **TUI** provider for CoS tasks. The TUI completion workflow is now provider-aware: a slashdo-free TUI (OpenCode, which doesn't load Claude Code `/do:*` slash commands) gets a plain `git` + forge-CLI commit → push → open-PR-for-review → `.agent-done` sentinel handoff instead of `/do:pr` / `/do:push`, so an OpenCode TUI agent can actually complete an automated task. The manual path opens the PR/MR (GitHub `gh` or GitLab `glab`) for review without auto-merging. Ships `opencode-ollama-tui` to existing installs via migration 152. (#1814)
+## Windows updater
+
+- **[issue-1811] Windows update no longer aborts on a successful `git pull`** — the PowerShell updater (`update.ps1`) was treating normal git/npm progress messages (which those tools print to stderr, e.g. "From https://github.com/…") as fatal errors and stopping the update partway through. The updater now distinguishes real failures (by exit code) from routine status output, so updates run to completion on Windows. (#1811)
+
## Fixed
- Catalog "Appears in" panel no longer renders dangling chips that deep-link to soft-deleted universe/series/creative-director targets — the detail page filters refs to live targets only (the orphan stays recoverable via the "Orphaned" album). Also fixed a stale resolver bug where soft-deleted Creative Director projects (#1564) wrongly resolved as live, and extended orphan-bucket detection so a deleted CD project's ex-cast surfaces as orphaned rather than unlinked. (#1812)
diff --git a/update.ps1 b/update.ps1
index 1454562fb2..656e74419d 100644
--- a/update.ps1
+++ b/update.ps1
@@ -61,9 +61,18 @@ function Step {
function Invoke-Logged {
param([Parameter(ValueFromRemainingArguments)]$CmdArgs)
$cmd = $CmdArgs[0]
- $args = @()
- if ($CmdArgs.Count -gt 1) { $args = $CmdArgs[1..($CmdArgs.Count - 1)] }
- & $cmd @args >> $UpdateLog 2>&1
+ # Avoid clobbering the automatic $args variable — use a distinct name.
+ $cmdArgs = @()
+ if ($CmdArgs.Count -gt 1) { $cmdArgs = $CmdArgs[1..($CmdArgs.Count - 1)] }
+ # Native commands (git, npm, node) routinely write progress/status to stderr —
+ # `git pull` prints "From https://github.com/..." there on every SUCCESSFUL run.
+ # Under the script-level $ErrorActionPreference='Stop', PowerShell promotes that
+ # redirected stderr into a terminating NativeCommandError and aborts the update on
+ # a command that actually succeeded (issue #1811). Real failures are detected via
+ # $LASTEXITCODE by every caller, so downgrade the error action to Continue for the
+ # external call only — this assignment is function-scoped and reverts on return.
+ $ErrorActionPreference = 'Continue'
+ & $cmd @cmdArgs >> $UpdateLog 2>&1
}
Write-SafeHost "===================================" -ForegroundColor Cyan
@@ -304,7 +313,13 @@ Step "migrations" "done" "Migrations complete"
# Pipe "a" so slash-do's "multiple environments detected" prompt auto-selects
# all detected envs instead of hanging on readline (update.ps1 has no TTY).
Step "slash-do" "running" "Installing/updating slash-do commands..."
-"a" | & npx --yes slash-do@latest >> $UpdateLog 2>&1
+# npx writes status to stderr; scope the same Continue downgrade as Invoke-Logged
+# around this stdin-piped call so it isn't aborted by a NativeCommandError (#1811).
+# $LASTEXITCODE set inside the script block still propagates to the check below.
+& {
+ $ErrorActionPreference = 'Continue'
+ "a" | & npx --yes slash-do@latest >> $UpdateLog 2>&1
+}
if ($LASTEXITCODE -ne 0) {
Write-SafeHost "⚠️ slash-do install/update failed. Continuing (re-run later: npx slash-do@latest)." -ForegroundColor Yellow
$global:LASTEXITCODE = 0