✅ 加固消息与 pageLoad 回归护栏,精简 runtime guard - #1766
Open
cyfung1031 wants to merge 5 commits into
Open
cyfung1031 wants to merge 5 commits into
cyfung1031 wants to merge 5 commits into
Conversation
Collaborator
Author
|
@CodFrm 这个 PR 最高优先度。从其他PR的 CI log 会找到这个现象。我本机好像重现不了。但CI 的E2E会一直跑到超时 |
cyfung1031
marked this pull request as draft
September 22, 2026 08:46
cyfung1031
marked this pull request as ready for review
September 22, 2026 08:56
3 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.

Checklist / 检查清单
N/A — 本 PR 没有需要关闭的 issue;人工检查仍待维护者完成。
背景
runtime 启动链路出错时,问题可能延迟表现为 userscript 没有执行或 E2E timeout,定位困难。
主要风险有两类:
本次改动
Server.on()和Group.on()拒绝重复注册;需要替换时使用显式的replace()。trimScriptInfo()使用 pageLoad allowlist 投影,避免内部字段泄漏到 wire DTO。实现考虑
guard:runtime;只有guard:runtime:push使用环境失败放行策略。SKIP_RUNTIME_GUARD=1仍是完全跳过本次 hook 的显式选项。已知限制
建议审查重点
验证
验证绑定到 PR head
754bf8df81a81564909a2517b5d7b9a0547fb642:pnpm run typecheck:通过;pnpm run validate:yaml:all:通过;pnpm run guard:runtime:通过,耗时 16.27 秒,包含 build 和 Chromium smoke;codecov/project:当前失败;该状态在前一个 headc33643c0已存在,本次未将其描述为通过。之前 sandbox 内的 Chromium
SIGABRT在 sandbox 外未复现,因此不能作为产品 runtime failure 结论。截图
N/A — 本 PR 没有 UI 改动。