Repository navigation
Conversation
Mucheen
marked this pull request as ready for review
November 24, 2026 11:19
This branch has not been deployed
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
桌面 0.8.16 在后台准备插件更新期间,如果用户打开另一个桌面进程,该进程的启动清理可能删除另一个进程已经解包的新版。自动暂存随后报目录不存在。
改动 / Changes
.staging-sweep.lock。手动安装、后台准备以及卸载持有原生共享锁,各自拥有的临时目录受到保护。lsp.documentUri,使用驱动唤醒等待打开目标。不在本 PR 范围内 / Out of scope
市场协议、Core pin、Store 索引及插件发布流程。
类型专属:fix
复现与根因
.staging后,原进程在暂存重命名时报no such file or directory。期望暂存成功,随后启动时激活。检查项
desktop/internal/workbench/plugin_auto_update_test.go。flock,Windows 用LockFileEx。共享发布和清理流程使用同一 Go 实现。.agents/notes/implemented/bug-fix/2026-11-24-plugin-staging-sweep-ownership.md记录。范围检查 / Scope checks
功能矩阵 / Feature matrix
plugin-auto-update.json,原生验收仍为 pending。插件归属 / Plugin ownership
UI 验证 / UI evidence
N/A:改动位于插件后台文件操作与启动清理。
统一日志系统 / Structured logging
界面文案 / i18n
N/A:界面词条原样保留。已通过共享 i18n 静态检查和生成结果检查。
逻辑归属 / Logic placement
N/A:改动协调原生文件操作,Core 的市场与插件生命周期命令维持原样。
性能与内存 / Performance and memory
设置 / Settings
N/A:保留现有自动更新开关及设置行为。
插件契约 / Plugin contract
N/A:保留公开协议和宿主方法。
发行包只读与运行时资源 / Installed-package immutability
docs/ci-builds.md记录路径、所有权、生命周期和检出间复用规则。无用代码与重构 / Dead code and refactoring
验证 / Verification
desktop-go.sh test ./internal/workbench -run TestPluginAutoUpdateStagesAnApprovedNewVersionUntilRestartmake -C desktop fmt-check、矩阵、Agent Notes、插件归属、i18n、发行包只读脚本及其五项自测desktop-go.sh test -p=2 ./... -count=1 -timeout=9m,Release Core-race -count=2与逐项计时GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go test -c ./internal/pluginpkg未能执行的检查和原因
原暂存修复的 Windows 重跑已通过。同步主线后的 Windows 失败日志 显示旧监听夹具在共享路径上替换时发生文件占用,并在等待删除通知时超时。#2395 的 监听对照 和 导航对照 分别复现旧失败并验证修复。
本机没有可用的 Windows 虚拟机。Windows 原生验证由桌面 CI 覆盖。原生 UI 手动启动时延和旧共享日志门禁未验证。
提交前确认 / Final checks
c3cbabeed创建,并同步到a1977db75后验证。