fix(ssh): hide the in-pane SSH status chip once connected

The tab status dot already carries connection state and the top-right
tunnel/SFTP icons signal the pane is SSH, so a connected-state chip just
floats over the shell output. Keep the strip only while connecting and for
the post-drop reconnect notice.
This commit is contained in:
l0ng-ai
2026-07-14 08:41:37 +08:00
parent 12c01e6ac2
commit 3029dfb328
+8
View File
@@ -30,6 +30,14 @@ impl Tty7App {
let view = leaf.read(cx);
let phase = view.ssh_phase()?;
let disconnected = view.ssh_disconnected();
// Once connected, the tab status dot already carries the connection state and
// the top-right tunnel/SFTP icons signal "this is an SSH pane" — an in-pane
// chip here would just float over the shell output. Only surface the strip
// while still connecting (blank pane, no overlap) or after a drop (the
// actionable reconnect notice).
if matches!(phase, SshPhase::Connected) && !disconnected {
return None;
}
let host = view
.terminal
.ssh_endpoint()