Skip to content

remote: Use SSH nicknames in display names#53103

Merged
reflectronic merged 1 commit intozed-industries:mainfrom
SAKETH11111:ssh-nickname-display
Apr 3, 2026
Merged

remote: Use SSH nicknames in display names#53103
reflectronic merged 1 commit intozed-industries:mainfrom
SAKETH11111:ssh-nickname-display

Conversation

@SAKETH11111
Copy link
Copy Markdown
Contributor

Closes #52943

Summary

  • Prefer SSH nicknames over raw hosts in remote connection display names
  • Add regression tests for nickname and host fallback behavior

Why

The nickname field is documented as the user-facing label for SSH connections, but RemoteConnectionOptions::display_name() always returned the raw host. That meant recent-projects UI surfaces kept ignoring nicknames even when they were configured.

Validation

  • cargo test -p remote ssh_display_name
  • cargo test -p remote

Release Notes:

  • Fixed SSH recent-project labels to show configured nicknames instead of raw hosts when available.

@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label Apr 3, 2026
@zed-community-bot zed-community-bot Bot added the first contribution the author's first pull request to Zed. NOTE: the label application is automated via github actions label Apr 3, 2026
@SAKETH11111 SAKETH11111 marked this pull request as ready for review April 3, 2026 22:06
@zed-codeowner-coordinator zed-codeowner-coordinator Bot requested review from a team, kubkon and reflectronic and removed request for a team April 3, 2026 22:06
@reflectronic
Copy link
Copy Markdown
Member

Thanks

@reflectronic reflectronic merged commit eeb87cb into zed-industries:main Apr 3, 2026
42 checks passed
rtfeldman pushed a commit that referenced this pull request Apr 4, 2026
Closes #52943

## Summary
- Prefer SSH nicknames over raw hosts in remote connection display names
- Add regression tests for nickname and host fallback behavior

## Why
The `nickname` field is documented as the user-facing label for SSH
connections, but `RemoteConnectionOptions::display_name()` always
returned the raw host. That meant recent-projects UI surfaces kept
ignoring nicknames even when they were configured.

## Validation
- `cargo test -p remote ssh_display_name`
- `cargo test -p remote`

Release Notes:

- Fixed SSH recent-project labels to show configured nicknames instead
of raw hosts when available.
@SAKETH11111 SAKETH11111 deleted the ssh-nickname-display branch April 9, 2026 14:23
piper-of-dawn pushed a commit to piper-of-dawn/zed that referenced this pull request Apr 25, 2026
Closes zed-industries#52943

## Summary
- Prefer SSH nicknames over raw hosts in remote connection display names
- Add regression tests for nickname and host fallback behavior

## Why
The `nickname` field is documented as the user-facing label for SSH
connections, but `RemoteConnectionOptions::display_name()` always
returned the raw host. That meant recent-projects UI surfaces kept
ignoring nicknames even when they were configured.

## Validation
- `cargo test -p remote ssh_display_name`
- `cargo test -p remote`

Release Notes:

- Fixed SSH recent-project labels to show configured nicknames instead
of raw hosts when available.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement first contribution the author's first pull request to Zed. NOTE: the label application is automated via github actions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SSH nickname setting is not used in Recent Projects dropdown display

3 participants