Tags: dcouple/Pane
Tags
fix: guard terminal renderer grid and replay against mid-layout conta… …iner sizes (#233) * fix: guard terminal renderer grid and replay against mid-layout container sizes the 7-8 col stair-step junk from issue #230 is manufactured in the renderer, not recorded from the pty: activation effects accepted any stable container width as sane, fit() shrank the xterm grid to 7 cols, and refresh-on-activate replayed raw history into that tiny grid. - resizePtyToFit: width guard before fit(), integer floors before ipc - handleRefreshTerminal: entry guard; fit -> reset -> replay -> refresh - activation effects bail instead of force-fitting; overlay cleared - resize observer path delegates to resizePtyToFit - main resizeTerminal: Number.isInteger validation (NaN passed the cols<20 floor and the resulting node-pty throw evicted live terminals), same-size dedupe against seq-confirmed shim dims, and no eviction on resize failure * fix: mask font-swap flash on terminal tab switch Geist Mono was loaded via Google Fonts with display=swap, so switching to a terminal tab showed one frame of fallback monospace before the real font rasterized. Three changes: - display=swap -> display=block on the Geist Mono import - preload the local Symbols Nerd Font woff2 in index.html - performance-mode activation effect shows the overlay, awaits document.fonts.ready, then fits/repaints and hides the overlay after one frame (32ms), same pattern as battery-saver mode
PreviousNext