From f8e05a0d9a42139b442437b26c752cf983c51e2a Mon Sep 17 00:00:00 2001 From: Kujtim Hoxha Date: Thu, 3 Apr 2025 20:30:30 +0200 Subject: [PATCH] small improvements to the prompt --- internal/llm/prompt/coder.go | 5 +++-- internal/llm/tools/diagnostics.go | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/internal/llm/prompt/coder.go b/internal/llm/prompt/coder.go index 27bb7e43103efba8f2c55811cc979ba8d86518bc..47941f976f76e1f71c6d17cf6f951a65c72dcf87 100644 --- a/internal/llm/prompt/coder.go +++ b/internal/llm/prompt/coder.go @@ -212,8 +212,9 @@ func lspInformation() string { } return `# LSP Information Tools that support it will also include useful diagnostics such as linting and typechecking. -These diagnostics will be automatically enabled when you run the tool, and will be displayed in the output at the bottom within the and tags. -Take necessary actions to fix the issues. +- These diagnostics will be automatically enabled when you run the tool, and will be displayed in the output at the bottom within the and tags. +- Take necessary actions to fix the issues. +- 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. ` } diff --git a/internal/llm/tools/diagnostics.go b/internal/llm/tools/diagnostics.go index dc90e58604c84c0a296c36b237c8454315bb6a86..d58dbd9fc89a9abc1dd19ddd83044d51994a5aea 100644 --- a/internal/llm/tools/diagnostics.go +++ b/internal/llm/tools/diagnostics.go @@ -65,7 +65,7 @@ func notifyLspOpenFile(ctx context.Context, filePath string, lsps map[string]*ls if err != nil { // Wait for the file to be opened and diagnostics to be received // TODO: see if we can do this in a more efficient way - time.Sleep(2 * time.Second) + time.Sleep(3 * time.Second) } }