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
address review (codex): capture pre-pull SHA after checkout to main
[._.]/ Adam Eivyb0dd9b701ec8
diff --git a/update.ps1 b/update.ps1index 76e61d4981..13a83ad0ba 100644--- a/update.ps1+++ b/update.ps1@@ -140,9 +140,6 @@ function Safe-Install {# the update completes (we don't auto-pop because the rest of the script# needs to keep running with main's contents).Step "git-pull" "running" "Pulling latest changes..."-# Record the revision we're updating FROM (before any branch switch) so we can-# tell afterward which workspaces' package.json the pull changed → clean reinstall.-$prePullSha = git rev-parse HEAD 2>$null$originUrl = git remote get-url origin 2>$nullif ($originUrl) {# Redact any embedded credentials (https://user:token@host/...) before logging@@ -189,6 +186,12 @@ if ($currentBranch -ne "main") {Invoke-Logged git checkout mainif ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }}+# Record main's pre-pull HEAD — captured AFTER any checkout so it's the commit+# the installed node_modules was built from (main, which the rest of this script+# installs/builds), not a feature branch we just left. Diffing this against+# post-pull HEAD yields exactly the pull's delta on main, so a manifest change+# the update brings is detected even when launched from another branch.+$prePullSha = git rev-parse HEAD 2>$nullInvoke-Logged git pull --rebase --autostashif ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }Step "git-pull" "done" "Latest changes pulled"diff --git a/update.sh b/update.shindex af6261a8cc..bafb3ccd48 100755--- a/update.sh+++ b/update.sh@@ -104,9 +104,6 @@ safe_install() {# the update completes (we don't auto-pop because the rest of the script# needs to keep running with main's contents).step "git-pull" "running" "Pulling latest changes..."-# Record the revision we're updating FROM (before any branch switch) so we can-# tell afterward which workspaces' package.json the pull changed → clean reinstall.-pre_pull_sha=$(git rev-parse HEAD 2>/dev/null || echo "")origin_url=$(git remote get-url origin 2>/dev/null || echo "")if [ -n "$origin_url" ]; then# Redact any embedded credentials (https://user:token@host/...) before logging@@ -133,6 +130,12 @@ if [ "$current_branch" != "main" ]; thenlog "⚠️ On branch '${current_branch:-detached HEAD}' — switching to main for update"run git checkout mainfi+# Record main's pre-pull HEAD — captured AFTER any checkout so it's the commit+# the installed node_modules was built from (main, which the rest of this script+# installs/builds), not a feature branch we just left. Diffing this against+# post-pull HEAD yields exactly the pull's delta on main, so a manifest change+# the update brings is detected even when launched from another branch.+pre_pull_sha=$(git rev-parse HEAD 2>/dev/null || echo "")run git pull --rebase --autostashstep "git-pull" "done" "Latest changes pulled"