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
Spawn async task for pick_folder_async
RoversXd31b8860a5e4
diff --git a/window/src/os/windows/window.rs b/window/src/os/windows/window.rsindex a037e9e1..93a97ecd 100644--- a/window/src/os/windows/window.rs+++ b/window/src/os/windows/window.rs@@ -985,16 +985,20 @@ impl WindowOps for Window {}fn pick_folder_async(&self, callback: Box<dyn FnOnce(Option<PathBuf>) + 'static>) {- let path = unsafe {- match pick_folder_dialog(self.0 .0) {- Ok(path) => path,- Err(err) => {- log::warn!("failed to show folder picker: {err:#}");- None+ let hwnd = self.0 .0;+ promise::spawn::spawn(async move {+ let path = unsafe {+ match pick_folder_dialog(hwnd) {+ Ok(path) => path,+ Err(err) => {+ log::warn!("failed to show folder picker: {err:#}");+ None+ }}- }- };- callback(path);+ };+ callback(path);+ })+ .detach();}fn invalidate(&self) {