fix: invalidate caches before roadmap check in /gsd discuss (#1240)

After milestone creation, the file parse caches could still hold
stale results from before the ROADMAP was written. /gsd discuss checks
for ROADMAP but hits the cache, gets null, and reports 'No roadmap yet'
even though the file exists on disk.

Added invalidateAllCaches() at the top of showDiscuss() to ensure
fresh reads from disk.

Fixes #1236
This commit is contained in:
Tom Boucher 2026-03-18 16:00:23 -04:00 committed by GitHub
parent ebe59a987f
commit 79ceea257f

View file

@ -415,6 +415,9 @@ export async function showDiscuss(
return;
}
// Invalidate caches to pick up artifacts written by a just-completed discuss/plan
invalidateAllCaches();
const state = await deriveState(basePath);
// Guard: no active milestone