Skip to content

fix(logs): 排除 WebView2 用户数据目录 - #346

Open
FCAnon89 wants to merge 1 commit into
MistEO:mainfrom
FCAnon89:fix/exclude-private-debug-data
Open

FCAnon89 wants to merge 1 commit into
MistEO:mainfrom
FCAnon89:fix/exclude-private-debug-data

Conversation

@FCAnon89

@FCAnon89 FCAnon89 commented Sep 12, 2026

Copy link
Copy Markdown

问题

MaaEnd 将 cpp-algo 的 WebView2 用户数据迁移到 debug/record/WebView2,以便更新后保留网页登录状态。该目录包含 Cookie 和站点存储生成的内部 .log / .json 文件,不应进入 MXU 导出的调试包。

关联改动:MaaEnd/MaaEnd#5690

修改

  • 日志导出递归扫描时跳过 debug/record/WebView2,其余 debug/record 文件(例如 Ziplines.json)仍会导出。
  • “清理日志”递归删除 .log 时跳过同一目录,避免触碰 WebView2 正在使用的内部日志。
  • 添加回归测试,同时验证目录不会被导出或清理,普通日志和记录保持原行为。

由 Sourcery 生成的摘要

保护 WebView2 用户数据,避免其被调试程序包导出和日志清理。

错误修复:

  • 将 WebView2 用户数据目录排除在调试日志导出和日志清理之外,同时保留现有对其他调试产物的处理方式。

测试:

  • 添加回归测试,确认 WebView2 数据不会被导出或删除,同时常规日志和记录仍保持现有行为。
Original summary in English

Sourcery 总结

保护 WebView2 用户数据,避免其被导出到调试日志或在清理操作中删除。

错误修复:

  • 将 WebView2 用户数据目录排除在调试包导出和日志清理之外,同时保留对其他调试产物的现有处理方式。

测试:

  • 添加回归测试,确认 WebView2 数据会被保留,而常规日志仍按原有方式导出和清理。
Original summary in English

Summary by Sourcery

Protect WebView2 user data from debug-log export and cleanup operations.

Bug Fixes:

  • Exclude the WebView2 user-data directory from debug package exports and log cleanup while preserving existing handling of other debug artifacts.

Tests:

  • Add regression coverage confirming WebView2 data is retained while regular logs are exported and cleaned as before.

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

嗨——我已经审阅了你的更改,整体看起来很棒!


Sourcery 对开源项目免费——如果你喜欢我们的审阅,请考虑分享一下 ✨
Original comment in English

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

@FCAnon89
FCAnon89 force-pushed the fix/exclude-private-debug-data branch from 2981bbe to 7661c4a Compare September 12, 2026 13:29
@zmdyy0318

zmdyy0318 commented Sep 12, 2026

Copy link
Copy Markdown
Contributor

webview是maaend中cpp-algo业务上用的组件,mxu不应该知道有这个文件夹

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants