From f8a061d49661234e62d69cb43b350a659d3fde0f Mon Sep 17 00:00:00 2001 From: Christoffer Martinsson Date: Mon, 27 Oct 2025 16:08:38 +0100 Subject: [PATCH] Fix tmux popup SSH command syntax for interactive shell - Use tmux display-popup instead of popup with incorrect arguments - Add -tt flag for proper pseudo-terminal allocation - Use bash -ic to load shell aliases in SSH session - Enable rebuild_git alias to work through SSH popup --- dashboard/src/ui/mod.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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 }