diff options
| author | Kujtim Hoxha <[email protected]> | 2025-04-27 20:31:53 +0200 |
|---|---|---|
| committer | Kujtim Hoxha <[email protected]> | 2025-04-27 20:31:53 +0200 |
| commit | 2b4441a0d114fec303a8ab9a9ce5e31ac8140150 (patch) | |
| tree | 24aa0ddbc8c47f07349d9c6cfcabded47b56217d | |
| parent | 8f3a94df92ce783f8957aeb66b08801be736adfb (diff) | |
| download | opencode-2b4441a0d114fec303a8ab9a9ce5e31ac8140150.tar.gz opencode-2b4441a0d114fec303a8ab9a9ce5e31ac8140150.zip | |
fix context
| -rw-r--r-- | internal/llm/prompt/prompt.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/internal/llm/prompt/prompt.go b/internal/llm/prompt/prompt.go index 7290ed9a5..4f7e84dbe 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 +} + |
