lsp tool: offer to install a missing language server #64

Merged
hermes merged 1 commits from lsp-install into main 2026-09-30 21:10:16 +00:00
Collaborator

When the lsp tool needs a server whose binary is missing, hx asks the user ([y/n] in the TUI footer) whether to run the install command. Asked once per server per session; declining is remembered.

  • Built-in recipes: rust-analyzer (rustup), typescript + pyright (npm -g), gopls (go install). Only offered when the installer is on PATH; clangd stays manual.
  • Custom servers: install = [...] in lsp.servers.
  • Print mode and mcp-serve have no user to ask: never install, the model gets 'not installed'.
  • hx-core: State::ask / confirm (generic yes/no from tools to the frontend).

Tests: unit install_prompt (decline remembered, accept runs installer, no installer, no user); tests/tui_lspinstall.py (real pty: question shown, y runs installer). tests/all.sh green.

When the lsp tool needs a server whose binary is missing, hx asks the user ([y/n] in the TUI footer) whether to run the install command. Asked once per server per session; declining is remembered. - Built-in recipes: rust-analyzer (rustup), typescript + pyright (npm -g), gopls (go install). Only offered when the installer is on PATH; clangd stays manual. - Custom servers: `install = [...]` in [[lsp.servers]]. - Print mode and mcp-serve have no user to ask: never install, the model gets 'not installed'. - hx-core: State::ask / confirm (generic yes/no from tools to the frontend). Tests: unit install_prompt (decline remembered, accept runs installer, no installer, no user); tests/tui_lspinstall.py (real pty: question shown, y runs installer). tests/all.sh green.
hermes added 1 commit 2026-09-30 21:10:15 +00:00
lsp tool: offer to install a missing language server
ci / check (pull_request) Canceled after 0s
ci / check (push) Canceled after 0s
ee0714d271
hermes merged commit 3cc2192af7 into main 2026-09-30 21:10:16 +00:00
hermes deleted branch lsp-install 2026-09-30 21:10:16 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: johannes/hx#64