Skip to content

fix(cli): retain correction details across adjacent browser commands - #2294

Merged
morluto merged 3 commits into
mainfrom
fix/browser-diagnostics-followup-2230
Oct 12, 2026
Merged

morluto merged 3 commits into
mainfrom
fix/browser-diagnostics-followup-2230

Conversation

@morluto

@morluto morluto commented Oct 12, 2026 •

Copy link
Copy Markdown
Owner

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, and capture-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 check and npm run docs:check passed. 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.

Fold the complementary implementation from #2247 into the earlier #2230 proposal, retaining the original contribution history.

Co-authored-by: LouisChen <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 12, 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 ✅ Completed 2026-10-12T18:53:43.524318Z e41cf3d 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread src/cli/browserAdvancedCommands.ts Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread src/cli/browserAdvancedCommands.ts Resolved
@morluto
morluto merged commit bb26622 into main Oct 12, 2026
32 checks passed
@morluto
morluto deleted the fix/browser-diagnostics-followup-2230 branch October 12, 2026 18:56
@github-actions github-actions Bot mentioned this pull request Oct 12, 2026
3 tasks done
@morluto morluto added bug Something isn't working area: cli CLI adapter and one-shot commands labels Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: cli CLI adapter and one-shot commands bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant