From 79ceea257fe8353e41fa5dbe2f23cf21e0de4918 Mon Sep 17 00:00:00 2001 From: Tom Boucher Date: Wed, 18 Mar 2026 16:00:23 -0400 Subject: [PATCH] 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 --- src/resources/extensions/gsd/guided-flow.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/resources/extensions/gsd/guided-flow.ts b/src/resources/extensions/gsd/guided-flow.ts index c4cc6b2b6..39cb10965 100644 --- a/src/resources/extensions/gsd/guided-flow.ts +++ b/src/resources/extensions/gsd/guided-flow.ts @@ -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