Skip to content

A modern terminal with a built-in multiplexer: close it and your sessions keep running. Run shells and tons of AI agents across your machines, then pick them up from desktop, browser, TUI and more. Written in Rust with no UI framework: interface drawn straight on the GPU. No Electron, GPUI or webview.

fix(gui): reset SSH password visibility for new forms

RoversX69589372fcf3
diff --git a/wezterm-gui/src/termwindow/ssh_hosts_view.rs b/wezterm-gui/src/termwindow/ssh_hosts_view.rs
index 422e24c5..3c133754 100644
--- a/wezterm-gui/src/termwindow/ssh_hosts_view.rs
+++ b/wezterm-gui/src/termwindow/ssh_hosts_view.rs
@@ -311,6 +311,7 @@ impl SshHostsView {
}
fn open_new_form(&mut self) {
+ self.password_visible = false;
let mut form = HostForm::default();
form.fields[FIELD_PORT].set_text_end("22".to_string());
form.fields[FIELD_MOSH_SERVER]
@@ -2812,7 +2813,12 @@ mod tests {
spec: spec("prod-1", "10.0.0.7"),
}];
+ view.password_visible = true;
let response = view.run_host_command("ssh-original", RemoteHostCommand::Duplicate);
+ assert!(
+ !view.password_visible,
+ "a duplicate must mask its stored password"
+ );
assert!(matches!(response, ContentViewResponse::Redraw));
let form = view