feat: isolate different backends - #1093
Conversation
|
/oc review |
|
下面是对 PR #1093(feat: isolate different backends)的审查。 一、PR 变更梳理新增工具
存储键作用域化(约 15 个文件)
二、合理性与有效性判断整体设计("ServerKey 重挂载清内存 + 键作用域隔离存储 + 导航后再激活 + 双目标 ping")是自洽且能实现后端隔离目标的。 三、侵入性与副作用
四、用户数据
|
80b45e9 to
047608d
Compare
|
CI/CD-related files cannot be changed in pull requests unless the author is listed in Violating files:
This guard reads the protected list from |
|
/oc review |
|
I have the full diff. Now let me explore the local codebase to understand the context, particularly around |
047608d to
369f0cf
Compare
|
/oc review |
|
Now I have the full diff. Let me explore the local codebase to understand the context of key areas being changed. |
Issue for this PR
Closes #
Type of change
What does this PR do?
根据所选后端对前端状态和导航行为进行作用域划分,确保在本地与非本地服务器之间切换时,不再复用相同的侧边栏、布局或会话状态。更新了后端切换逻辑,在激活目标服务器之前安全地重置导航状态;
switchServer辅助函数,确保在切换后端时,先离开绑定于旧后端的路由,再激活新服务器。/global/ping请求,以确保非本地后端的租约/心跳状态也能得到刷新。If you paste a large clearly AI generated description here your PR may be IGNORED or CLOSED!
How did you verify your code works?
bun typecheckfrompackages/appbun run testfrompackages/appScreenshots / recordings
If this is a UI change, please include a screenshot or recording.
Checklist
If you do not follow this template your PR will be automatically rejected.