Repository navigation
Contain xterm addon failures to terminal panes - #7004
brennanb2025 wants to merge 2 commits into
Conversation
Co-authored-by: Orca <[email protected]>
|
Ready to review this PR? Stage has broken it down into 3 individual chapters for you:
Chapters generated by Stage for commit baced3b on Jul 1, 2026 10:23pm UTC. |
|
Hard-review follow-up: two independent reviewers found WebGL fallback lifecycle gaps. Pushed baced3b to dispose a constructed WebGL addon when loadAddon throws, and to make auto mode fall back to DOM for later panes after WebGL context loss. Validation: focused Vitest terminal-search-safe-find/pane-lifecycle/terminal-link-provider-guard passed (36 tests), reliability gate manifest check passed, touched-file oxlint passed, and git diff --check passed. |
|
Moving this PR to draft because it has been untouched for more than 80 days (latest recorded PR activity or commit timestamp: 2026-07-01T23:22:59Z; checked on 2026-10-27). This keeps the review queue focused on active work while preserving the proposal. Please mark it ready for review when work resumes. |
|
Fixed on main by #6852. |
Summary
ELI5
Terminal panes have extra pieces bolted on for things like search, links, and graphics acceleration. If one of those pieces breaks, the whole terminal should not disappear or stop accepting input. This PR proves those add-ons can fail in a contained way while the pane still stays alive enough to focus and write to.
Why We Need This
This covers the terminal-addon failure class from the recent reliability work. Terminal panes depend on optional xterm add-ons for search, link handling, and WebGL rendering. Those add-ons are useful, but they should be allowed to degrade without crashing the terminal pane, blanking the surface, or breaking focus/input.
Product Code vs Gate Coverage
This PR includes targeted product hardening plus regression coverage. The product change contains known xterm search decoration failures and WebGL attach/context-loss failures so the terminal can fall back instead of letting an add-on failure take down the pane. The tests prove that containment behavior at the renderer-unit layer; live PTY echo coverage remains a documented follow-up gap.
Merge Order
Requires #7001 first because this PR depends on the reliability gate manifest and validator added there.
After #7001 lands, this PR can merge independently of #7005, #7006, #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
experimentaluntil soak history and saved red/green evidence justify promotion.Validation
Residual Risks
Performance
Made with Orca 🐋
Post-PR Stabilization