Repository navigation
fix(pane): 修复切换工作区时分屏终端残留 - #123
Merged
chenbstack merged 1 commit intoOct 8, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更内容 / Summary
左右分屏切换工作区时,如果目标容器晚于延期回调挂到窗口,原逻辑会直接放弃挂载,留下旧工作区终端;如果容器在回调前已被其他终端复用,旧回调又可能把新终端挤掉。
将延期挂载登记为待恢复请求,让后续窗口挂载事件继续恢复;回调同时核对请求 epoch 和容器/终端双向关联,使已被替代的请求失效。复用现有恢复机制,保留新旧容器的归属仲裁。
验证方式 / Testing
upstream/main上运行GlintTests/PerformanceRegressionTests:45/45 通过。git diff --check通过;PR 仅包含挂载实现和回归测试两个文件。截图或录屏 / Screenshots or recordings
本次验证为确定性生命周期回归测试。尚未在用户当前运行的 Release 中完成原始界面场景验收,未替换或重启该应用。
关联议题 / Related issues
延续 #109、#111 的分屏容器归属与恢复修复。