on main help sign in
small improvements to the prompt
commitf8e05a0d9a42139b442437b26c752cf983c51e2a authorKujtim Hoxha <kujtimii.h@gmail.com> dateThu 3 Apr 2025, 20:30 (2 years ago) parent49b593d
2 files changed+4−3
internal/llm/prompt/coder.go+3−2 internal/llm/tools/diagnostics.go+1−1
internal/llm/prompt/coder.go+3−2
@@ -212,8 +212,9 @@ func lspInformation() string {
212212 }
213213 return `# LSP Information
214214Tools that support it will also include useful diagnostics such as linting and typechecking.
215−These diagnostics will be automatically enabled when you run the tool, and will be displayed in the output at the bottom within the <file_diagnostics></file_diagnostics> and <project_diagnostics></project_diagnostics> tags.
216−Take necessary actions to fix the issues.
215+- These diagnostics will be automatically enabled when you run the tool, and will be displayed in the output at the bottom within the <file_diagnostics></file_diagnostics> and <project_diagnostics></project_diagnostics> tags.
216+- Take necessary actions to fix the issues.
217+- You should ignore diagnostics of files that you did not change or are not related or caused by your changes unless the user explicitly asks you to fix them.
217218`
218219}
219220
internal/llm/tools/diagnostics.go+1−1
@@ -65,7 +65,7 @@ func notifyLspOpenFile(ctx context.Context, filePath string, lsps map[string]*ls
6565 if err != nil {
6666 // Wait for the file to be opened and diagnostics to be received
6767 // TODO: see if we can do this in a more efficient way
68− time.Sleep(2 * time.Second)
68+ time.Sleep(3 * time.Second)
6969 }
7070
7171 }