mirror of
https://github.com/l0ng-ai/tty7.git
synced 2026-09-22 08:02:24 +00:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user