You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] Electron Desktop:OPS 替换原版 read 后,无法读取 ASAR 包内文件 #836
普通文件继续使用 OPS。
ASAR 内文件使用原版 Host read,不受 OPS 替换规则拦截。
保留 Host 原有的权限检查、参数验证及读取限制。
不因该例外开放 ASAR 写入,或声称原生搜索工具支持 ASAR 遍历。
模型侧提示也应明确说明:
For files inside Electron ASAR archives, use the host read tool with file_path. Do not substitute OPS native readers or search tools.
Actual reading
原版 read 被拒绝:
代码块
Error: dsh-ops cordis mode replaced the official tool read with
ops_inspect_local_file; call ops_inspect_local_file, or turn off
that replacement in the dsh-ops row settings.
OPS 读取同类 ASAR 内路径时,在预检查阶段拒绝:
代码块
rejected: PATH_RESTRICTED
[Notice: effectState=none; retry=never; phase=preflight.]
Next: Inspect the real path and linked/special components;do not bypass no-follow protection.
inspect_local_file: Links, reparse points and special objects
are not traversed; inspect the target path for the offending entry
ops_grep 搜索 ASAR 内目录也会返回同类 PATH_RESTRICTED,尚未进入实际搜索阶段。
作为对照,ASAR 外的普通文件可以通过 ops_inspect_local_file 正常读取。
Reproduced in isolation?
Reproduced in an isolated profile / temporary DSH_HOME
ASAR 相关交付随 #1006(现经 #1033 合入 main)落地:worker 遇到 Electron .asar 的成员路径时返回结构化 ARCHIVE_MEMBER_UNSUPPORTED 并点名归档文件(只有 Electron 进程内被补丁的文件系统会把它当目录),不再是误导性的「不存在/遍历越界」,并给出「解包副本」的可执行替代。读取 ASAR 内文件本身不在本仓库能力范围(私有虚拟文件系统),故按「可操作诊断 + 替代方案已交付」关闭。证据:native/crates/ops-files/src/file_path.rs、test/file-asar-path.test.mjs、docs/file-contracts.md。
Activity
fix(files): diagnose Electron archive member paths (T-Auto#836)
docs: record Windows metadata and archive diagnostics (T-Auto#874, T-…
Thatgfsj commentedon Nov 20, 2026
ASAR 相关交付随 #1006(现经 #1033 合入 main)落地:worker 遇到 Electron
.asar的成员路径时返回结构化ARCHIVE_MEMBER_UNSUPPORTED并点名归档文件(只有 Electron 进程内被补丁的文件系统会把它当目录),不再是误导性的「不存在/遍历越界」,并给出「解包副本」的可执行替代。读取 ASAR 内文件本身不在本仓库能力范围(私有虚拟文件系统),故按「可操作诊断 + 替代方案已交付」关闭。证据:native/crates/ops-files/src/file_path.rs、test/file-asar-path.test.mjs、docs/file-contracts.md。fix(files): diagnose Electron archive member paths (T-Auto#836)
docs: record Windows metadata and archive diagnostics (T-Auto#874, T-…