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
fix(update): check for updates on each launch
RoversX4599a3fb9333
diff --git a/config/src/config.rs b/config/src/config.rsindex 30fcf40e..396a7c91 100644--- a/config/src/config.rs+++ b/config/src/config.rs@@ -2195,7 +2195,7 @@ fn default_tab_max_width() -> usize {}fn default_update_interval() -> u64 {- 86400+ 12 * 60 * 60}fn default_prefer_egl() -> bool {diff --git a/docs/config/lua/config/check_for_updates.md b/docs/config/lua/config/check_for_updates.mdindex ceea2479..0c0743b8 100644--- a/docs/config/lua/config/check_for_updates.md+++ b/docs/config/lua/config/check_for_updates.md@@ -8,7 +8,8 @@ Wezterm checks regularly if there is a new stable version availableon github, and shows a simple UI to let you know about the update(See [show_update_window](show_update_window.md) to control this UI).-By default it is checked once every 24 hours.+By default it is checked a few seconds after each start, and then+every 12 hours while it runs.NOTE that it doesn't automatically download the release.No data are collected for the wezterm project as part of this.@@ -18,5 +19,5 @@ Set `check_for_updates` to `false` to disable this completely or set```luaconfig.check_for_updates = true-config.check_for_updates_interval_seconds = 86400+config.check_for_updates_interval_seconds = 43200```diff --git a/wezterm-gui/src/update.rs b/wezterm-gui/src/update.rsindex d92e45d4..4ad791ec 100644--- a/wezterm-gui/src/update.rs+++ b/wezterm-gui/src/update.rs@@ -173,27 +173,13 @@ fn record_latest_release(latest: &Release) -> anyhow::Result<()> {/// Returns true if the provided socket path is dead.fn update_checker() {- // Compute how long we should sleep for;- // if we've never checked, give it a few seconds after the first- // launch, otherwise compute the interval based on the time of- // the last check.- let update_interval = Duration::from_secs(configuration().check_for_updates_interval_seconds);+ // Every launch checks, a few seconds in so the check does not compete+ // with starting up; after that, once every interval while it runs.let initial_interval = Duration::from_secs(10);let force_ui = always_show_update_ui();- let update_file_name = config::DATA_DIR.join("check_update");- let delay = update_file_name- .metadata()- .and_then(|metadata| metadata.modified())- .map_err(|_| ())- .and_then(|systime| {- let elapsed = systime.elapsed().unwrap_or(Duration::new(0, 0));- update_interval.checked_sub(elapsed).ok_or(())- })- .unwrap_or(initial_interval);-- std::thread::sleep(if force_ui { initial_interval } else { delay });+ std::thread::sleep(initial_interval);let my_sock = config::RUNTIME_DIR.join(format!("gui-sock-{}", unsafe { libc::getpid() }));