From 406ccf9b878d1d9bd0c9bf8ed3432fe6f156fee3 Mon Sep 17 00:00:00 2001 From: adamdottv <2363879+adamdottv@users.noreply.github.com> Date: Fri, 2 May 2025 13:59:25 -0500 Subject: fix: diagnostics tool init --- internal/llm/tools/diagnostics.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'internal/llm/tools') diff --git a/internal/llm/tools/diagnostics.go b/internal/llm/tools/diagnostics.go index b4c5941c4..5355c164b 100644 --- a/internal/llm/tools/diagnostics.go +++ b/internal/llm/tools/diagnostics.go @@ -74,7 +74,8 @@ func (b *diagnosticsTool) Run(ctx context.Context, call ToolCall) (ToolResponse, lsps := b.lspClients if len(lsps) == 0 { - return NewTextErrorResponse("no LSP clients available"), nil + // Return a more helpful message when LSP clients aren't ready yet + return NewTextResponse("\n\nLSP clients are still initializing. Diagnostics will be available once they're ready.\n\n"), nil } if params.FilePath != "" { -- cgit v1.2.3