Repository navigation
fix(providers): 刷新时保留暂时缺席的活跃远端会话 - #2387
Merged
Merged
Conversation
Host 暂时缺席清单不代表活跃远端会话变成本地。提供商刷新保留安全的活跃摘要和能力,权威返回仍更新该会话,不把远端路径当成本地工作区。 Refs vastsa#2370
Owner
|
独立运行旧代码回归,复现活跃远端摘要丢失及远端路径未清理;候选 2/2 与真实 Electron 专项通过。与已验证 Stop/视图修复的本地组合候选 fd4742f 上,remote user path/provider catalog/身份与视图回归共 24/24,专项 Electron 通过(生产 store/ComposerToolbar + 受控 API,无真实远端/付费 provider,非完整 bootstrap)。初次邻接测试因宿主 shared 产物旧导出失败,使用候选 shared 源码解析后通过。仍待前序 PR 落地后刷新实际最新 main 并核对最终合入树与 CI,尚未批准或合入。 |
Owner
vastsa
approved these changes
Nov 16, 2026
vastsa
left a comment
Owner
There was a problem hiding this comment.
已在原始基线复现远端身份丢失及路径不安全问题;最小改动保留暂时缺席的活跃远端 summary,并统一移除不可用于本地操作的路径,权威返回仍替换缓存。在实际 main d4bc4dc 上重新执行 provider/catalog 10/10 与真实 Electron 生产 renderer/store 专项均通过(受控 API、独立 profile,非完整应用 bootstrap)。最新 head 六项 CI 全部通过;实际 merge-ref tree 4b18e167 与本地已测候选相同。可合入。
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.
Host 暂时缺席清单不代表活跃远端会话变成本地。提供商刷新保留安全的活跃摘要和能力,权威返回仍更新该会话,不把远端路径当成本地工作区。
修复后的效果:刷新提供商设置时,如果 Host 暂时不在会话清单中,保留当前远端会话的安全身份及能力。返回的权威摘要仍可替换它。远端文件路径不成为本地工作区目标,暂时缺席不能使远端拒绝的操作降级为本地默认允许。
主要生产文件:apps/desktop/src/stores/slices/catalog-slice.ts。新增生产入口回归与专项 Electron 检查,并按当前主线的英文技术文档规则更新规格和 E2E domain catalog。
旧代码提供商刷新在 Host 暂时缺席时移除活跃 remote 摘要,控制面会落入缺少身份的本地默认。回归旧代码失败,修复后保留 remote 身份和能力;权威新摘要仍替换旧值。相关 remote 项目及身份 10/10,最终两条新增回归通过。专项真实 Electron 生产 ComposerToolbar/useAppStore,拒绝 Stop 的远端在刷新后仍拒绝且身份保留。
Desktop 原始
tsc -p apps/desktop/tsconfig.json --noEmit、样式和 diff 检查通过。宿主旧 workspace 产物缺少最新字段,已在任务树独立重建 shared/agent-host 并链接,未改共享依赖;缺少的 Markdown/CJK 包按锁文件版本及 SHA-512 校验下载到任务缓存。文档检查通过;store 文件不在 Biome includes,不声称该区域运行 Biome。候选 a9b78b5,基线 2cf29f0;Node D:/pi/toolchain/node.exe。专项 Electron 使用实际 BrowserWindow、生产 store/组件和受控外部 API、独立临时 profile,无真实用户配置、真实远端、付费 provider。专项测试不是完整应用 bootstrap E2E,后者未运行。已有 remote-unified-chat 综合测试本机先因缺失 CJK 依赖失败、补齐后未完成,已终止;未声称其通过。
Refs #2370。只修复与该反馈相关的确定路径,未声称全部根因已解决。本项为 refreshProviders 暂时 Host 缺席的 active identity 路径,不重复其他 PR 的远端项目分组及 attach projectId 修复。等待最新 head CI 和人工评审,不合并或发布。
2026-11-16 23:40 复查:上述最新 head 六项 CI 全部 SUCCESS,无 pending、无失败。主线仍为 2cf29f0,无冲突,GitHub merge-ref 源码树再次逐项核对与本地已验证候选相同。当前等待人工评审,尚未批准或合并。