Skip to content

fix(terminal): stop spurious same-size PTY resizes (SIGWINCH storm) across client, hub, and pty-daemon - #741

Merged
chareice merged 1 commit into
mainfrom
fix/spurious-same-size-pty-resize
Nov 27, 2026
Merged

chareice merged 1 commit into
mainfrom
fix/spurious-same-size-pty-resize

Conversation

@chareice

Copy link
Copy Markdown
Collaborator

Eliminates spurious same-size AttachResize / ioctl(TIOCSWINSZ) calls that were blasting SIGWINCH at Ink/Claude/agy TUIs on every tab switch, focus, and reconnect (causing duplicated lines and torn status bars during streaming):

  • Desktop native client (TerminalView.native.tsx): Skip sending { type: "resize" } when the remote PTY (ptyDimsRef) is already at the exact target (cols, rows).
  • Hub (machine_manager.rs + ws.rs): Make apply_optimistic_resize return bool (false when dimensions are unchanged) and skip SQLite write, TerminalResized broadcast, and AttachResize fan-out on no-op resizes.
  • PTY daemon (pty_daemon.rs): Add an early-return no-op guard in LiveSession::resize before calling master.resize() so unchanged dimensions never trigger SIGWINCH.

@chareice
chareice merged commit 80078ba into main Nov 27, 2026
12 checks passed
@chareice
chareice deleted the fix/spurious-same-size-pty-resize branch November 27, 2026 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant