Repository navigation
fix(cli): retain correction details across adjacent browser commands - #2294
Conversation
Fold the complementary implementation from #2247 into the earlier #2230 proposal, retaining the original contribution history. Co-authored-by: LouisChen <[email protected]>
Codex Review SummaryThis 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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c1c4a6f4b4
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 898b086e54
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
After #2230, invalid inputs to adjacent browser commands could still lose the correction details produced by their contracts. Preserve those details for
discover-webmcp-tools,compare-web-captures, andcapture-web-screenshot.Scenario comparisons now select their named input contract from schema-owned capture fields, preserving normalization policy errors and missing or misspelled scenario-manifest diagnostics instead of replacing them with passive-capture fallback errors. Passive snapshots retain compatibility with extra caller metadata. Inspection selects its schema branch from
include_script_sources, so an invalid endpoint produces only the endpoint correction. Omitted flags still default to false for inspection and true for bundle analysis.#2230 was squash-merged first, preserving @369Apps's original contribution. This follow-up incorporates @chqcjq's adjacent fixes from #2247 with coauthor credit. It replaces the previous fork-target contribution PR, 369Apps#1, and addresses the two subsequent browser diagnostics review threads.
Validation: 42 tests passed across six CLI/MCP boundary suites, including invalid normalization policies, malformed captures, endpoint diagnostics, and actual SDK-advertised schema acceptance/default parity. The two CLI suites also passed after the missing/misspelled manifest regressions were added (23 tests).
npm run checkandnpm run docs:checkpassed. Standards and Spec reviews found no remaining actionable findings. Browser workflow verification uses the fake CDP fixture; this patch makes no new real-browser/provider claims.Refs #2180, #2230, #2247.