Move from GitHub / Sync
Fix GitHub sync problems
A badge or a warning says that GitHub sync has a problem. Find the cause, correct it, and start sync again. If items here are old or missing compared with GitHub, see Items that are old or missing here.
8 min read
1. Open the GitHub sync section
The GitHub sync section of the repository settings shows the time of the last webhook and of the last catch-up. It shows a warning for each problem.
Admins also see a badge in the header of the repository and in the list of repositories of its owner:
- GitHub sync problem: sync is on, but it has a warning, or the token of the sync owner stopped.
- GitHub sync failed: sync did not turn on. This can happen after you turn on sync for each repository of an organization.
Click the badge to open the GitHub sync section.
2. Correct the cause
Find the warning in Usual causes, and do what it says. If the repository shows the banner GitHub sync is paused, see When sync pauses.
3. Click Dismiss
After you correct the cause, click Dismiss below the warnings. From a terminal, run src github-sync dismiss.
Dismiss clears the warnings and the badge, and starts sync again if it stopped after failed passes.
Note
If sync is on and still broken, the badge shows again at the next catch-up. A stopped token keeps the badge until the sync owner reconnects.
Done
Sync runs again, and the badge is gone.
Usual causes
Branches and tags
- The histories of a release branch split. Sync stops moving that branch, and never force-pushes. Make the two histories the same again by hand. After the next sync, the warning is gone.
- GitHub's release branch moved before your push. Sync brings it down by itself. Then push again.
- A warning says that branches and tags do not come down from GitHub now. The repository is at its size limit, so sync left the branches and tags here as they are, and the pass did not fail. The warning gives the size of the repository and its limit. See When a repository nears its size limit. The next catch-up tries again.
- A tag here points at another commit than on GitHub. The tag stays, with a warning.
Pull requests and checks
- A warning says that an item could not be brought here. For example:
GitHub #12 could not be brought here: .... The warning gives the reason. Sync could not write that issue or pull request here, or the item is too large for sync: its text, comments and review comments are more than 8,000,000 characters together. Sync drops the item from its queue. The next change of the item on GitHub, or a catch-up that lists it, tries again. - A pull request says "GitHub is behind". A move of its head branch here did not reach GitHub. The warning says why, for example that the person who pushed has no working GitHub connection. Fix that cause, for example with Reconnect in Connected accounts. The next push here, or the next catch-up, sends the branch again.
- "GitHub has a branch ... with other commits". GitHub already has a branch with the name of your head branch, and it has commits that the head here does not have. Rename the branch here, or delete it on GitHub. Then open the pull request on GitHub again.
- A check from GitHub shows pending, but it never ran on GitHub. GitHub requires a check of that name on the base branch, and no check of that name reported on the head yet. This is expected. The check stays pending until a check of that name reports. If GitHub no longer runs it, remove it from the rulesets or the branch protection of the base branch on GitHub.
Access and limits
- The sync owner's token is refused or lacks a required permission, or the sync owner is no longer an admin. Sync pauses and keeps queued changes. See When sync pauses. A connection without
read:orgneeds a reconnect too. - The GitHub organization limits OAuth apps and has not approved this site's app. The warning names the organization. The owner's token stays connected, and sync tries again every minute. An owner of the organization approves the app in the organization's settings on GitHub, under Third-party access. Sync then goes on by itself.
- The rate limit of GitHub is used up. Sync waits, then goes on.
Failed passes
- GitHub sends more than one sync pass can take. For example, one pull request adds very large files. Sync then gets the code of that pull request in the background, and it shows here a few minutes later. The pass that starts the background download works, so the warnings of the failed passes before it go by themselves. Many new pull requests at once are not a cause: their code comes in small groups.
- A sync pass fails again and again. For example, GitHub has an outage, or the repository runs out of memory in a pass. See How sync tries again.
How sync tries again
- A short outage does not fail a pass. When GitHub answers with a server error or the connection drops, the pass tries the request two more times. It tries after 1 second and after 5 seconds.
- A deploy of TanStack Source in the middle of a pass is not a failure either: the pass runs again at once.
- When a pass fails, sync tries again after a minute. Then it waits twice as long after each failure in a row, up to 6 hours.
- A read of GitHub that has not come back after 6 minutes is sent once more, for example when a deploy ended it. This is not a failure.
- A pass fails when its second read does not come back within 10 minutes either. Its warning says
the read of GitHub did not come back within 10 minutes. The next pass reads again. - After 10 failures in a row, sync stops with a warning that names the error. When the last pass did not end, for example because the repository ran out of memory in it, the warning says
the last pass did not end. Fix the cause, then click Dismiss: sync starts again at once. - Turning sync off and on again also starts it.
GitHub webhook deliveries use the repository events queue. After a failed delivery, the queue retries up to 20 times (21 attempts total). The scheduled retry delays total about 15 minutes, plus processing and queue time. If every attempt fails, Source stores a dead-letter record without the webhook body or signature. This limit does not guarantee delivery through a longer outage or recover deliveries already lost. More retries extend the recovery window. They do not prevent repository CPU limits or object resets.
When sync pauses
Sync pauses when the GitHub token of the sync owner stops working, or when the sync owner is no longer an admin of the repository. Queued changes stay. Each person with write access sees the reason in two places:
- A banner on the repository: GitHub sync is paused.
- One item for the repository on the Needs attention list of the dashboard. See See what failed while you were away.

Do the step for the reason in the banner:
| The banner says | What to do |
|---|---|
The sync owner's GitHub token stopped working. | The sync owner clicks Reconnect GitHub in Connected accounts in the banner. Then they click Reconnect and accept on GitHub. |
The person who set up sync, alice, is no longer an admin of this repository. | A reconnect does not fix this. An admin clicks Open the GitHub sync settings in the banner, connects GitHub and clicks Take over. |
Sync starts again at the next catch-up. The banner goes when the cause is fixed. The Needs attention item goes when sync runs again, or when an admin turns sync off.
Items that are old or missing here
Some issues or pull requests here are older than on GitHub, or an item from GitHub is not here. For example, a pull request here has an old head. Sync reads an item when it changes on GitHub. If sync misses a change, the item stays old or missing until it changes on GitHub again.
You must be an admin of the repository, and sync must be on. An agent's token is refused.
Make sync read again every item that GitHub changed since a time:
Pick a time a little before the first change that is missing here. With an earlier time, sync reads more items.
Run this command with your time, in ISO 8601 with its zone (
Zis UTC):src github-sync resync --since 2026-11-11T06:00:00ZOutside a clone of the repository, add
-R OWNER/REPO.
REST has the same change: resyncSince in PATCH /api/v1/repos/{owner}/{repo}/github-sync. MCP has it in update_github_sync.
The catch-up then lists every item that GitHub changed since your time, and sync reads each one again. Sync reads about 1,800 items an hour, so 9,000 items take about 5 hours.
While the catch-up lists the items, Last catch-up in the GitHub sync section shows Never (never in src github-sync status). Then it shows a time, and sync reads the listed items that it did not read yet.
After sync reads an item again, the item here is the same as on GitHub.