Repository navigation
fix(browser): keep malformed CDP response statuses unknown - #12296
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
[Medium impact] This PR appears safe to merge; no blocking issues were found. SummaryThis PR makes CDP response statuses follow the shared browser capture rules while keeping other response evidence intact.
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 |
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
0,99,200.5and1000. Controls retain valid capture statuses, including600and999, and exercise omitted status and unrelated metadata.check:fastpassed on the published commit. A passive fake-CDP test covers the caller path. No live browser input was used.statusCodereader. The full preview still has the two pre-existing Playwright conflicts.Author readiness
Human owner: @morluto