Repository navigation
Prove visible terminal size convergence - #7006
brennanb2025 wants to merge 1 commit into
Conversation
Co-authored-by: Orca <[email protected]>
|
Ready to review this PR? Stage has broken it down into 2 individual chapters for you:
Chapters generated by Stage for commit 9344a04 on Jul 1, 2026 8:23am UTC. |
|
Closing because the proposed geometry gate and regression objectives are now covered by the current executable Current main lists the reconcile, reassertion, split-right, wake, applied-size and runtime suites, with assertion references for zero-size recovery, late hidden layout, dropped/applied-size divergence, bounded work and ordered mirror geometry. The existing reconcile/split-right tests cover this PR's three scenarios. The current gate also preserves the live-shell/Windows limitations instead of replacing its provider-contract scope with a renderer-unit-only description. I reviewed the complete 266-line patch at |
Summary
ELI5
A terminal needs to agree on its size in several places: what the UI thinks, what the terminal renderer thinks, what the PTY thinks, and what the shell sees. When those disagree, users get blank panes, wrapped text, or broken splits. This PR adds a deterministic test for the size-recovery logic so visible terminals keep trying in bounded steps until the important sizes line up.
Why We Need This
This covers the visible terminal-size convergence class. Blank panes, broken wrapping, and split-layout failures can happen when xterm, fit/proposed size, provider-applied PTY size, and the visible layout disagree, especially after 0x0 measurements or hidden-to-visible transitions.
Product Code vs Gate Coverage
This PR is gate coverage, not terminal sizing restructuring. It adds deterministic renderer-unit tests for the existing post-spawn PTY size reconciliation layer and records the remaining live-shell/provider-contract gaps in the manifest. The gate proves convergence attempts are bounded and do not rely on blind sleeps.
Merge Order
Requires #7001 first because this PR updates the reliability gate manifest introduced there.
After #7001 lands, this PR can merge independently of #7004, #7005, #7007, and #7008. No other child PR must merge before this one. Later child PRs may need a normal manifest rebase if this one lands first.
Why These Tests Stay Useful
stty/echo-wrap test remains a follow-up provider-contract or Electron gate.experimentaluntil soak history, runtime evidence, and provider/Electron follow-up coverage justify promotion.Validation
Residual risks
Performance note
Made with Orca 🐋
Post-PR Stabilization