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] Windows 下每次启动 ZCode 都会清空系统全局"最近打开的文件"(app.clearRecentDocuments 波及整个 Recent 列表) #858
Activity
github-actions commentedon Sep 28, 2026
👋 感谢你的反馈,我们已经收到。
status: 待评估,你可以随时补充信息。needs: 更多信息标签并 @ 你。👋 Thanks — we've received your issue.
status: 待评估(Triage); feel free to add context.needs: 更多信息and ping you.zhoushimiaov commentedon Sep 30, 2026
Update / 补充验证:用 Windows 对象访问审计(SACL + 事件 4659/4663)确认了清空动作的精确指纹——ZCode.exe 启动后约 3 秒以 DELETE 权限批量删除
%APPDATA%\Microsoft\Windows\Recent\*.lnk(单次 17~29 个),同一秒清除注册表HKCU\...\Explorer\RecentDocs。三次独立捕获(进程 PID + 进程启动时间完全吻合)。本地临时方案已验证可行:对
app.asar做等长字节补丁,把该调用点的process.platform==="win32"改为恒假条件,补丁后应用启动不再清空系统 Recent。期待官方在 win32 分支上去掉这个调用。