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 RefCell reentrancy panic in macOS context menu; add missing TryFrom import
RoversXb0b0f9ab159c
diff --git a/window/src/os/macos/window.rs b/window/src/os/macos/window.rsindex 890c3305..c42fb228 100644--- a/window/src/os/macos/window.rs+++ b/window/src/os/macos/window.rs@@ -1572,17 +1572,28 @@ impl WindowInner {return;}- unsafe {- let frame = NSView::frame(*self.view as *mut _);- let backing_frame = NSView::convertRectToBacking(*self.view as *mut _, frame);- let scale = if frame.size.width > 0.0 {- backing_frame.size.width / frame.size.width- } else {- 1.0- };+ // popUpMenuPositioningItem runs a nested event loop that continues+ // to service the spawn queue. We are called via with_window_inner,+ // which holds the window RefCell borrow for the duration of the+ // callback; popping the menu up while that borrow is held causes any+ // other with_window_inner callback dispatched during menu tracking+ // to panic with "RefCell already borrowed". Defer the blocking+ // pop-up until after our caller releases the borrow.+ let view = self.view.clone();+ promise::spawn::spawn(async move {+ unsafe {+ let frame = NSView::frame(*view as *mut _);+ let backing_frame = NSView::convertRectToBacking(*view as *mut _, frame);+ let scale = if frame.size.width > 0.0 {+ backing_frame.size.width / frame.size.width+ } else {+ 1.0+ };- menu.pop_up_at(*self.view, coords.x as f64 / scale, coords.y as f64 / scale);- }+ menu.pop_up_at(*view, coords.x as f64 / scale, coords.y as f64 / scale);+ }+ })+ .detach();}fn invalidate(&mut self) {diff --git a/window/src/os/xdg_desktop_portal.rs b/window/src/os/xdg_desktop_portal.rsindex 50ee02ac..f77d3f1b 100644--- a/window/src/os/xdg_desktop_portal.rs+++ b/window/src/os/xdg_desktop_portal.rs@@ -7,6 +7,7 @@ use anyhow::Context;use futures_lite::future::FutureExt;use futures_util::stream::StreamExt;use std::collections::HashMap;+use std::convert::TryFrom;use std::path::PathBuf;use std::sync::Mutex;use std::time::Instant;