Repository navigation
fix(mcp): normalize browser scenario input errors - #4661
Conversation
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. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
[Medium impact] The PR appears safe to merge; no actionable defects were found. SummaryThe PR turns browser-scenario validation failures into the shared
Diagram%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Browser scenario input] --> B{Schema accepts input?}
B -->|No| C[Shared AnalysisInputError helper]
C --> D[CLI or MCP error response]
B -->|Yes| E[Existing browser capture flow]
Reviews (6) · Last reviewed commit: "fix(mcp): normalize browser scenario inp..." · Reviewed by Greptile |
4c86f19 to
102ac30
Compare
0fa4655 to
6f2fc0f
Compare
|
Thank you, @gongfpp, for giving browser-scenario input failures the same typed error shape across MCP and CLI. The undeclared-secret and duplicate-action cases now have a clear path to correction, while the MCP session remains usable after an error. |
Fixes #4636
Summary
AnalysisInputErrorinstead of returning raw Zod issues.Validation on current main
npm run test:focused -- tests/boundary/mcp/browserScenarioInputDiagnosticsMcp.test.ts tests/boundary/cli/scenarioCliInputDiagnostics.test.ts— passed (6 tests).npm run test:acceptance -- --run tests/acceptance/providers/jebConfigurationIsolation.test.ts— passed (2 tests); current main includes the Linux PATH prerequisite fix for this test.npm run checkandnpm run check:fastpre-push hook — passed.Base sync
tests/acceptance/providers/jebConfigurationIsolation.test.ts.mainat79d2b718. GitHub reports a clean merge state;git merge-treeagainst currentupstream/mainalso reports no conflicts. The PR diff is limited to the MCP/CLI normalization and its MCP regression test.CI status
Author readiness