Skip to content

fix(browser): keep malformed CDP response statuses unknown - #12296

Merged
morluto merged 1 commit into
mainfrom
audit/fix-cdp-observed-status-12292-main
Nov 19, 2026
Merged

morluto merged 1 commit into
mainfrom
audit/fix-cdp-observed-status-12292-main

Conversation

@morluto

@morluto morluto commented Nov 19, 2026

Copy link
Copy Markdown
Owner

Summary

The shared CDP response decoder uses the browser capture status schema introduced in #12218. An omitted status remains unknown and a malformed supplied status produces the existing typed invalid-status outcome. Other reported response fields retain their evidence.

Closes #12292.

Validation

  • An authored event reproduced acceptance of 0, 99, 200.5 and 1000. Controls retain valid capture statuses, including 600 and 999, and exercise omitted status and unrelated metadata.
  • All 193 focused tests and check:fast passed on the published commit. A passive fake-CDP test covers the caller path. No live browser input was used.
  • The changed file merges cleanly with fix(browser): record the redirect answered to a request step #8467 and retains its separate statusCode reader. The full preview still has the two pre-existing Playwright conflicts.

Author readiness

Human owner: @morluto

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-19T11:52:01.448250Z 9d3de9f PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@greptile-apps

greptile-apps Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] This PR appears safe to merge; no blocking issues were found.

Summary

This PR makes CDP response statuses follow the shared browser capture rules while keeping other response evidence intact.

  • CDP captures keep malformed response statuses unknown.

No actionable correctness or security issues found. No superseding change appeared in the available repository history. Tests were not run during this review.

Reviews (2) · Last reviewed commit: "fix(browser): reject malformed CDP respo..." · Reviewed by Greptile

@morluto
morluto enabled auto-merge (squash) November 19, 2026 11:53
@morluto
morluto merged commit 2d524d8 into main Nov 19, 2026
40 checks passed
@morluto
morluto deleted the audit/fix-cdp-observed-status-12292-main branch November 19, 2026 11:55
@morluto morluto added bug Something isn't working area: runtime Process capture and runtime observation labels Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: runtime Process capture and runtime observation bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Keep malformed CDP response status values from becoming HTTP evidence

1 participant