Why does the Pull Requests tab show a GitHub error?
Almost always one of three things: your saved GitHub sign-in has gone stale, the folder is not a GitHub project, or you do not have permission to push to it. The PRs and Actions tabs live in DevTools, opened with the </> button on the preview toolbar. Read the exact red line the tab shows and match it to the fix below. The most common one, GitHub token rejected (401), is fixed by disconnecting GitHub in the panel and connecting again.
Your first connection is covered separately in How do I browse files, history, and pull requests?. This page is for when you were connected and something now errors.
"GitHub token rejected (401)"
The full line reads GitHub token rejected (401) — try Disconnect + Connect again. Your saved GitHub access has expired or been revoked, even though the panel may still show you as connected with your @username. Reconnecting on its own does not help, because the stale sign-in is still stored. You have to remove it first.
- Open DevTools with the </> button on the preview toolbar and click the PRs tab.
- In the panel header, click the small × button (its tooltip reads Disconnect GitHub).
- Click Connect GitHub.
- codus opens GitHub in your browser with a short code. Type the code, approve codus, and come back.
If you revoked codus in your GitHub settings, this is expected, and reconnecting is the whole fix.
"No GitHub origin remote on this repo"
The line reads No GitHub origin remote on this repo (sometimes with "or origin points at a non-GitHub host"). The PRs and Actions tabs only work when the folder is a project hosted on GitHub. You see this when the folder is not a Git project, is a brand-new one you have not pushed anywhere yet, or is hosted somewhere other than GitHub.
- If the project should be on GitHub, push it there first and set GitHub as its origin. Ask your agent to do this if you are not sure how.
- If the project is not on GitHub, that is fine. These two tabs do not apply to it. Explorer and History still work on any Git project.
"You don't have push access to this repo"
You can view the repository but not write to it, so the + New button for a pull request stays greyed out with this tooltip. This is normal for someone else's repository, or a fork you only have read access to. To open a pull request you need push access, which the repository's owner grants on GitHub. You can still read the existing pull requests, and use Open and Checkout on them.
"GitHub returned 403 ..."
Two versions, both fixed by reconnecting to grant an extra permission:
- ... your token may be missing the
workflowscope. Reconnect to grant it. This is the Actions tab. Click Reconnect to enable Actions; it keeps your existing access and adds the missing permission. - ... check your token has
reposcope. Disconnect and connect again, approving codus for your repositories when GitHub asks.
How do I know it worked?
The red error line is gone. The PRs tab lists your open pull requests (or reads "No open pull requests" if there are none), and the header shows your @username as connected. The Actions tab lists your workflows.
Still stuck
If you have disconnected and reconnected, approved codus for the right account and repositories, and the tab still errors, tell us the exact red line it shows and whether the folder is a repository hosted on GitHub.