Preserve SSH connection settings when opening new windows

Forward the invoking shell's remote executable and agent through the Linux prefork launcher. Resolve mounted tabs by stable ID for the New Window shortcut and reconnect to nested destinations from the local host.
This commit is contained in:
James Magahern
2026-11-17 16:20:54 -08:00
parent 153838061e
commit cc2acb51e4
9 changed files with 408 additions and 125 deletions
+1 -4
View File
@@ -186,10 +186,7 @@ impl Workspace {
.focused_pane()
.map(|pane| pane.read(cx).data().cwd.clone());
let active_tab = self.snapshot.as_deref().and_then(Snapshot::active_tab);
let remote = client
.remote()
.or_else(|| active_tab?.remote.as_deref())
.map(str::to_owned);
let remote = active_tab.and_then(|tab| tab.remote.clone().map(|host| (tab.id, host)));
let launch = cx
.background_executor()
.spawn(async move { client.open_window(remote, cwd) });