on main help sign in
fix context
commit2b4441a0d114fec303a8ab9a9ce5e31ac8140150 authorKujtim Hoxha <kujtimii.h@gmail.com> dateSun 27 Apr 2025, 20:31 (2 years ago) parent8f3a94d
1 file changed+4−3
internal/llm/prompt/prompt.go+4−3
internal/llm/prompt/prompt.go+4−3
@@ -91,11 +91,11 @@ func processContextPaths(workDir string, paths []string) string {
9191 }()
9292
9393 var (
94− results = make([]string, len(resultCh))
94+ results = make([]string, 0)
9595 i int
9696 )
9797 for result := range resultCh {
98− results[i] = result
98+ results = append(results, result)
9999 i++
100100 }
101101
@@ -108,4 +108,5 @@ func processFile(filePath string) string {
108108 return ""
109109 }
110110 return "# From:" + filePath + "\n" + string(content)
111−}
111+}
112+