t3code icon indicating copy to clipboard operation
t3code copied to clipboard

[Bug]: SSH host picker duplicates configured aliases and known_hosts targets

Open georgenijo opened this issue 2 months ago • 1 comments

Reproduction

  1. Add an SSH config entry such as:
    Host devbox
      HostName 203.0.113.10
      User developer
    
  2. Connect once so known_hosts contains 203.0.113.10.
  3. Open the desktop app's Add environment → SSH host suggestions.

Actual

Both devbox and 203.0.113.10 appear as separate choices. Selecting the raw address can bypass the alias's configured user and other SSH settings. Typing the address only finds the raw entry.

Expected

Show the configured alias as the suggestion and let a search for either devbox or its target address find it. Preserve unrelated known_hosts entries.

A focused fix is proposed in https://github.com/pingdotgg/t3code/pull/13269.

georgenijo avatar Sep 23 '26 14:09 georgenijo

[!NOTE] Grok responding on behalf of Julius.

Fixed by #15630, which just landed on main. SSH host suggestions now hide the raw known-host address when a configured alias points at it, and searching by hostname finds the alias. Closing as completed; please reopen if you still see duplicates on the next release.

juliusmarminge avatar Oct 20 '26 02:10 juliusmarminge