fix(windows): 允许私有目录 ACL 中的只读权限 - #212
Merged
shanyuhai123 merged 2 commits intoSep 28, 2026
Merged
shanyuhai123 merged 2 commits into
shanyuhai123 merged 2 commits into
Conversation
Contributor
Author
|
目前如果安装了codex大概会触发这个提示,影响使用体验(我有时候会用codex来修这个仓库的代码) |
Contributor
|
我本地追加了点相关测试,并实机通过 |
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.
背景
Windows ACL 校验会拒绝 Codex 等沙盒 Agent 为 Lexora 用户目录添加的安全只读权限,导致应用启动时报错
PRIVATE_DIRECTORIES_UNSAFE。这类权限可能由 Codex Windows 沙盒或其他 Agent 自动补充;权限存在并不表示 Agent 已读取目录内容。修改内容
安全说明: 获得只读权限的主体可以读取
.lexora中的文件。本次修复不会迁移或另行保护这些数据。验证
cargo test --manifest-path apps/buddy/native/host/Cargo.toml --lib:43 项通过。cargo fmt --manifest-path apps/buddy/native/host/Cargo.toml -- --check:通过。