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(gui): finish the OpenGL frame when painting it fails
RoversXdd695d415146
diff --git a/wezterm-gui/src/termwindow/mod.rs b/wezterm-gui/src/termwindow/mod.rsindex 25437407..9223d117 100644--- a/wezterm-gui/src/termwindow/mod.rs+++ b/wezterm-gui/src/termwindow/mod.rs@@ -5246,18 +5246,21 @@ impl TermWindow {self.dimensions.pixel_height as u32,),);- let outcome = match self.paint_impl(&mut RenderFrame::Glium(&mut frame)) {- Ok(outcome) => outcome,- Err(err) => {- log::error!("failed to draw OpenGL frame: {err:#}");+ let painted = self.paint_impl(&mut RenderFrame::Glium(&mut frame));+ let outcome = match painted {+ Ok(outcome) if outcome.draw_submitted => outcome,+ painted => {+ if let Err(err) = painted {+ log::error!("failed to draw OpenGL frame: {err:#}");+ }+ // glium panics when an unfinished Frame is dropped.+ if let Err(err) = window.finish_frame(frame) {+ log::error!("failed to present OpenGL frame: {err:#}");+ }self.discard_unpresented_pane_output();return false;}};- if !outcome.draw_submitted {- self.discard_unpresented_pane_output();- return false;- }let presented = window.finish_frame(frame).is_ok();if frame_can_acknowledge_output(outcome, presented) {self.acknowledge_presented_pane_output();