force_clear wipes the entire multiplexer display and is only propagated from the active paneforce_clear wipes the entire multiplexer display and is only propagated from the active paneFile: src/server/render.zig:389–396, src/server/render.zig:166–167
Severity: MEDIUM
Status: ✅ FIXED — renderAll now ORs force_clear across every pane in bounds (not only active_pane.screen) and consumes each pane’s flag. Added unit test renderAll honours force_clear from a non-active pane — bug #196.
if (screen.force_clear) {
screen.force_clear = false;
try self.writeBytes("\x1b[2J"); // Erase In Display — clears ALL panes
...
}
\x1b[2J erases the whole outer terminal. In a multiplexer that means every pane’s content is wiped and must be fully repainted — expensive, and a guaranteed full-screen flash on every eraseDisplay/resetHard/clearScreen, even when the sixel in question was in a tiny region. Furthermore, force_clear is copied into the merged screen only from active_pane.screen (render.zig:166), so a non-active pane that triggers force_clear (e.g. via its own eraseDisplay) loses the flag entirely and its sixel is never force-cleared.