Repository navigation
Revert WebGL context retention from #7085 (keep ConPTY warm-up and dispose hardening) - #7169
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (8)
📝 WalkthroughWalkthroughThis PR reverts previously introduced WebGL context-retention behavior for hidden/suspended terminal panes. The dedicated retention module and its test suite are deleted, along with the import and call sites that used it in pane suspend/resume/dispose logic. Suspending a pane now unconditionally disposes its WebGL resources and defers reattachment, while resuming clears state flags and reattaches WebGL without buffer-refresh special-casing. Changes
Sequence Diagram(s)sequenceDiagram
participant PaneManager
participant RenderingControl
participant WebglRenderer
PaneManager->>RenderingControl: suspendPaneRendering(panes)
RenderingControl->>WebglRenderer: disposeWebgl(pane)
WebglRenderer-->>RenderingControl: webglAttachmentDeferred = true
PaneManager->>RenderingControl: resumePaneRendering(panes)
RenderingControl->>RenderingControl: clear resume-state flags
RenderingControl->>WebglRenderer: reattachWebglIfNeeded(pane)
Related PRs: None specified. Suggested labels: windows, terminal, performance, revert Suggested reviewers: None specified. Poem ✨ Finishing Touches📝 Generate docstrings
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Scoped revert of the WebGL context retention portion of #7085. Not reverted because it's believed wrong — it's the largest behavioral change in that PR and hasn't had enough real-world terminal lifecycle testing yet, so we're parking it while keeping the smaller/lower-risk wins.
Reverted (back to dispose-on-hide)
pane-webgl-context-retention.ts+ its test file (deleted) — the Windows-only suspended-pane context retention with the LRU cap of 32pane-rendering-control.ts—suspendPaneRenderingdisposes WebGL on every pane again;resumePaneRenderingdrops the retained-pane repaint branch and always goes throughreattachWebglIfNeededpane-webgl-renderer.ts— removes the retention-entry cleanup hook fromdisposeWebgl;resetWebglTextureAtlasno longer skips suspended panes (recovery bursts touch all panes again, as before Improve Windows terminal performance: retain WebGL contexts, warm first ConPTY #7085)pane-manager.ts—refreshAllPanesno longer skips suspended panesKept from #7085 (unchanged by this PR)
WEBGL_lose_context+ canvas zeroing) anddisposePanerouting throughdisposeWebgl— the [Bug]: Windows AppHangB1 when opening/activating terminal session #6874 context-budget hardeningwindows-conpty-warmup.ts)useConptyDllparity forLocalPtyProviderspawnsVerification
src/disposes WebGL when rendering is suspended)vitestpane-manager suite: 36 files / 324 tests pass; renderer typecheck (tsgo tc:web) andoxlintclean on touched filesEffect on Windows: worktree switches go back to paying the warm WebGL context re-create on return (the pre-#7085 behavior). The first-visit cost and ConPTY spawn improvements from #7085 are unaffected.