diff --git a/Cargo.lock b/Cargo.lock index 57e69cf..a5319d7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -270,7 +270,7 @@ checksum = "a1d728cc89cf3aee9ff92b05e62b19ee65a02b5702cff7d5a377e32c6ae29d8d" [[package]] name = "cm-dashboard" -version = "0.1.63" +version = "0.1.64" dependencies = [ "anyhow", "chrono", @@ -292,7 +292,7 @@ dependencies = [ [[package]] name = "cm-dashboard-agent" -version = "0.1.63" +version = "0.1.64" dependencies = [ "anyhow", "async-trait", @@ -315,7 +315,7 @@ dependencies = [ [[package]] name = "cm-dashboard-shared" -version = "0.1.63" +version = "0.1.64" dependencies = [ "chrono", "serde", diff --git a/agent/Cargo.toml b/agent/Cargo.toml index dd7538f..6824a4e 100644 --- a/agent/Cargo.toml +++ b/agent/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cm-dashboard-agent" -version = "0.1.64" +version = "0.1.65" edition = "2021" [dependencies] diff --git a/dashboard/Cargo.toml b/dashboard/Cargo.toml index de8f8ea..caad757 100644 --- a/dashboard/Cargo.toml +++ b/dashboard/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cm-dashboard" -version = "0.1.64" +version = "0.1.65" edition = "2021" [dependencies] diff --git a/dashboard/src/ui/mod.rs b/dashboard/src/ui/mod.rs index 5397ef5..4ee16f5 100644 --- a/dashboard/src/ui/mod.rs +++ b/dashboard/src/ui/mod.rs @@ -365,6 +365,25 @@ impl TuiApp { } } } + KeyCode::Char('t') => { + // Open SSH terminal session in tmux window + if let Some(hostname) = self.current_host.clone() { + let ssh_command = format!( + "ssh -tt {}@{}", + self.config.ssh.rebuild_user, + hostname + ); + + std::process::Command::new("tmux") + .arg("split-window") + .arg("-v") + .arg("-p") + .arg("30") // Use 30% like other commands + .arg(&ssh_command) + .spawn() + .ok(); // Ignore errors, tmux will handle them + } + } KeyCode::Tab => { // Tab cycles to next host self.navigate_host(1); diff --git a/shared/Cargo.toml b/shared/Cargo.toml index d624c0f..4c8afd8 100644 --- a/shared/Cargo.toml +++ b/shared/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cm-dashboard-shared" -version = "0.1.64" +version = "0.1.65" edition = "2021" [dependencies]