Repository navigation
fix(desktop-control): bound V8 inspector script cache for Renderer module catalog - #913
Conversation
…dule catalog Signed-off-by: Vincent <[email protected]>
|
No actionable comments were generated in the recent review. Summary
Merge Risk:
|
|
感谢贡献,实测与复核已通过并合入!🎉 |
Every manifest line is now a branch with only its own change, cut from v0.22.0 or from the one branch named in its comment. Drops lines upstream v0.22.0 already has (BytePioneer-AI#913-BytePioneer-AI#917), the covered replay-integration, shared-remote-threads-and-delegation (now thin BytePioneer-AI#970/BytePioneer-AI#971/BytePioneer-AI#972 lines), external-side-chat (now thin BytePioneer-AI#969), remote-ssh-share-local-data, the net-zero Claude Desktop entrypoint pair, and the user-instructions lines rejected upstream as BytePioneer-AI#741. rr-cache holds the recorded resolutions for merging the thin branches onto v0.22.0. Signed-off-by: Vincent <[email protected]>
Summary
The Renderer loaded-module catalog enables the V8 inspector
Debuggerdomain only to receiveDebugger.scriptParsedURLs. With nomaxScriptsCacheSize, the inspector keeps the source of every collected script for as long as the session is attached. That includes the source of eachRuntime.evaluatethe Controller sends, so native Renderer memory grows without bound over a long Desktop session.installRendererLoadedModulesnow callsDebugger.enablewith{ maxScriptsCacheSize: 0 }.scriptParsedevents, and therefore the catalog, are unchanged. Nothing in codexhost callsDebugger.getScriptSource.Related issues
N/A
Test plan
npx vitest run --config tests/vitest.config.js packages/desktop-control/test/renderer-loaded-modules.test.ts packages/desktop-control/test/renderer-cdp-control-session.test.tson top of v0.21.0: 2 files, 21 tests passed. The tests now assert theDebugger.enableparameters.