@@ -28,7 +28,7 @@ func CoderPrompt(p string, contextFiles ...string) string {
29 basePrompt = fmt.Sprintf("%s\n\n%s\n%s", basePrompt, envInfo, lspInformation())
29 basePrompt = fmt.Sprintf("%s\n\n%s\n%s", basePrompt, envInfo, lspInformation())
31− contextContent := getContextFromPaths(contextFiles)
31+ contextContent := getContextFromPaths(config.Get().WorkingDir(), contextFiles)
32 slog.Debug("Context content", "Context", contextContent)
32 slog.Debug("Context content", "Context", contextContent)
33 if contextContent != "" {
33 if contextContent != "" {
34 return fmt.Sprintf("%s\n\n# Project-Specific Context\n Make sure to follow the instructions in the context below\n%s", basePrompt, contextContent)
34 return fmt.Sprintf("%s\n\n# Project-Specific Context\n Make sure to follow the instructions in the context below\n%s", basePrompt, contextContent)