fix context

Kujtim Hoxha created

Change summary

internal/llm/prompt/prompt.go | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)

Detailed changes

internal/llm/prompt/prompt.go 🔗

@@ -91,11 +91,11 @@ func processContextPaths(workDir string, paths []string) string {
 	}()
 
 	var (
-		results = make([]string, len(resultCh))
+		results = make([]string, 0)
 		i       int
 	)
 	for result := range resultCh {
-		results[i] = result
+		results = append(results, result)
 		i++
 	}
 
@@ -108,4 +108,5 @@ func processFile(filePath string) string {
 		return ""
 	}
 	return "# From:" + filePath + "\n" + string(content)
-}
+}
+