Skip to content

fix(web): keep malformed HAR response statuses unknown - #12218

Merged
morluto merged 2 commits into
morluto:mainfrom
ShuaixinHuang:fix/har-status-admission
Nov 19, 2026
Merged

morluto merged 2 commits into
morluto:mainfrom
ShuaixinHuang:fix/har-status-admission

Conversation

@ShuaixinHuang

@ShuaixinHuang ShuaixinHuang commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Do not promote malformed HAR response statuses to observed API status codes or state-write facts. Use the three-digit integer range already admitted by browser scenario captures.

Evidence

On main, -1, 99, 200.5 and 1000 all appeared as observed status codes in the API surface. They now leave the status unknown, like the existing zero sentinel. Valid response observations retain their current behavior.

The API-surface, environment-state and manifest suites passed all 168 tests with authored captures. No browser or network was used. No issue is linked because the defect was independently reproduced.

Follow-up validation

On 80f3e5d2e, one captured-status schema feeds HAR admission, scenario capture and expected-status validation. The HAR reader reports malformed statuses as unknown and downstream API, replay and state views consume that result. Controls retain 100, 200, 600 and 999 and reject numeric strings. All 283 focused tests and check:fast passed.

Author readiness

Human owner: @ShuaixinHuang

  • 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.

Before merge

  • Maintainer review and CI complete.

@greptile-apps

greptile-apps Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no blocking defects were found.

Summary

The PR makes the HAR response reader own status validation and shares the existing three-digit status schema with browser scenarios.

  • HAR analysis keeps malformed response statuses out of observed results.

Reviews (5) · Last reviewed commit: "fix(web): normalize observed response st..." · Reviewed by Greptile

@ShuaixinHuang
ShuaixinHuang marked this pull request as ready for review November 19, 2026 05:34
@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:41:32.098246Z 80f3e5d New commits
ℹ️ 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.

@morluto
morluto enabled auto-merge (squash) November 19, 2026 11:44
@morluto
morluto merged commit 9477d34 into morluto:main Nov 19, 2026
42 checks passed
@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.

2 participants