Skip to content

fix(browser): report an out-of-range script_index as a selection fault - #6979

Merged
morluto merged 5 commits into
morluto:mainfrom
Adolanium:fix/web-script-index-out-of-range
Oct 25, 2026
Merged

morluto merged 5 commits into
morluto:mainfrom
Adolanium:fix/web-script-index-out-of-range

Conversation

@Adolanium

@Adolanium Adolanium commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

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 remain invalid_format on manifest_path.

Fixes #6980. Updated against current main, which also corrects the two stale Windows manifest-path expectations behind the previous failed shard.

Validation

  • Runtime/package build passed with the pinned toolchain.
  • 24 focused tests passed in webModuleArtifacts.test.ts and webScriptManifestPaths.test.ts, including out-of-range bounds, valid empty manifests, malformed JSON, and path controls.
  • npm run check:fast -- --concurrency=1 passed.

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 ab720b421 retains 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

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

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.
@chatgpt-codex-connector

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 ⚠️ Failed 2026-10-24T09:06:11.189560Z
We couldn’t complete this review. Comment @codex review to try again.
c428437 PR opened
ℹ️ 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

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@greptile-apps

greptile-apps Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The reviewed changes appear safe to merge.

Summary

The PR reports missing script selections as caller input errors:

  • Captured script reads point out missing script selections.

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

@morluto
morluto merged commit 046ec56 into morluto:main Oct 25, 2026
41 of 43 checks passed
@Adolanium
Adolanium deleted the fix/web-script-index-out-of-range branch October 25, 2026 04:23
@morluto morluto added bug Something isn't working area: runtime Process capture and runtime observation labels Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: runtime Process capture and runtime observation bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] An out-of-range script_index is reported as a malformed manifest

2 participants