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
wezterm-client: attach the local session host without a progress tab
RoversXb54a34e72978
diff --git a/wezterm-client/src/domain.rs b/wezterm-client/src/domain.rsindex 3f5341e3..4d0a4a81 100644--- a/wezterm-client/src/domain.rs+++ b/wezterm-client/src/domain.rs@@ -5305,10 +5305,19 @@ impl Domain for ClientDomain {}async fn attach(&self, window_id: Option<WindowId>) -> anyhow::Result<()> {- let ui = ConnectionUI::with_params(ConnectionUIParams {- window_id,- ..Default::default()- });+ // The local session host answers over a unix socket with nothing to+ // ask; a progress tab in the window being spawned into reads as an+ // error, and closing it leaves that window with no tab. Attach it+ // silently; remote domains keep the tab for prompts and failures.+ let ui = if self.is_local_session_host() {+ log::debug!("attaching the local session host without a progress tab");+ ConnectionUI::new_headless()+ } else {+ ConnectionUI::with_params(ConnectionUIParams {+ window_id,+ ..Default::default()+ })+ };let outcome = self.attach_with_ui_retry(window_id,diff --git a/wezterm-gui/src/main.rs b/wezterm-gui/src/main.rsindex d22b7ed2..7160025d 100644--- a/wezterm-gui/src/main.rs+++ b/wezterm-gui/src/main.rs@@ -329,10 +329,20 @@ async fn attach_domain_in_window_with_retry(domain: Arc<dyn Domain>,window_id: mux::window::WindowId,) -> anyhow::Result<AttachRetryOutcome> {- let ui = mux::connui::ConnectionUI::with_params(mux::connui::ConnectionUIParams {- window_id: Some(window_id),- ..Default::default()- });+ // The local session host never shows connection progress in a window+ // (see ClientDomain::attach); here it is usually attached already, and+ // even then the tab would flash before the attach saw that.+ let is_host = domain+ .downcast_ref::<ClientDomain>()+ .is_some_and(|client| client.is_local_session_host());+ let ui = if is_host {+ mux::connui::ConnectionUI::new_headless()+ } else {+ mux::connui::ConnectionUI::with_params(mux::connui::ConnectionUIParams {+ window_id: Some(window_id),+ ..Default::default()+ })+ };attach_domain_with_retry(domain,Some(window_id),