GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(github): load more gets past a page of pull requests updated in the same second by only21mil · Pull Request #32771 · pingdotgg/t3code

Conversation

@only21mil

@only21mil only21mil commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

Problem

On the Pull Requests page, "Load more" stops working for GitHub when more pull requests share one updatedAt second than fit in a page (100 on web, 31 on mobile). Bulk bot actions such as a stale sweep or a mass relabel can cause this. The next page repeats the rows already shown, the server drops them all, and the list never advances. Every older pull request is then unreachable. Mobile reports "Couldn't advance the list", and retrying gives the same answer.

The list cursor already records the rows sent at its boundary second (seenAt). GitHub ignored it: the search sent updated:<=<boundary> with no after, so it always read the first page again. The server also never passed seenAt to the cross-repository search, which is the path GitHub projects normally take.

Change

  • PullRequestService passes the rows it already sent to listChangeRequestsAcross, as { repository, number } pairs, because a number names a pull request only within one repository. The new ProviderBatchedListCursor type carries them. The per-repository ProviderListCursor is unchanged.
  • Both GitHub search reads (searchPullRequests and the search branch of listPullRequests) drop rows at the boundary second that the cursor already sent. They follow the search's after cursor past those rows until the page is full or the search ends.
  • With no rows to skip, each read makes the same single request it makes today. When a cursor is present, a full page plus a next page marks the list as cut short, so the usual "load more", where only the boundary row was already sent, does not need a second request.

Other providers are unchanged. Bitbucket already honours seenAt in saphid’s #18813 fix, and GitLab, Azure DevOps, Forgejo and GitCafe page by offset or by their own resume position, so ties cannot stall them. Only GitHub implements listChangeRequestsAcross.

Scope and approval

This is one bug with no linked issue. The fix is focused: it makes GitHub honour the seenAt field the cursor contract already documents for this exact case, and it follows the precedent set by saphid’s #18813 Bitbucket fix. It adds no setting, no new behaviour and no UI change, and it touches only the GitHub list reads, the one server call that feeds them, and the cursor type between them.

Verification

Tests (new case in GitHubPullRequestApi.test.ts, updated expectation in PullRequestService.test.ts):

  • cd packages/source-control-github && vp test run src/server/GitHubPullRequestApi.test.ts -t "reads past rows" on main: fails. GitHub hands back the rows already sent (acme/web 100, 99, 98) instead of pingdotgg/t3code 99 and acme/web 97, 96. With the fix: passes. The case also checks that a row in another repository with a sent number is kept, that the second request carries after, and that a cursor holding only the boundary row still takes one request.
  • cd apps/server && vp test run src/pullRequest/PullRequestService.test.ts -t "carries a slice on without sending the rows it already sent" on main: fails, because the cross-repository cursor carries no seenAt. With the fix: passes.
  • Both files pass in full with the fix (117 and 112 tests), and vp run check:changed passes.

Web, against a local stub GitHub Enterprise API on loopback serving the fake repository acme/web: 130 open pull requests updated in the same second, plus 10 older ones.

Before (main): after pressing "Load more pull requests", the list still ends at #1002 and the button stays. The stub's log shows the same search sent again with no after, returning #1100 to #1001 again.

Before: the list still ends at #1002 after Load more

After (this branch): the same press adds #1001 and #1000 below #1002. The server's second search carries after and returns #1000 to #961.

After: Load more adds #1001 and #1000

After, scrolled to the new end: the rest of the tied pull requests and the 10 older ones (#970 to #961) are listed, and no button is left.

After: the list reaches #961 and ends

Not checked:

  • Mobile and desktop were not run. They send the same cursors to the same server code; mobile's page of 30 reaches the stall sooner.
  • A real GitHub search past its 1,000-result cap. With more than about 1,000 pull requests in one second, paging now ends there instead of stalling.
  • Each "load more" inside a long run of ties re-reads the rows already sent from the top of the search, about one extra request per 100 sent rows. Lists without ties make the same requests as before.

Generated with Claude Opus 5.5 and GPT-6.1 Sol in T3 Code Nightly

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@only21mil
fix(github): load more gets past a page of pull requests updated in t…
7c5a6ee
…he same second

When more pull requests shared one updatedAt second than fit in a page, GitHub
reread the same first search page, so load more returned the same rows forever.
The server now passes the rows it already sent to the cross-repository read, and
both GitHub search reads drop those rows and follow the search cursor past them.
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:L 100-499 changed lines (additions + deletions). labels Nov 8, 2026
macroscopeapp[bot]
macroscopeapp Bot approved these changes Nov 8, 2026
View reviewed changes
@macroscopeapp

macroscopeapp Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved at 7c5a6ee

Macroscope's review found this PR approvable — Fixes “load more” when many pull requests share an update timestamp, including across repositories. The change is limited to listing reads and cursor handling, with no changes to permissions, stored data, or product defaults.

You can add or adjust custom eligibility rules. Learn more.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@coderabbitai

coderabbitai Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Cross-repository cursors now include repository-scoped pull-request numbers already delivered. GitHub listing and search use these entries to filter prior results and continue pagination when needed.

Changes: Batched pull-request pagination

Layer / File(s) Summary
Batched cursor contract and service wiring
packages/source-control-core/src/server/PullRequestProvider.ts, apps/server/src/pullRequest/PullRequestService.ts, apps/server/src/pullRequest/PullRequestService.test.ts
The batched cursor type scopes previously seen pull-request numbers by repository. The service includes these entries in cross-repository cursors, and its test checks the resulting cursor.
GitHub cursor filtering and pagination
packages/source-control-github/src/server/GitHubPullRequestApi.ts, packages/source-control-github/src/server/GitHubPullRequestApi.test.ts
Listing and search filter rows already delivered at the cursor timestamp. They adjust counts and fetch additional pages when needed. Tests cover filtering, returned rows, and truncation.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Bug fix

Suggested reviewers: juliusmarminge, tonybynmp4, bil0000

Merge Risk: Minimal · up to 7c5a6

This change lets "load more" continue past pull requests that share the same updated second. No concrete merge-blocking risk was identified. Mobile, desktop and GitHub's 1,000-result cap were not exercised.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the GitHub load-more fix for pull requests updated in the same second. The changeset adds a batched cursor with seenAt, skips already-sent rows at the boundary second in GitHub search …
Description check Passed The description follows the template sections (Problem, Change, Scope and approval, Verification). It explains the stall cause, the cursor and seenAt handling, and the affected GitHub read paths. It c…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the GitHub load-more fix for pull requests updated in the same second. The changeset adds a batched cursor with seenAt, skips already-sent rows at the boundary second in GitHub search reads, and follows the after cursor, which matches the title's main change. The title follows conventional commit form and is specific enough for a teammate scanning history.

Full details: Description check

Explanation

The description follows the template sections (Problem, Change, Scope and approval, Verification). It explains the stall cause, the cursor and seenAt handling, and the affected GitHub read paths. It cites a linked-free scope rationale that explains why no prior issue exists, as the template permits for a small, focused bug fix. Verification gives specific test commands with before and after results, a stub-environment check with screenshots, and lists what was not checked. The description covers the required content well.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: pingdotgg/t3code
  • Branch: main
  • File: .coderabbit.config.ts
  • Commit: 71c2d3a
  • Layers: Repository TS config
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 47e5867e-3979-46c2-9457-fa171b75b1d2
Commits

Reviewing files that changed from the base of the PR and between 71c2d3a and 7c5a6ee.

Files selected for processing: 5

  • apps/server/src/pullRequest/PullRequestService.test.ts
  • apps/server/src/pullRequest/PullRequestService.ts
  • packages/source-control-core/src/server/PullRequestProvider.ts
  • packages/source-control-github/src/server/GitHubPullRequestApi.test.ts
  • packages/source-control-github/src/server/GitHubPullRequestApi.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 1 remain after this review.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@only21mil

only21mil commented Nov 12, 2026

Copy link
Copy Markdown
Contributor Author

Note

🤖 Opus 5.5 replying on behalf of Victor.

Closing this to bring my open PRs down under the new limit. The branch stays on my fork if it is useful.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@only21mil only21mil closed this Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@macroscopeapp macroscopeapp[bot] macroscopeapp[bot] approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

size:L 100-499 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@only21mil
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.