Repository navigation
perf(buddy): 会话点击后即时切换 - #237
Merged
shanyuhai123 merged 2 commits intoOct 8, 2026
Merged
Conversation
Contributor
|
实现方向已切换,应该以 loading 状态提示用户正在切换,直接切容易存在问题。 |
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.
背景与关联 / Context and related issue
主要改动 / Changes
prepareBeforeOpen: false,普通主区域替换不再等待目标视图准备完成。beforeClose关闭保护仍然执行,不会跳过未保存提示。instantTaskSwitch.spec.ts覆盖该行为。验证 / Verification
pnpm --filter @uselexora/lexora-buddy test:unit src/app/workbench/__tests__/instantTaskSwitch.spec.ts通过;type-check通过;改动文件 eslint 通过。pnpm lint。兼容与风险 / Compatibility and risks
只改变主区域替换的时序:需要"先准备好再切换"的视图仍可通过
prepareBeforeOpen: true声明;切换期间的数据一致性由目标视图自身 loading 状态承担。界面变更 / UI changes
点击会话后立即切换(时序变化,无视觉样式变化)。