Repository navigation
fix(native-term): match xterm desktop resize discipline, serialize per-terminal IPC, and emit post-resize snapshot - #746
Merged
Conversation
…r-terminal IPC, and emit post-resize snapshot
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Eliminates Native Rust terminal line duplication (2-7x repeated lines) and stale-instance dimension drift by aligning desktop resize discipline with
TerminalView.xterm.tsxand hardening Rust lifecycle:TerminalView.native.tsx): Stop auto-fitting and sending{ type: "resize" }on desktop open/reconnect (ws.onopen), initialloadFonts, andResizeObservermount/callback (matchingTerminalView.xterm.tsx). Desktop resizes now only fire on explicit workspace layout actions / Fit menu / actual font preference changes, eliminating the Control-WS vs. Terminal-WS width race againstinitial_attach_snapshot().TerminalView.native.tsx): StabilizedfitToContainer,loadFonts, andResizeObserverdependencies via refs, moved Taurinative_term_*serialization to a module-level per-terminalIdqueue so unmountingnative_term_closecannot race a remount'snative_term_open, and added dimension self-healing inapplyFrame.TermInstanceon open (native_term.rs):native_term_opennow always creates a freshTermInstance(preventing stale scrollback/dimensions survivingui-stableOTA reloads) andnative_term_feedno longer silently creates a120x36fallback instance.pty_daemon.rs): Emit a cleanstate_formatted()frame afterCMD_RESIZEactually changes dimensions.