fix(safe-mode): keep session list available - #547
Open
yaojin3616 wants to merge 2 commits into
Open
yaojin3616 wants to merge 2 commits into
yaojin3616 wants to merge 2 commits into
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.
安全模式管理页在窗口尚未显示时依赖
requestAnimationFrame调整位置,可能一直覆盖 Harness 会话侧栏。同时,旧版dsh.workspace.view.v5缺少sessionUpdatedAtByAccount时,新版 workspace 客户端会在retainAccountKeys()崩溃,导致切回正常模式后会话列表空白。本改动在挂载安全模式 iframe 时同步避开会话侧栏,并继续监听后续尺寸变化;读取 Desktop Profile 存储时校验并修复 workspace 的三个必需索引,使旧状态可以被新版客户端正常加载并在退出时持久化。
验证:
npm test -- test/desktop-storage.test.ts test/safe-mode-frame-layout.test.ts test/safe-mode.test.ts test/safe-mode-runtime.test.ts(27 tests passed)npm run typechecknpm run buildgit diff --checkWindows 安装包尚未执行人工回归。