From 670d27258ee3a1abb0a3b8b933ffbff41338aca9 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Tue, 8 Jul 2025 00:21:37 +0300 Subject: fix: only check for claude command when needed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Skip claude command existence check when using cached summary - Prevents unnecessary error when claude is not installed but cache exists - Improves performance for cached showcase generation 🤖 Generated with Claude Code Co-Authored-By: Claude --- internal/showcase/showcase.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/internal/showcase/showcase.go b/internal/showcase/showcase.go index 386a674..bd94b18 100644 --- a/internal/showcase/showcase.go +++ b/internal/showcase/showcase.go @@ -186,9 +186,11 @@ func (g *Generator) generateProjectSummary(repoName string, forceRegenerate bool } } - // Check if claude command exists - if _, err := exec.LookPath("claude"); err != nil { - return nil, fmt.Errorf("claude command not found. Please install Claude CLI") + // Check if claude command exists (only if we need to run it) + if !haveCachedSummary { + if _, err := exec.LookPath("claude"); err != nil { + return nil, fmt.Errorf("claude command not found. Please install Claude CLI") + } } // Change to repository directory -- cgit v1.2.3