Skip to content

intake(lote-A): import upstream PR #1836#3

Open
nsalvacao wants to merge 2 commits intobaseline/develop-sync-2026-02-17from
intake/lote-A-pr-1836
Open

intake(lote-A): import upstream PR #1836#3
nsalvacao wants to merge 2 commits intobaseline/develop-sync-2026-02-17from
intake/lote-A-pr-1836

Conversation

@nsalvacao
Copy link
Owner

@nsalvacao nsalvacao commented Feb 17, 2026

Upstream intake PR for isolated review.

Checklist:

  • Automated checks green
  • Bot review comments triaged
  • Manual review complete
  • Safe for baseline merge

AndyMik90 and others added 2 commits February 14, 2026 21:03
Force SIGWINCH on same-dimension resize and skip stale buffer replay
for Claude-mode terminals during project switch remount.

Two compounding issues caused blank terminals when switching projects:

1. On macOS/Linux, ioctl(TIOCSWINSZ) only sends SIGWINCH when dimensions
   actually change. After project switch, PTY persists with old dimensions
   and the terminal remounts at the same size, so TUI apps never get
   SIGWINCH and never redraw. Fix: resize to (cols-1, rows) first, then
   to (cols, rows) to force the signal.

2. Buffer replay concatenated serialized xterm state with raw PTY output
   accumulated during the unmount period, producing garbled display. Fix:
   skip buffer replay for Claude-mode terminals on project switch remount
   (the forced SIGWINCH makes Claude Code redraw its full TUI). Initial
   restore still replays the buffer as a loading preview.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@gemini-code-assist
Copy link

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

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.

2 participants