Repository navigation
Conversation
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — This is a small, localized server bug fix that backs off repeated reads for pull requests confirmed missing while preserving explicit refreshes and recovery polling. The accompanying tests cover the changed cadence and event behavior, with no schema, deployment, security, billing, default, or static-analysis changes. Notes:
You can add or adjust custom eligibility rules. Learn more. |
macroscopeapp
Bot
dismissed
their stale review
October 11, 2026 07:05
Dismissing prior approval to re-evaluate 58fd275
chickenputty
added a commit
to chickenputty/t3code
that referenced
this pull request
Oct 11, 2026
A link the host answers NOT_FOUND for (a deleted or renamed repository) never gets a snapshot, and a link without one was read on every sweep, even on settled threads. A not-found answer now marks the pull request missing; unsettled threads retry it every 15 minutes and a good read clears the mark. Settled threads stop reading links without snapshots. Taken from pingdotgg#17800 (abiassi), merged with the fork's active/idle cadence: open pull requests on idle threads keep the 10 minute pace, so one test expectation follows that. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Problem
PR sync reads a linked pull request on every one-minute sweep while the link has no snapshot. A link never gets a snapshot if GitHub returns
NOT_FOUND. The sweep keeps reading the pull request, even on settled threads. On my machine, 9 such links made 10 failed GraphQL requests a minute. Fixes #17799.Change
Scope and approval
I believe this fits the exception for a very small, focused fix to an obvious bug. The user guide says "A settled thread's reviews stop refreshing until you unsettle it," but links without snapshots are still read every minute after the thread settles. Only
PullRequestSyncReactor.tsand its tests change. There is no new setting, contract, or UI change. Retries use the existing 15-minute pace for closed pull requests. The batch fallback, the read cache, and auto-settle stay as they are. #17609 (open) changes the same event handler. If #17609 merges first, I will rebase and apply the same skip in itsrequestUnsyncedLinks. Linking or relinking a pull request that is still marked missing does not force a read. A reader's refresh does.Verification
vp test run apps/server/src/orchestration-v2/PullRequestSyncReactor.test.ts. The test commit fails 5 cases on the current reactor. The fix passes all 23.mainmade 50 failed requests in 5 sweeps. With the fix and one thread unsettled, 18 sweeps made 4 failed requests: 2 at startup and 2 after 15 minutes.vp run --filter t3 typecheck, andvp linton both files. I did not verify not-found handling with other hosts.Made with Claude Code (Claude Opus 5.5).