fix(#2784): clear shared ~/.cache/gsd/ update-check cache in update workflow (#2813)

* fix(#2784): clear shared ~/.cache/gsd/ cache in update workflow

The SessionStart hook (hooks/gsd-check-update.js) writes update-check
results to $HOME/.cache/gsd/gsd-update-check.json (shared, tool-agnostic).
The update.md run_update step only cleared per-runtime paths like
~/.claude/cache/gsd-update-check.json, so the statusline kept showing the
stale upgrade indicator after a successful update.

Fix: add rm -f "$HOME/.cache/gsd/gsd-update-check.json" to the
cache-clear block in the run_update step.

Regression test: tests/bug-2784-update-cache-clear-path.test.cjs

* fix(#2784): address CodeRabbit review — four edge-cases count, bash fence, structured test assertions
This commit is contained in:
Tom Boucher
2026-04-28 20:21:41 -04:00
committed by GitHub
parent 055b43054f
commit d46efb4790
4 changed files with 93 additions and 2 deletions

View File

@@ -2,7 +2,7 @@
Pre-release candidate. Published to npm under the `next` tag.
```
```bash
npx get-shit-done-cc@next
```