Skip to content

fix: Servers says why a machine cannot be listed, and offers a terminal only when ssh wanted a prompt - #171

Merged
nyxene merged 1 commit into
masterfrom
fix/remote-texts
Oct 28, 2026
Merged

nyxene merged 1 commit into
masterfrom
fix/remote-texts

Conversation

@nyxene

@nyxene nyxene commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

Found walking group A of #6 (nerd --remote and Servers..., no ssh):

  • A machine whose remotes entry nerd will not use (a host starting with -, a bad name) offered "list servers", and its details promised a listing over ssh. It now offers nothing, and its details say why and where to fix it.
  • The "Can't reach" window ("ssh could not list the servers without asking", with a terminal or a copied nerd --remote) came on every ssh failure, such as a host that does not resolve, where a terminal fails the same way. It now comes only when ssh refused a password or host key prompt under BatchMode (Permission denied (…) or Host key verification failed). Any other failure shows in the machine's section, and the machine's details hold the whole message, which the row cuts to the window's width.
  • The flag keeps its name, ssh_failed, as a field of the client's message to the server; only the client decides it.

Tests: a refused prompt in the fake ssh, the details of an unusable machine and of a failed one; each fails on the old code.

Part of #6

🤖 Generated with Claude Code

…al only when ssh wanted a prompt

- A machine whose entry nerd will not use (a host starting with '-', a bad name) offers no List servers, and its details say why and where to fix it, instead of promising a listing over ssh.
- The Can't reach window, with its terminal or copied command, comes only when ssh refused a password or host key prompt under BatchMode. Any other failure, such as a host that does not resolve, shows in the machine's section, and its details hold the whole message.

Part of #6

Co-Authored-By: Claude <noreply@anthropic.com>
@nyxene
nyxene merged commit 5519b1e into master Oct 28, 2026
1 check passed
@nyxene
nyxene deleted the fix/remote-texts branch October 28, 2026 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant