Repository navigation
fix(windows): save project configuration with Modify access - #2272
Merged
Merged
Conversation
1lck
marked this pull request as ready for review
November 21, 2026 08:12
15 of 18 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
Windows 用户能创建和编辑项目文件,却可能在保存已有运行配置时收到「拒绝访问」。运行配置和其他原生配置共用安全元数据保留逻辑。
改动 / Changes
WRITE_OWNER并设置该字段。不在本 PR 范围内 / Out of scope
本修复独立于已打标签的桌面 0.8.13 发版。
类型专属:fix
复现与根因
0faecba49)引入按句柄复制安全元数据。此前即使所有者和组已经一致,也要求ReOpenFile取得WRITE_OWNER。检查项
desktop/internal/configfile/metadata_windows_test.go的TestNativeConfigPublicationWithWindowsModifyAccess在修复前返回Access is denied.,修复后通过。范围检查 / Scope checks
功能矩阵 / Feature matrix
builtin-process-runs、declarative-plugin-settings的 Windows 证据和验证动作,保留既有原生整体验收状态。插件归属 / Plugin ownership
UI 验证 / UI evidence
N/A:保存动作经过原有控件和保存状态,只修改 Windows 文件权限处理。
统一日志系统 / Structured logging
N/A:原生错误仍由已有操作边界处理,没有新增错误分支日志或事件。Windows 沿用既有记录。
界面文案 / i18n
逻辑归属 / Logic placement
性能与内存 / Performance and memory
N/A:在用户保存触发的既有后台任务内读取临时文件的两项安全元数据,无新增进程、轮询、缓存或依赖。
设置 / Settings
N/A:配置项、编辑器和实际来源无变更。
插件契约 / Plugin contract
N/A:原生存储细节,无契约或方法变化。
发行包与资源 / Bundle and resources
无用代码与重构 / Dead code and refactoring
验证 / Verification
go test ./internal/configfile -run '^TestNativeConfigPublication' -count=1 -v -timeout=30srun-go-tests-with-timing.mjs和go test -race(原生保存、冲突和取消用例)test-stability-macos.sh --package ./internal/configfile -- --filter TestNativeConfigPublication,go test -race ./internal/configfile -count=1 -timeout=45s未能执行的检查和原因: Windows 来宾的普通账户无法创建符号链接,现有原生根边界测试在这台机器上受系统权限限制,由完整 CI 补验。
提交前确认 / Final checks
main的d686e78bb创建,目标为main。