diff --git a/dashboard/src/ui/mod.rs b/dashboard/src/ui/mod.rs index 460401b..2bc1bdd 100644 --- a/dashboard/src/ui/mod.rs +++ b/dashboard/src/ui/mod.rs @@ -345,15 +345,15 @@ impl TuiApp { // Simple tmux popup with SSH rebuild using configured user and alias if let Some(hostname) = self.current_host.clone() { // Launch tmux popup with SSH using config values + let ssh_command = format!( + "ssh -tt {}@{} 'bash -ic {}'", + self.config.ssh.rebuild_user, + hostname, + self.config.ssh.rebuild_alias + ); std::process::Command::new("tmux") - .arg("popup") - .arg("-d") - .arg("#{pane_current_path}") - .arg("-xC") - .arg("-yC") - .arg("ssh") - .arg(&format!("{}@{}", self.config.ssh.rebuild_user, hostname)) - .arg(&self.config.ssh.rebuild_alias) + .arg("display-popup") + .arg(&ssh_command) .spawn() .ok(); // Ignore errors, tmux will handle them }