GuidesUpdated

v0 not showing your local agent's GitHub changes? Check the branches

Trace a local agent's change through GitHub, v0's base and working branches, Pull Changes, previews and production to find where it stopped.

On this page

A PR can be merged in GitHub while an open v0 chat still previews its own working branch. v0 separates the default branch, the chat's base, its working branch and Vercel's production branch. Before asking an agent to redo the work, find those four branches and the commit each preview shows. The fix may be a merge to the right base, Pull Changes, or waiting for a preview.

Canopy agent workspace with local project and Git review context
Canopy agent workspace with local project and Git review context

Map v0's four branch roles

Each connected v0 chat starts from a base branch. Its first code change creates a working branch, and v0 pushes there, not to the base. Vercel's production branch controls production deploys. Import usually picks the default branch, but base and production can differ, and your Canopy agent has its own branch. So a PR merged to `main` may not be in the chat or in production yet.

Use your project's real names; `main` is only an example.
RoleWhere to lookWhat it tells you
Default branchGitHub repository settingsWhat a fresh import usually selects
v0 chat basev0 chat Git branch menuWhere that chat's PR targets
v0 working branchv0 branch menu and GitHub PRWhich generated edits its preview contains
Production branchLinked Vercel project settingsWhich commits can trigger production

Check the local result and the PR first

Open the repo in Canopy, note the starting commit, and give a CLI one bounded edit on a feature branch, such as fixing a sign-up form's retry state. Run it in Servers, test Preview, read the diff and open a PR.

Check the PR's base and merge commit before blaming v0; a PR into another branch hasn't touched this chat's base. Local Preview and v0's Vercel preview are separate, so compare both on the same commit.

  • Don't edit v0's working branch locally while v0 is changing it; use your own PR.
  • Record the PR base, head and merge commit, and v0's base branch.
  • Finish an open PR or failed checks first.

Pull a merged base change into the open chat

Once your PR is in the chat's base, use Pull Changes in the chat's branch menu. It's enabled only when the base has new commits, and conflicts must be resolved first. Then check the diff and latest preview. With no active preview, v0 needs a code change on the working branch first; a missing preview doesn't mean the merge vanished. A published chat syncs back to its base, and the next edit starts a new working branch.

  • If Pull Changes is greyed out, compare commits; there may be nothing new.
  • If conflicts or CI block you, check the diff and checks yourself.
  • Each chat has its own branches; another chat's preview proves nothing here.

Check environment and deployment separately

Each working branch gets a Vercel preview. Publish creates or reuses a PR, merges it into the base and waits for production; GitHub checks and reviews can block it, and the live deploy follows Vercel's production branch.

Locally, use only authorized Development variables via `vercel env pull`. A clone has no hosted secrets and doesn't make production data safe, so use a test account. Each environment can run a different commit or variables.

It isn't live until the last boundary checks out.
BoundaryEvidenceCommon mismatch
Canopy local runChecked-out commit, run command, local behaviorMissing Development variables or wrong backend
GitHub PRMerged commit and intended basePR targeted a different branch
v0 chatBase/working diff and Pull Changes resultOpen working branch is behind base
Vercel previewDeployment URL and commitBuild or permissions block preview
ProductionProduction branch and live URL behaviorMerge or publish didn't deploy

Fix permissions or source-of-truth problems

v0 treats the connected repository as the source of truth; deleting it can lose the code. Repair a broken connection in project settings, not with a second repo. If branch protection blocks Publish, finish the checks or review and retry. v0 roles govern v0 actions; Vercel roles govern GitHub and CLI deploys. If a merge didn't deploy, check Vercel permissions instead of asking an agent to recreate code.

  • Keep repository and branch history intact while investigating.
  • Check the chat, repo and Vercel project share a team and project.
  • An AI fix can't stand in for a required human review.

Copyable resources

v0 Git handoff and missing-change checklist

Copy branch names and commit IDs, not secrets or private data.

v0 chat URL and linked GitHub/Vercel project: [ ]
GitHub default branch: [ ]
v0 chat base and working branch: [ ]
Vercel production branch: [ ]
Canopy checkout, CLI, starting commit: [ ]
Local run command, URL, backend target, result: [ ]
PR head, base, checks and merge commit: [ ]
v0 Pull Changes available/result: [ ]
v0 branch diff and preview commit/URL: [ ]
Vercel preview and production commit/URL: [ ]
Missing permission, conflict or env value (name only): [ ]
Reviewer, next action and confirmed outcome: [ ]

Frequently asked questions

Why does my v0 chat miss a PR merged to GitHub?

Check whether the PR merged into that chat's base branch. An open working branch may need Pull Changes before its preview has the new commits.

Does v0 push generated code directly to main?

No. It creates a working branch from the chat's base and merges through a PR. Check your project's branch names.

Does a successful local Canopy preview mean v0 or production is updated?

No. The GitHub merge, the v0 branch and preview, and the Vercel production deployment are separate states.

Why can I publish in v0 but not deploy through a GitHub push?

v0 roles govern actions in v0; GitHub-triggered and CLI deployments use Vercel project permissions. Check the actor's Vercel role and project access.

Can I run the v0 project locally without production secrets?

Yes. Use the repo's run instructions and authorized Development variables via `vercel env pull`, check the backend target and use safe test data.

More questions and answers →

Sources and further reading