Change summary
  internal/llm/prompt/coder.go  | 2 +-
internal/llm/prompt/prompt.go | 6 ++----
2 files changed, 3 insertions(+), 5 deletions(-)
  Detailed changes
  
  
    
    @@ -28,7 +28,7 @@ func CoderPrompt(p string, contextFiles ...string) string {
 
 	basePrompt = fmt.Sprintf("%s\n\n%s\n%s", basePrompt, envInfo, lspInformation())
 
-	contextContent := getContextFromPaths(contextFiles)
+	contextContent := getContextFromPaths(config.Get().WorkingDir(), contextFiles)
 	slog.Debug("Context content", "Context", contextContent)
 	if contextContent != "" {
 		return fmt.Sprintf("%s\n\n# Project-Specific Context\n Make sure to follow the instructions in the context below\n%s", basePrompt, contextContent)
  
  
  
    
    @@ -5,8 +5,6 @@ import (
 	"path/filepath"
 	"strings"
 	"sync"
-
-	"github.com/charmbracelet/crush/internal/config"
 )
 
 type PromptID string
@@ -36,8 +34,8 @@ func GetPrompt(promptID PromptID, provider string, contextPaths ...string) strin
 	return basePrompt
 }
 
-func getContextFromPaths(contextPaths []string) string {
-	return processContextPaths(config.Get().WorkingDir(), contextPaths)
+func getContextFromPaths(workingDir string, contextPaths []string) string {
+	return processContextPaths(workingDir, contextPaths)
 }
 
 func processContextPaths(workDir string, paths []string) string {