Skip to content

fix(environment): retain conflicting scenario MIME uncertainty - #7786

Closed
ShuaixinHuang wants to merge 1 commit into
morluto:mainfrom
ShuaixinHuang:codex/resubmit-scenario-mime
Closed

ShuaixinHuang wants to merge 1 commit into
morluto:mainfrom
ShuaixinHuang:codex/resubmit-scenario-mime

Conversation

@ShuaixinHuang

Copy link
Copy Markdown
Contributor

Problem and result

Replaces #7357 at the author's request, refreshed on pinned main 9593bc53. Only the original three feature files remain; historical shared CI repairs and unrelated imports are excluded.

When a browser scenario records conflicting response Content-Type declarations, preserve MIME uncertainty rather than selecting the first header. Every matching value must remain retained and exactly agree; an excluded value or conflict keeps the type unknown. Identical repeats and independently captured body metadata retain their existing behavior. Original headers and capture evidence remain unchanged.

This is the same existing environment-manifest/replay projection fix. No new MIME parser, dependency, provider, operation, public schema or browser execution authority is added.

Verification

Windows x64, pinned Node24.22.1/npm11.16.0, fresh locked dependencies:

  • Three complete focused files: 36/36 passed — scenario records13, registered public CLI manifest coverage13, timing10.
  • Cases cover conflicting orders, excluded declarations, later repeats after conflict, mixed-case names, identical values, body MIME precedence, manifest/replay consistency and unchanged original capture.
  • npm run check:fast: 2/2 passed,32.671seconds; normal pre-commit and pre-push type/lint2/2passed(cached236ms).
  • npm run check: 5/6 tasks, failing only on unchanged upstream HexRecordRegionMetadata unused type, also tracked by fix: remove unused hex record metadata type #7718. It is not a complete green check; no unrelated fix was imported. The same earlier pinned clean baseline failure was independently reproduced during this resubmission series.

The CLI coverage calls the production registered handler in-process, not a separate compiled CLI/MCP session. No live browser or Linux/macOS local run is claimed. Previous #7357 hosted checks are historical; this head needs its own CI. Net change: 3 files,151 additions/4 deletions.

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.

The human owner explicitly confirmed that review of this published PR was complete in this chat on 2026-10-27. The prior ownership and responsibility confirmation remains in force. This records initial readiness for the published change; subsequent validation remains documented above.

The existing initial human declaration is retained for this same feature and upstream refresh.

Before merge

  • Original focused semantics and explicit uncertainty retained.
  • Evidence and executed validation limits recorded.
  • Latest-head hosted checks complete.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-28T12:05:58.140665Z
We couldn’t complete this review. Comment @codex review to try again.
a709e62 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 Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable issue was found.

Summary

headerValue now requires every matching declaration to be retained and exactly equal before returning a MIME value.

  • Scenario records keep MIME type unknown when matching response headers disagree.

Reviews (1) · Last reviewed commit: "fix(environment): retain conflicting sce..." · Reviewed by Greptile

@morluto morluto added bug Something isn't working area: setup Setup, packaging, upgrade, install, Doctor, and client registration labels Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: setup Setup, packaging, upgrade, install, Doctor, and client registration bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants