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.
Rust agentagent-orchestrationaiai-agentsclaude-codecodexcoding-agentlinuxmacosmultiplayermultiplexerrustterminalterminal-emulatorterminal-multiplexertmuxtuiweztermwindows
Make the four tests that assumed a unix host pass on Windows
RoversX0f670c7b7ea7
diff --git a/wezterm-client/src/local_update.rs b/wezterm-client/src/local_update.rsindex 9045db18..86ab865b 100644--- a/wezterm-client/src/local_update.rs+++ b/wezterm-client/src/local_update.rs@@ -144,7 +144,13 @@ mod tests {fn the_default_serve_command_is_the_bundled_server() {let argv = takeover_argv(&UnixDomain::default()).unwrap();let exe = std::path::Path::new(&argv[0]);- assert!(exe.ends_with("thinkterm-mux-server"), "{exe:?}");+ // The stem, so the `.exe` a Windows build carries does not count.+ assert_eq!(+ exe.file_stem().and_then(|stem| stem.to_str()),+ Some("thinkterm-mux-server"),+ "{:?}",+ exe+ );assert_eq!(argv[1], "--daemonize");assert_eq!(argv[2], "--takeover");}diff --git a/wezterm-gui/src/shell_catalog.rs b/wezterm-gui/src/shell_catalog.rsindex 039a458b..1abbb899 100644--- a/wezterm-gui/src/shell_catalog.rs+++ b/wezterm-gui/src/shell_catalog.rs@@ -129,8 +129,11 @@ pub(crate) fn discover_with(for (label, program) in UNIX_SHELLS {for prefix in UNIX_PREFIXES {- let path = PathBuf::from(prefix).join(program);- let path = path.to_string_lossy().into_owned();+ // Joined as text, not as a `PathBuf`: these are POSIX prefixes,+ // and on Windows `PathBuf::join` would spell `/bin/bash` as+ // `/bin\bash` -- a path nothing answers to, and one the tests+ // (which exercise the unix table from any host) never see.+ let path = format!("{prefix}/{program}");if exists(&path) {push(DiscoveredShell::new(label, &path), &mut seen, &mut found);break;diff --git a/wezterm-gui/src/ssh_hosts.rs b/wezterm-gui/src/ssh_hosts.rsindex 6722c2ea..d5f2dac7 100644--- a/wezterm-gui/src/ssh_hosts.rs+++ b/wezterm-gui/src/ssh_hosts.rs@@ -765,11 +765,14 @@ Host prod *.internalassert_eq!(spec.host, "prod");assert_eq!(spec.username.as_deref(), Some("deploy"));assert_eq!(spec.port, Some(2202));- assert!(spec- .identity_file- .as_deref()- .unwrap()- .ends_with("/.ssh/prod"));+ // `~` expands to this machine's home, which on Windows is spelled+ // with backslashes; compare components rather than text.+ let identity = std::path::Path::new(spec.identity_file.as_deref().unwrap());+ assert!(+ identity.ends_with(std::path::Path::new(".ssh").join("prod")),+ "{}",+ identity.display()+ );}/// The two names one host can attach a mux domain under. A Space is taggeddiff --git a/window/src/os/uri_list.rs b/window/src/os/uri_list.rsindex dfd6b162..858389ce 100644--- a/window/src/os/uri_list.rs+++ b/window/src/os/uri_list.rs@@ -62,6 +62,9 @@ pub fn clipboard_contents_from_uri_list(mod tests {use super::*;+ // `file:///home/x` is not a local path on Windows, where `to_file_path`+ // wants a drive; the lists this decodes come from X11 and Wayland.+ #[cfg(unix)]#[test]fn a_uri_list_decodes_paths_and_skips_noise() {let list = b"# comment line\r\nfile:///home/x/a%20b.txt\r\n\r\nhttps://example.com/nope\r\nfile:///tmp/plain.png\r\n";