Repository navigation
fix(browser): stop reading request bodies Chromium did not capture inline - #495
Merged
Merged
Conversation
…line network.get no longer calls Network.getRequestPostData: a request body is only what Chromium captured inline under maxPostDataSize 20,000, as official (diagnostics-machine.ts:289-300; official never calls getRequestPostData). Response bodies follow official's MIME rule exactly (diagnostics-machine.ts:312), report notCaptured for hops with no response or a WebSocket (:308-309), and includeResponseBody defaults to includeBody (diagnostics.ts:287).
|
PR test build retired — merged into |
Hona
added a commit
that referenced
this pull request
Nov 21, 2026
…ist, preview URLs shown as their page, merged headers bounded (#548) * fix(browser): diagnostics parity: no getRequestPostData on the allowlist, preview URLs shown as their page, merged headers bounded READER-10's three parity diffs on #495: Network.getRequestPostData leaves the typed-CDP allowlist (nothing calls it since #495); on a preview tab the engine maps internal oc-preview:// addresses in every forwarded event to the page's display URL (official diagnostics.ts:43,47,157); ExtraInfo headers merge under the stored ones and the merged set keeps the 100-header / 16,000-character bound (official trimHeaders on the merge, diagnostics-machine.ts:148,165,182). Engine change: dev ENGINE_REVISION 6, published 5: no bump. * fix(browser): keep early ExtraInfo and end a redirected hop READER-10 should-fix 6, last part: ExtraInfo that arrives before its requestWillBeSent is held (128 requests, 16 events each, as official MAX_STASHED_CHAINS / MAX_WIRE_QUEUE) and replayed when the request comes; a redirect, which reuses the request ID, completes the earlier hop with the redirect's status and headers instead of leaving it pending (official transitionChain 'redirected').
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.
READER-10 critical 4 (
notes\review-rd-tools.md): #446 added aNetwork.getRequestPostDatafallback tobrowser.network.get({ includeBody: true }), so a form body Chromium did not capture inline (a password, a one-time code, a card number, a token) reached the model in full. Official never calls it (packages/gui-plugins/src/browser/diagnostics.ts:268-297,diagnostics-machine.ts:289-300atdb2d889c).maxPostDataSize: 20_000(same as officialdiagnostics.ts:236); otherwiseunavailable / notCaptured.diagnostics-machine.ts:312);notCapturedfor a hop with no response or a WebSocket (:308-309);includeResponseBodydefaults toincludeBody(diagnostics.ts:287).Parity note: official returns an inline-captured request body and a textual response body to the model without redaction (
diagnostics-machine.ts:292-297,diagnostics.ts:276-284), capped atmaxBodyChars(default and max 20,000). Rune now does the same; recorded innotes\upstream-sync\ours.mdas parity, not a difference.A removal of dangerous behaviour: merged on build, read after (orchestrator).