From 3029dfb3283d44e950dcbd9ca0ae1886c2e3f49f Mon Sep 17 00:00:00 2001 From: l0ng-ai <24760907+l0ng-ai@users.noreply.github.com> Date: Tue, 14 Jul 2026 08:41:37 +0800 Subject: [PATCH] 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. --- src/ui/forwards.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/ui/forwards.rs b/src/ui/forwards.rs index d0d9870d..0b3265ab 100644 --- a/src/ui/forwards.rs +++ b/src/ui/forwards.rs @@ -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()