From 08b8bcf2954f175b8da64094ccda72c04784b69c Mon Sep 17 00:00:00 2001 From: Evan Jarrett Date: Mon, 24 Nov 2025 13:57:32 -0600 Subject: [PATCH] ugh --- pkg/appview/middleware/registry.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pkg/appview/middleware/registry.go b/pkg/appview/middleware/registry.go index a4dd229..30b6389 100644 --- a/pkg/appview/middleware/registry.go +++ b/pkg/appview/middleware/registry.go @@ -133,10 +133,9 @@ func (vc *validationCache) getOrFetch(ctx context.Context, cacheKey string, fetc } } - // Mark as in-flight and create done channel if needed - if entry.done == nil { - entry.done = make(chan struct{}) - } + // Mark as in-flight and create fresh done channel for this fetch + // IMPORTANT: Always create a new channel - a closed channel is not nil + entry.done = make(chan struct{}) entry.inFlight = true done := entry.done entry.mu.Unlock()