Reproduction steps
- Build Zed from latest
main (b562439e93).
- Open Remote Projects and choose Connect New Server.
- Paste a valid SSH command whose executable and arguments are shell-quoted, such as the command emitted by
crabbox ssh --id <lease>:
'ssh' '-i' '/Users/test/Library/Application Support/crabbox/testboxes/lease/id_ed25519' '-p' '64042' '-o' 'ControlMaster=auto' 'crabbox@127.0.0.1'
Current vs. expected behavior
Current: Zed rejects the command because SshConnectionOptions::parse_command_line removes only a literal, unquoted ssh prefix before tokenizing. The first parsed token becomes the hostname, so the actual destination is rejected as an extra argument.
Expected: after POSIX tokenization, Zed should treat a leading ssh token as the optional executable. This should preserve support for bare destinations and for a host literally named ssh.
The generated command itself was verified against a live Crabbox local-container lease; it connected and read the synced checkout successfully.
Zed version and system specs
Zed: latest main b562439e93
OS: macOS 26.5.1
Architecture: arm64
Reproduction steps
main(b562439e93).crabbox ssh --id <lease>:Current vs. expected behavior
Current: Zed rejects the command because
SshConnectionOptions::parse_command_lineremoves only a literal, unquotedsshprefix before tokenizing. The first parsed token becomes the hostname, so the actual destination is rejected as an extra argument.Expected: after POSIX tokenization, Zed should treat a leading
sshtoken as the optional executable. This should preserve support for bare destinations and for a host literally namedssh.The generated command itself was verified against a live Crabbox local-container lease; it connected and read the synced checkout successfully.
Zed version and system specs
Zed: latest main
b562439e93OS: macOS 26.5.1
Architecture: arm64