Hire Lovable Xperts
GitHub & Repo

Lovable GitHub Reconnect Not Working

Clicking 'Reconnect' in the Lovable editor and landing on a 404 — or seeing 'we couldn't find the Lovable GitHub app installation' — means the existing app installation is no longer valid. The reconnect flow itself does not fix this; you must complete a fresh GitHub App installation first. This guide walks each step in order so you restore sync without accidentally creating a new repository.

By Founder Name · Last verified: 2026-06-24

Why does the Lovable GitHub reconnect show a 404?

The 404 appears when Lovable's OAuth flow tries to validate an app installation that no longer exists — either because the Lovable GitHub App was uninstalled, the authorisation token expired, or the user who originally installed the app no longer has admin access to the organisation. The reconnect button in Lovable cannot fix this because it relies on the same broken installation to complete the handshake.

The error 'we couldn't find the Lovable GitHub app installation' is a variant of the same problem: the app is not installed on the GitHub account or organisation that owns the repository Lovable is trying to reach. This often happens after an organisation rename, after a team member who installed the app leaves, or after the app is manually uninstalled from GitHub's Applications settings.

A subtler trigger: if the app was installed with 'selected repositories' access and the Lovable-connected repo was later removed from that list, the installation technically still exists but has no permission to the relevant repo — producing the same 404 symptom during reconnect.

How do I fix a broken Lovable GitHub reconnect?

The correct sequence is: fix the GitHub App installation first, then return to Lovable and reconnect. Do not start in Lovable. Starting in Lovable without fixing the installation first will loop you back to the same 404 because the underlying app access has not changed. Follow these steps in order.

  1. Go to github.com/settings/applications (personal) or github.com/organizations/YOUR-ORG/settings/installations (org).
  2. Look for 'Lovable' in the installed apps list. If it is there, click Configure.
  3. Under 'Repository access,' verify the connected repo is included. If not, add it.
  4. If Lovable is not in the list, go to github.com/apps/lovable-dev and click Install.
  5. Select the account or organisation that owns the repository and grant access.
  6. Complete the installation and return to the Lovable editor.
  7. Click 'Connect to GitHub' (not Reconnect) and complete the fresh OAuth flow.
  8. Verify a new commit appears on the default branch (main) in your repository after the next editor change.

What if reconnect creates a new repo instead of restoring the old one?

If the reconnect flow creates a new repository instead of restoring access to the existing one, it means Lovable could not find the original repository — usually because it was renamed, transferred, or deleted. Lovable's default behaviour when the original path is unavailable is to create a new repository and start pushing there. Your previous push history stays in the old repository.

To avoid this: before reconnecting, confirm the original repository exists at the exact same path — same owner name, same repository name — that was connected when you first set up GitHub sync. If the repo was renamed, restore the original name first. If it was transferred, either transfer it back or accept that reconnect will create a new repo.

If you have already landed in the 'new repo created' state and your history is split across two repositories, a senior engineer can consolidate the history using git rebase or cherry-pick without losing either set of changes. This is not something to attempt blind — an incorrect rebase on the Lovable-connected branch can cause Lovable to fail all future pushes.

If reconnect created a new repository and your old one still exists, do NOT delete the old repo until you have confirmed which version of the code is current. The two repos may have diverged. Back up both before merging.

How do I tell if my GitHub App installation is valid right now?

You can verify the Lovable GitHub App installation status directly in GitHub without waiting for a sync error in the editor. Check both the installation status and the repository access list — a valid installation with the wrong repository scope is as broken as no installation at all.

  1. Go to GitHub → Settings → Applications → Installed GitHub Apps.
  2. Find 'Lovable' in the list. If missing, the app is not installed — proceed to github.com/apps/lovable-dev.
  3. Click Configure on the Lovable entry.
  4. Under 'Repository access,' confirm your connected repo is listed — or that 'All repositories' is selected.
  5. If the repo is missing from the access list, add it and click Save.
  6. Return to the Lovable editor and confirm the next prompt push appears in GitHub.

Can reconnecting to GitHub break my existing code?

Reconnecting to an existing, accessible repository is safe — it restores the push path without touching the code in the repository or in the Lovable editor. The risk is creating a new repository by accident: if the original repo is not accessible at connection time, Lovable creates a new one and pushes current editor state there, effectively splitting history. Confirm original repo access before clicking reconnect.

Nothing in the Lovable editor changes during a reconnect — your prompts, version history, and editor state are not affected by the GitHub connection status. The reconnect only determines where future pushes land. Past pushes to the old repository are not transferred automatically.

When should I ask a senior engineer to handle the reconnect?

If you have completed a fresh app installation and the reconnect still fails, or if reconnect created a new repository and you need to consolidate diverged history, the situation requires git-level intervention that is easy to get wrong. A senior engineer can diagnose the exact handshake failure, identify whether the issue is at the app installation level or the repository permissions level, and resolve it without losing history.

Common escalation triggers: the 404 persists after a reinstall; the Lovable editor shows a sync error even when GitHub shows the app as installed; or you have ended up with two repositories containing different versions of your app code.

Frequently asked questions

Why does Lovable GitHub reconnect go to a 404?
The app installation Lovable is trying to validate no longer exists or lacks access to the repository. Fix it by completing a fresh Lovable GitHub App installation at github.com/apps/lovable-dev, then return to Lovable and reconnect. Retrying the broken reconnect URL without fixing the installation will loop you back to the same 404.
How do I reinstall the Lovable GitHub App?
Go to github.com/apps/lovable-dev and click Install or Configure. Select the account or organisation that owns your repository and grant repository access. If an old installation exists, revoke it first via GitHub Settings → Applications → Lovable → Uninstall, then do a clean install.
Will reconnecting GitHub delete my Lovable project or editor history?
No. The GitHub connection is independent of your Lovable editor project, prompts, and version history. Reconnecting only updates where future pushes land. Your editor state is unchanged regardless of whether GitHub sync is working.
Why did reconnect create a new GitHub repository instead of restoring sync to my old one?
The original repository was not accessible at the time of reconnect — it was likely renamed, transferred, or deleted. Lovable cannot write to a path it cannot reach, so it creates a new one. Restore the original repo name before reconnecting to avoid this. If the new repo was already created, do not delete either until you have verified which has the current code.
The app installation looks valid in GitHub but sync still fails — why?
The most common cause is that the repo is not included in the app's 'selected repositories' access list. Go to GitHub → Settings → Applications → Lovable → Configure and verify the repository is listed. A valid installation with wrong repository scope is as broken as no installation.
Can I use a personal GitHub account and an organisation account with Lovable?
Yes, but the app must be installed separately on each account. If your repository lives in an organisation, install the app on the organisation — not just on your personal account. The two installations are independent and the Lovable editor must be connected to the one that owns the repository.
How long does a reconnect take to restore sync?
Once a valid installation is in place and you complete the reconnect in the Lovable editor, sync should resume within seconds of the next editor change. If it takes more than a minute, check the GitHub repository's default branch (main) for a new commit — if nothing appears, the push failed and there may be a remaining permissions issue.
Is there a way to test the reconnect without risking my main branch?
Lovable pushes directly to your default branch (main) by default. If you have branch-protection rules that block direct pushes, Lovable will create a timestamped fallback branch instead of pushing to main — allowing you to review and merge the changes manually. Set up branch-protection rules on main if you want a review gate before changes land.
What is 'we couldn't find the Lovable GitHub app installation' and how do I fix it?
It means the Lovable GitHub App is either not installed on the account that owns your repository, or the installation exists but has no access to that specific repo. Fix: go to github.com/apps/lovable-dev, install or configure the app for the correct account, and ensure the repository is included in the access list.

App down or leaking data? Get an expert on it within 24–48h.

Book a free 30-minute audit call. We'll diagnose what's wrong and tell you exactly what it costs to fix.

Get emergency help