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
{{ message }}
Repository navigation
Auto-upgrade misses updates when just-upgraded-from marker is stale #515
When a just-upgraded-from marker file persists across sessions, gstack-update-check short-circuits and never fetches the remote VERSION — even if the remote has moved far ahead.
Reproduction
gstack auto-upgrades from 0.9.3.0 → 0.9.4.0 (writes ~/.gstack/just-upgraded-from with 0.9.3.0)
That session ends before the marker is consumed (or the marker persists for another reason)
42 commits land on origin/main, pushing VERSION to 0.11.21.0
New session starts → gstack-update-check runs
Step 2 (line 112-122) finds the marker, outputs JUST_UPGRADED 0.9.3.0 0.9.4.0, writes UP_TO_DATE 0.9.4.0 to cache, and exits immediately
The script assumes "just upgraded = up to date" which isn't true if the remote advanced between the upgrade and the next session.
Suggested Fix
After consuming the marker, still do the remote VERSION fetch (or at minimum, don't write UP_TO_DATE to cache — let it fall through to Step 4):
if [ -f"$MARKER_FILE" ];then
OLD="$(cat "$MARKER_FILE"2>/dev/null | tr -d '[:space:]')"
rm -f "$MARKER_FILE"
rm -f "$SNOOZE_FILE"if [ -n"$OLD" ];thenecho"JUST_UPGRADED $OLD$LOCAL"fi# Don't exit — fall through to remote check in case# more updates landed since the upgradefi
Environment
gstack v0.9.4.0 → v0.11.21.0 (42 commits missed)
macOS Darwin 24.6.0
auto_upgrade: true in ~/.gstack/config.yaml
Global git install at ~/.claude/skills/gstack/
Workaround
Run /gstack-upgrade manually or gstack-update-check --force to bust the cache.
Activity
fix: auto-upgrade marker no longer masks newer remote versions
fix: re-check remote after just-upgraded marker (garrytan#515)
fix: community PRs + security hardening + E2E stability (v0.12.7.0) (g…
fix: community PRs + security hardening + E2E stability (v0.12.7.0) (g…
fix: community PRs + security hardening + E2E stability (v0.12.7.0) (g…
fix: auto-upgrade marker no longer masks newer remote versions
fix: community PRs + security hardening + E2E stability (v0.12.7.0) (g…