Close local tabs and detach or reattach live SSH sessions

Remember the remote daemon and session identity for hostless reattachment. Keep other tabs usable after a discarded snapshot and preserve the last live detach target when a remote shell exits. Reject remote flags for local daemon control commands.
This commit is contained in:
James Magahern
2026-11-17 16:15:28 -08:00
parent f2390ca9b4
commit 153838061e
12 changed files with 874 additions and 162 deletions
+8 -2
View File
@@ -257,8 +257,14 @@ pub fn run_zygote(socket: &Path) -> Result<()> {
}
drop(stream);
drop(listener);
let result = set_child_reaping(false)
.and_then(|()| crate::run_gui(server_socket, remote, session));
let result = set_child_reaping(false).and_then(|()| {
crate::run_gui(
server_socket,
remote,
session,
protocol::SshOptions::from_env(),
)
});
let code = if let Err(error) = result {
log::error!("GUI startup failed: {error:#}");
1