修复 Codex++ 重复注入导致卡死和白屏 - #2130
Open
130040167 wants to merge 1 commit into
Open
Conversation
现象:页面会在运行中卡死或白屏,渲染进程出现 CPU 持续占用与内存增长。 原因:桥接健康检查把后台计时器节流误判为桥接失效,触发重复注入;新文档脚本、监听器和定时器持续累积。部分渲染补丁还会重复探测或改写全局行为,放大页面更新压力。 解决方案:以桥接函数存在性作为健康信号,重装时回收旧的新文档脚本注册;为渲染注入增加可重入清理、限次重试、并发去重与诊断上限;移除插件市场的全局数组过滤改写,并补充桥接与渲染生命周期回归测试。
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.
现象
Codex++ 页面会在运行中卡死或白屏;异常时渲染进程持续占用 CPU,并伴随内存增长。
原因
桥接健康检查将后台计时器节流误判为桥接失效,进而重复注入完整渲染包。新文档脚本、监听器和定时器不断累积;部分渲染补丁的重复探测与全局行为改写进一步放大页面更新压力。
解决方案
验证
npm test:163 通过,0 失败。cargo test -p codex-plus-core --test cdp_bridge --release:157 通过,0 失败。node --check assets/inject/renderer-inject.js与git diff --check通过。