Skip to content

The open source coding agent.

TypeScript

fix context

Kujtim Hoxha2b4441a0d114
diff --git a/internal/llm/prompt/prompt.go b/internal/llm/prompt/prompt.go
index 7290ed9a545..4f7e84dbeea 100644
--- a/internal/llm/prompt/prompt.go
+++ b/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)
-}
\ No newline at end of file
+}
+