Skip to content

Fix RangeError - #9040

Merged
Alex Ross (alexr00) merged 2 commits into
mainfrom
alexr00/proposed-swallow
Oct 8, 2026
Merged

Alex Ross (alexr00) merged 2 commits into
mainfrom
alexr00/proposed-swallow

Conversation

@alexr00

Copy link
Copy Markdown
Member

Fixes #9023

Copilot AI balanced review requested due to automatic review settings October 8, 2026 15:14
@alexr00
Alex Ross (alexr00) enabled auto-merge (squash) October 8, 2026 15:14
@alexr00 Alex Ross (alexr00) self-assigned this Oct 8, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Failed-page recovery leaves pagination counters inconsistent, potentially dropping cached PRs from other remotes.

1 open finding
What changed in this PR

Fixes unbounded Copilot PR pagination and improves polling recovery.

Changes:

  • Explicitly advances pagination and detects stalled results.
  • Adds cumulative pagination progress and deduplicates PRs.
  • Adds polling error handling and regression tests.
File Description
src/​view/​prsTreeModel.ts Corrects pagination and deduplicates results.
src/​github/​folderRepositoryManager.ts Tracks cross-repository pagination progress.
src/​github/​copilotPrWatcher.ts Logs failures and safely resumes polling.
src/​test/​view/​prsTreeModel.test.ts Covers pagination, recovery, and scheduling.

🧠 Review effort: Balanced


Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.

Comment thread src/view/prsTreeModel.ts
@alexr00
Alex Ross (alexr00) marked this pull request as draft October 8, 2026 15:20
auto-merge was automatically disabled October 8, 2026 15:20

Pull request was converted to draft

@alexr00
Alex Ross (alexr00) marked this pull request as ready for review October 8, 2026 15:33
Copilot AI balanced review requested due to automatic review settings October 8, 2026 15:33
@alexr00
Alex Ross (alexr00) enabled auto-merge (squash) October 8, 2026 15:33

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

It changes shared pagination behavior used beyond Copilot polling and warrants final human validation.

0 open findings

1 resolved since last review

🧠 Review effort: Balanced


Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.

@alexr00
Alex Ross (alexr00) merged commit 8146e0c into main Oct 8, 2026
7 checks passed
@alexr00
Alex Ross (alexr00) deleted the alexr00/proposed-swallow branch October 8, 2026 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Copilot PR-state polling throws RangeError: Invalid array length while accumulating paginated results

3 participants