fix(capture): ignore terminal EventSource 204 aborts - #359
Merged
Conversation
|
Note Synthetic action dogfood receipt. This report is the final deliberately failing fixture in the action contract suite. It proves that unproven evidence is rejected; it does not certify this pull request. 🗺️ StyleProof report📊 View the side-by-side visual report →Coverage, determinism, or report/diff consistency evidence is incomplete — repair the capture or reflow source; reviewer approval cannot clear this failure. |
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.
Why does this feature exist?
Chromium can emit a successful HTTP 204 response followed by
requestfailed(net::ERR_ABORTED)when an EventSource is intentionally told not to reconnect. StyleProof treated the later browser event as failed data residue, so a clean capture could be blocked despite the stream reaching its protocol-defined terminal state.What changed?
Behavioural Proof (with video and screenshots)
Video: Not applicable — this changes browser network-event classification and has no motion or interactive UI behavior.
Screenshots:
Behaviour tests:
Red before the implementation:
Green after the implementation:
Verification Summary
.agents/project/DEFINITION_OF_DONE.md.npm run build && npm run typecheck && npm run lint && npm run format:checknpm run privacy:checknpm testnpm run test:e2enpm run demo:report && npm run demo:checknpm audit --audit-level=highnpm pack --dry-run --jsonChecklist
docs/demo/report.md, or pasted the command/test output that demonstrates the changenpm run demo:reportand committeddocs/demo/npm run build && npm run typecheck && npm run lint && npm run format:checkpassnpm testpasses (andnpm run test:e2eif the capture/engine path changed).agents/project/DEFINITION_OF_DONE.mdand.agents/skills/pr-inline-screenshot-proof/SKILL.md, or the proof section saysNot applicablewith the technical reason