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
feat(settings): mark session import sources as Beta
RoversXf7c89df0abf8
diff --git a/wezterm-gui/src/settings_window.rs b/wezterm-gui/src/settings_window.rsindex d4f80513..f132e539 100644--- a/wezterm-gui/src/settings_window.rs+++ b/wezterm-gui/src/settings_window.rs@@ -15680,6 +15680,11 @@ impl SettingsWindow {/// A small "Beta" capsule starting at `x` after a title drawn at/// `title_y`, centred on the title's capitals. Left out when it would/// run past `right_edge`.+ fn beta_badge_width(&self) -> f32 {+ let label = crate::i18n::tr("settings-badge-beta");+ (self.measure_text_width(&self.logo_caption_font, &label) + self.ui_px(12.0) * 2.0).round()+ }+fn paint_beta_badge(&self,layers: &mut TripleLayerQuadAllocator<'_>,@@ -15690,7 +15695,7 @@ impl SettingsWindow {let font = Rc::clone(&self.logo_caption_font);let label = crate::i18n::tr("settings-badge-beta");let pad = self.ui_px(12.0);- let width = (self.measure_text_width(&font, &label) + pad * 2.0).round();+ let width = self.beta_badge_width();if x + width > right_edge {return Ok(());}diff --git a/wezterm-gui/src/settings_window/import.rs b/wezterm-gui/src/settings_window/import.rsindex f87c7a73..814313cf 100644--- a/wezterm-gui/src/settings_window/import.rs+++ b/wezterm-gui/src/settings_window/import.rs@@ -43,6 +43,16 @@ impl ImportSource {Self::WezTerm}+ /// Session imports take over another program's live terminals, which+ /// is new enough to carry a Beta badge.+ fn is_beta(self) -> bool {+ match self {+ Self::WezTerm => false,+ #[cfg(unix)]+ Self::Session(_) => true,+ }+ }+pub(super) fn label(self) -> &'static str {match self {Self::WezTerm => "WezTerm",@@ -801,16 +811,32 @@ impl SettingsWindow {)?;}let title_y = top + pad + icon + self.ui_px(24.0);+ let title_width = self.measure_text_width(&heading, source.label());+ // The title and its badge are centered as one line.+ let badge_gap = self.ui_px(14.0);+ let badge_width = if source.is_beta() {+ badge_gap + self.beta_badge_width()+ } else {+ 0.0+ };+ let title_x = left + ((card_width - title_width - badge_width) / 2.0).max(pad);self.draw_text(layers,&heading,- left + ((card_width - self.measure_text_width(&heading, source.label())) / 2.0)- .max(pad),+ title_x,title_y,source.label(),palette.title,text_width,)?;+ if source.is_beta() {+ self.paint_beta_badge(+ layers,+ title_x + title_width.min(text_width) + badge_gap,+ title_y,+ left + card_width - pad,+ )?;+ }for (row, line) in descriptions[index].iter().enumerate() {self.draw_text(layers,