You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(lsp): surface gopls spawn failure reasons to LLM via tool output
When gopls fails to start (e.g. Go runtime not installed), the error was
silently swallowed, causing the LLM to only see a generic 'No LSP server
available' message with no actionable guidance.
Changes:
- server.ts: Gopls.spawn() now throws descriptive errors instead of
silently returning undefined when Go is missing or installation fails
- lsp.ts: broken set -> map to store failure reasons; add failureReason()
method to query stored reasons by file
- tool/lsp.ts: query failureReason() when LSP unavailable, pass specific
error message to LLM (e.g. 'Go runtime not found. Please install Go
first')
0 commit comments