Repository navigation
fix(browser): report an out-of-range script_index as a selection fault - #6979
Conversation
A valid export_web_scripts manifest without the selected script_index was reported as an invalid_format input issue, as if the manifest file were malformed. It is now an out_of_range issue on script_index with the valid bounds, or invalid_value when the manifest has no scripts.
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 reviewed changes appear safe to merge. SummaryThe PR reports missing script selections as caller input errors:
Added tests cover these cases. No actionable defects or repository-rule violations were found. Source review found no weakened file protections. Tests were not run during this review. GitHub access required authentication, so superseded status and earlier review threads could not be checked; none were supplied. Reviews (5) · Last reviewed commit: "chore: incorporate the verified evaluati..." · Reviewed by Greptile |
…x-out-of-range # Conflicts: # tests/boundary/filesystem/webModuleArtifacts.test.ts
Summary
A script index outside a valid captured-script manifest now reports an input selection fault with its valid bounds. Empty manifests report
invalid_value; malformed manifests remaininvalid_formatonmanifest_path.Fixes #6980. Updated against current main, which also corrects the two stale Windows manifest-path expectations behind the previous failed shard.
Validation
webModuleArtifacts.test.tsandwebScriptManifestPaths.test.ts, including out-of-range bounds, valid empty manifests, malformed JSON, and path controls.npm run check:fast -- --concurrency=1passed.Local checks used one worker and serial files on macOS arm64. No live browser was launched. Current-head GitHub checks are tracked in the PR checks panel.
Shared CI fixture correction: main
ab720b421retains the Notes trace’s partial static coverage. Its 12 known-answer/report-gate tests, fast checks, and docs verification passed. The feature-specific checks above remain applicable.Author readiness
Human owner: @Adolanium