Skip to content

fix: update check cache — 60min UP_TO_DATE TTL + --force flag (v0.4.4)#110

Merged
garrytan merged 3 commits intomainfrom
garrytan/update-fixes
Mar 16, 2026
Merged

fix: update check cache — 60min UP_TO_DATE TTL + --force flag (v0.4.4)#110
garrytan merged 3 commits intomainfrom
garrytan/update-fixes

Conversation

@garrytan
Copy link
Owner

Summary

  • UP_TO_DATE cache TTL reduced from 12 hours to 60 minutes — detects new releases within the hour instead of half a day. Fixes the bug where users were stuck on old versions for 13+ hours.
  • UPGRADE_AVAILABLE cache keeps 720min TTL — keeps nagging appropriately.
  • --force flag on bin/gstack-update-check — deletes cache before checking. Used by /gstack-upgrade standalone invocation.
  • /gstack-upgrade standalone now calls --force — always gets a fresh result from GitHub.
  • 3 new tests--force busts UP_TO_DATE, --force busts UPGRADE_AVAILABLE, 60-min TTL boundary.

Pre-Landing Review

No issues found. Pure bash script + test changes.

Test plan

  • All update-check tests pass (32 tests, 0 failures)
  • All skill validation tests pass (157 tests, 0 failures)

🤖 Generated with Claude Code

garrytan and others added 3 commits March 16, 2026 13:03
UP_TO_DATE cache now expires after 60 min (was 720 min / 12 hours).
UPGRADE_AVAILABLE keeps 720 min TTL to keep nagging.

--force flag deletes cache before checking, used by /gstack-upgrade
standalone invocation to always get a fresh result from GitHub.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@garrytan garrytan merged commit c86faa7 into main Mar 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant