From 19ac77e25dc7f48d69d2c31bd6af1d9b78f57f34 Mon Sep 17 00:00:00 2001 From: Alex Foster <166056029+alexfosterinvisible@users.noreply.github.com> Date: Fri, 27 Feb 2026 19:34:31 +0000 Subject: [PATCH] fix: clear both cache paths after update (#663) (#664) The SessionStart hook always writes to ~/.claude/cache/ via os.homedir() regardless of install type. The update workflow previously only cleared the install-type-specific path, leaving stale cache at the global path for local installs. Clear both ./.claude/cache/ and ~/.claude/cache/ unconditionally. Co-authored-by: Claude Sonnet 4.5 --- get-shit-done/workflows/update.md | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/get-shit-done/workflows/update.md b/get-shit-done/workflows/update.md index 001eb4013..3a184500c 100644 --- a/get-shit-done/workflows/update.md +++ b/get-shit-done/workflows/update.md @@ -164,16 +164,12 @@ Capture output. If install fails, show error and exit. Clear the update cache so statusline indicator disappears: -**If LOCAL install:** ```bash rm -f ./.claude/cache/gsd-update-check.json -``` - -**If GLOBAL install:** -```bash rm -f ~/.claude/cache/gsd-update-check.json ``` -(Paths are templated at install time for runtime compatibility) + +The SessionStart hook (`gsd-check-update.js`) always writes to `~/.claude/cache/` via `os.homedir()` regardless of install type, so both paths must be cleared to prevent stale update indicators.