Repository navigation
Conversation
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
…-web-captures, and capture-web-screenshot
|
Thanks @chqcjq. Keeping the earlier #2230 as the canonical #2180 contribution and preserving your adjacent browser-command improvements with coauthor credit. Its author disables maintainer edits, so I opened 369Apps#1 against the original author branch; the exact contribution head passes 16 CLI tests and the full source checks. This PR stays open while that integration is pending. Once the contribution lands in #2230, this overlap can close without losing your work or replacing the earlier contributor's PR. |
|
The earlier #2230 has now been squash-merged. Your adjacent browser diagnostics and regression coverage are preserved with coauthor credit in #2294, a focused follow-up against main (two files, 16 public CLI tests, full source/docs checks passing). Closing this overlapping PR now that the original contribution has landed and the remaining additions have a reviewable upstream home. Thanks @chqcjq for the fixes. |
…2294) * fix(cli): retain correction details across browser commands Fold the complementary implementation from #2247 into the earlier #2230 proposal, retaining the original contribution history. Co-authored-by: LouisChen <[email protected]> * fix(browser): retain diagnostics from the selected input branch * fix(cli): recognize incomplete browser scenarios by their owned fields --------- Co-authored-by: LouisChen <[email protected]>
Fixes #2180.
Problem
Nine public CLI commands reject supplied arguments through their named input contracts, then return a generic
invalid_requesterror without the contract's field issues. The output tells callers to "Correct the listed arguments and retry", but lists no arguments or constraints.Root cause
Each command's
parsed.success === falsepath constructs a barenew AnalysisInputError(operation)without passing the zodparsed.error.issuesthrough the existinganalysisInputErrorFromIssuesorprojectInputIssuesprojection.Fix
browserCommands.ts: passparsed.error.issuesinlist-browser-targets,inspect-web-page,analyze-web-bundle, andobserve-web-session.cliJavaScriptRuntimeCommands.ts: same fix forlist-javascript-runtime-targetsandobserve-javascript-runtime.browserAdvancedCommands.ts: same fix fordiscover-webmcp-tools,compare-web-captures, andcapture-web-screenshot.Verification
rea list-browser-targets 'not a url' --jsonnow returnsdetails.issuesnaming the invalid endpoint.rea list-javascript-runtime-targets '' --jsonnow returnsdetails.issuesnaming the empty endpoint.rea capture-web-screenshot 'not a url' '' --jsonnow returns both endpoint and target_id issues.npm run check,docs:check, andverify:test-discovery(943 files) all pass.