Repository navigation
fix(desktop): 保存工具链后刷新构建提供者 - #2230
Merged
Mucheen merged 6 commits intoNov 20, 2026
Merged
Conversation
Mucheen
marked this pull request as ready for review
November 20, 2026 11:44
1 task done
15 of 18 tasks
23 of 25 tasks
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.
关联 Issue / Linked issue
PR 类型 / Type
改动说明 / What changes
背景 / Why
工具链设置已经显示新的解释器,当前窗口的 pytest 却仍由旧解释器执行;重启 Lithe 才生效,可能误用旧环境里的依赖。
改动 / Changes
当 Core 启动计划需要解析宿主工具时,提供者的复用键才纳入项目 pin 与全局目录文件版本。共用来源的独立客户端在下一次请求时读取新值。项目 pin 保持项目隔离,重复保存保持复用。
打包程序、打包运行时和共享语言服务器沿用各自的启动路径。打包提供者遇到无关的项目或全局工具链文件不可读时,可继续运行及按插件设置重启。
初始化结束后再次确认配置版本。宿主清理已过期的启动,并在同一请求的期限内重试。已交给旧进程的请求继续执行。
工作台登记在途启动和留待清理的提供者,包括项目关闭后仍在退出的进程。卸载先阻断新启动,再等待关联进程退出。停止失败时保留插件文件供重试。
将目录读取纳入桌面内核接口,服务调试的内核包装器可继续转发该方法。修正目标分支遗留的通知结构体格式。
新的合成运行时覆盖项目 pin 保存、重复保存、跨客户端写入、初始化期间保存、已有请求排空和卸载失败重试。初始化测试核对保存前后的实际可执行路径。另补打包提供者和共享语言服务器路径。同步宿主功能矩阵和 Agent Note。
修复 Linux 和 macOS CI 复现的项目树误选。焦点清空仍会更新焦点记录,只有非空焦点才用于匹配已绘制行。补确定性回归和删除文件后定位的明暗主题、中英文无头截图,Linux CI 上传截图。
不在本 PR 范围内 / Out of scope
不改插件包、共享语言服务器会话、工具链发现或 Rust Core 契约。原始 Windows 环境的
plugin.toolchain.limitExceeded不在此修复范围,尚未定位触发配置。类型专属:fix
复现与根因
sys.executable仍是旧解释器,期望下一次请求立即使用新路径。c47ae0496)的提供者复用键只比较插件设置,宿主工具链 pin 并非该设置的一部分。36025af8。a/kept.go。3900193c8本地重复 60 次复现。feat(git): 强制删除二次确认、混合结果标红并修复多选 #2234 的焦点变化判断遗漏了非空检查,恰好把空焦点与未绘制行的空 ID 匹配。检查项
ErrClosed、卸载早于旧进程销毁。打包提供者的项目及全局文件不可读用例在e67717de1失败,在最新实现通过。回归位于desktop/internal/workbench/build_provider_restart_test.go。4cdcb5580上与原 CI 用例各重复通过 100 次。App.buildProvider。外部协议保持兼容。.agents/notes/implemented/bug-fix/2026-11-20-build-provider-toolchain-refresh.md。范围检查 / Scope checks
功能矩阵 / Feature matrix
shared/platform-feature-matrix/features/build-system-plugins.json,补充证据,并更新shared/platform-feature-matrix/features/workspace-tree-batch-files.json的失焦与删除后定位场景。双端原生复验状态仍为 pending。verify-platform-feature-matrix-change.sh 7d62ff572 HEAD通过。插件归属 / Plugin ownership
UI 验证 / UI evidence
4cdcb5580的TestVisualProjectTreeMissingFile采集 1000×640 明暗主题及中英文截图。打开的文件被外部删除后,项目树展开父目录并继续选中项目根,编辑器保留内容。已逐张检查本地的四个场景。Linux CI 的四张截图均能看到选中状态,简中标签因运行器缺少中文字形显示为缺字占位。本地 macOS 简中截图的文案正常。 Linux 无头截图。统一日志系统 / Structured logging
界面文案 / i18n
verify-app-language-localization.mjs与generate-i18n.mjs --check通过。逻辑归属 / Logic placement
性能与内存 / Performance and memory
设置 / Settings
N/A:不新增设置项或页面;原有来源、显式保存与回读机制不变。
插件契约 / Plugin contract
N/A:无协议、能力版本或宿主方法变化。
发行包与资源 / Bundle and resources
无用代码与重构 / Dead code and refactoring
验证 / Verification
下表的 Windows 原生结果来自初版
36025af8。4cdcb5580的 GitHub Actions 结果单独列出。desktop-go.sh test -run '^TestBuildProviderRestartsAfterSavingProjectToolchain$' ./internal/workbench(修复前)test-stability-windows.ps1 -Scope DesktopGo -GoPackages ./internal/workbench(筛选提供者生命周期和工具链设置)desktop-go.sh test -race(提供者生命周期、工具链设置及全局修订通知)sys.executable从 Python 3.12.13 对应环境切到项目 .venv 的 3.11.9,无需重启desktop-go.sh test -p 2 -timeout 240s ./...desktop-go.sh test -p=1 -parallel=1 ./... -count=1 -timeout=10m97ba10ae5的复审版本-race97ba10ae5的复审版本main的90e89d4bf后复验e67717de1main的7d62ff5723900193c8desktop-go.sh test -p=1 -parallel=1 ./... -count=1 -timeout=10m3900193c8desktop-go.sh test定向两项各重复 100 次,五项定向计时及三轮-race4cdcb5580desktop-go.sh test -p=1 -parallel=1 ./... -count=1 -timeout=10m4cdcb55804cdcb5580尚未验证的路径:
4cdcb5580的 Windows 原生、双窗口 GUI,以及其他插件仓库套件。提交前确认 / Final checks
1c243f662,已合入main的7d62ff572。目标仍为main。