In the Code tab of the Claude Code desktop app, a red banner like this can appear and refuse to go away:
⚠ Invalid request
Pull request status couldn’t be checked and may be out of date.
If the app is set to another language, the banner is translated; GitHub issues quote it in English as Pull request status couldn’t be checked. This is what the Code tab shows when it asks GitHub for the state of the session’s pull request (PR) through the GitHub CLI (gh) on your computer, and the request fails without the app being able to name the cause. The app has separate messages that do name a cause, such as “authentication expired”, “rate limit reached” and “GitHub is unreachable”. When you see this one instead, look for the other reasons.
Key points
- Where it appears
- The Code tab of the desktop app (local sessions; SSH and WSL sessions work the same way). The terminal version of Claude Code never shows this sentence; its PR badge under the prompt simply stops updating.
- Effect on your code
- None. It is a failed read, so your local commits and diff stay as they are.
- Common reasons
- In GitHub reports: a branch with no PR yet, a session opened in a parent folder that is not a Git repository, a remote that is not GitHub (GitLab and others), or a deleted working folder. None of these is fixed by
gh auth login. - First move
- In the Code tab’s terminal, run
gh auth statusandgh pr viewand see which one fails.
Checked on November 14, 2026 against the UI translation data served by claude.ai, the desktop app’s official docs, the Claude Code CHANGELOG and GitHub issues
A message that names the cause
“GitHub CLI authentication expired”, “GitHub API rate limit reached” and so on.
Do what that message says (the list in §2).
did you get?
Contents
1. Which screen shows this message
The state of a PR (not created, open, merged, closed) and its CI results live only on GitHub. Claude Code fetches them in a different way on each screen. The sentence in this red banner belongs to the Code tab of the desktop app.
| Screen | How it gets the PR state | What you see when it fails |
|---|---|---|
| Desktop app Code tab (local sessions) | Asks GitHub through gh on this computer / requires gh to be installed and signed in (official) / if it is missing, the app offers to install it the first time you create a PR | The red banner in this article, or a message that names the cause (§2) |
| Code tab SSH sessions | Runs git push and gh pr create on the remote machine / you install gh there yourself (the app doesn’t prompt you; official) | Without a working gh on the remote, no PR can be created |
| Code tab WSL sessions | Branch and PR status run on the git and toolchain inside the distribution (official) | Check gh inside the distribution |
| Terminal version (CLI) | PR badge under the prompt / normally gh pr view / through Bedrock, Vertex or Foundry, or with telemetry off, it calls the GitHub API directly with the token from gh auth token, GH_TOKEN or GITHUB_TOKEN (CHANGELOG 2.1.251) | This sentence never appears / the badge just stops updating |
| Cloud sessions | Use the Claude GitHub App or the token you handed over with /web-setup / in Anthropic’s cloud environments, GitHub traffic goes through a proxy on Anthropic’s side (official) | Your local gh plays no part / permissions sit with the GitHub App |
The terminal’s PR badge checks GitHub less often while the PR is unchanged, and a push or a gh pr command refreshes it right away (CHANGELOG 2.1.248). For how cloud sessions work, see Claude Code cloud sessions; for the Claude GitHub App’s permissions, see “Claude is requesting updated permissions”.
In the Code tab, the PR appears in the “Changes” card of the session details panel together with its CI status (official; in the earlier layout, “CI” on the status bar). The red banner appears when the app re-checks the session’s PR state and fails. It has also been reported on sessions that have no PR yet. According to GitHub reports, the ✕ on the banner hides it only for that session, and it comes back when you reopen it.
2. The other messages in the same place, and how to fix each
The Code tab has more than one message for a failed PR status check. Reading the UI translation data served by claude.ai (en-US) on November 14, 2026 shows separate messages that name the cause. Which message you got decides what to do. The on-screen text is quoted as is.
- Installgh missing or won’t start
GitHub CLI unavailable. Install it on this computer, then sign in to it.
Install
ghfrom cli.github.com and sign in withgh auth login. On Windows the app can also offer to install it with winget when you press Enter in the terminal. - Sign ingh not logged in
GitHub CLI isn’t signed in. Run gh auth login to sign in.
Run
gh auth login. The default is a browser-based flow, and the token is stored in the system credential store (GitHub CLI manual). - Sign in againauthentication expired
GitHub CLI authentication expired. Run gh auth login to refresh pull request status.
Check
gh auth statusfirst. In a GitHub report (#67055), this message appeared even when the app’s owngh auth statuscall merely hit its 5-second timeout, most often under heavy parallel work. Ifgh auth statusis fine, you don’t need to sign in again. - Authorize orgSSO organization
GitHub CLI isn’t authorized for an organization that requires single sign-on. Run gh auth refresh and authorize the organization. If this warning stays, restart the app.
In organizations that use SAML single sign-on, a token can’t reach their repositories until it is authorized for that organization (GitHub Docs).
- Add scopeworkflow scope
This pull request changes a workflow file, and your GitHub CLI sign-in lacks the workflow scope. Run gh auth refresh -s workflow to add it.
It appears for a PR that changes files under
.github/workflows/. Add the scope as the message says. - Waitrate limit
GitHub API rate limit reached. Pull request status may be out of date until the limit resets.
GitHub’s limits per signed-in user are 5,000 REST requests per hour and 5,000 GraphQL points per hour (GitHub Docs).
gh api rate_limitshows what is left. There is an open report that, with many sessions and PRs, the app keeps checking even merged PRs until the quota runs out (#107769, November 6, 2026). - ConnectionGitHub unreachable
GitHub is unreachable. Pull request status may be out of date.
Suspect a VPN, a corporate proxy or being offline. Proxy settings are covered in Claude Code “Unable to connect”.
- Narrow downno cause named
Pull request status couldn’t be checked and may be out of date.
A failure that fits none of the above. Check the five reasons in §3 with the steps in §4.
In a report where a user inspected the app’s code (#67055), the app sorts failures into “auth”, “rate limit”, “network” and “unknown”, and maps “auth” to the expired message. This message without a named cause reads as the “unknown” bucket. The official docs don’t describe this sorting.
3. Five reasons when no cause is named
Anthropic’s official docs don’t say when this message appears. Reports of this exact message have piled up in the anthropics/claude-code issues. They point to the five reasons below, and in most of the reports gh was signed in correctly.
- Harmlessno PR yet
A branch without a PR, or committing straight to main.
gh pr viewexits with code 1 when the current branch has no PR (as reported in #61927). Reporters suspect the app shows that failure as “couldn’t be checked”.Reports: #61927, #64502. Both were closed as inactive without a fix. There is no setting to turn the message off.
- Reopenopened in a parent folder
The session was opened in a parent folder that holds several repositories. The app runs
gh pr viewin the session’s folder without naming the repository. The parent folder isn’t a Git repository, soghfails with “not a git repository”.Reports: #63516 (closed as a duplicate of #59182), #59182 (still open as of November 14, 2026). Reopening the session in the repository’s own folder avoids it.
- Out of scopenon-GitHub remote
origin points to GitLab, Bitbucket, Gitea or similar.
ghonly handles GitHub, so every check fails. There is also a report that the PR area doesn’t appear at all for GitHub Enterprise Server repositories (#61927).Report: #65522 (closed as a duplicate of #64502).
gh auth loginwon’t fix it. Your work is unaffected. - Harmlessworking folder deleted
An archived session whose worktree or repository was deleted after the PR merged. There is nothing left to re-check, so the banner stays.
Report: #63550 (closed as completed on August 25, 2026).
- Waitgh timed out
Under heavy load, the
ghcall the app makes doesn’t return in time. Reports say the app’s log (main.log) recordsgh pr view timed out.Report: #67055. It clears once parallel work calms down.
An expired GitHub token shows up under the named messages (§2). GitHub automatically revokes OAuth tokens and personal access tokens (PATs) that haven’t been used for a year, and a PAT expires on the date you set when you created it (GitHub Docs).
4. Narrowing it down: five commands in the session’s terminal
Run the commands in the terminal inside the session that shows the red banner. The Code tab’s terminal (Ctrl+` on both macOS and Windows) opens in the session’s working directory and shares Claude’s environment (official). A terminal opened in another window can have a different folder and environment variables, and give different results.
Are you inside a repository?
git rev-parse --show-toplevel— a folder path means you are. “not a git repository” matches the parent-folder case in §3. Reopen the session in the repository’s folder.Is the remote GitHub?
git remote -v— check that origin points togithub.com. If it is GitLab or similar, this banner can’t be cleared (your work is unaffected).Is gh installed and signed in?
gh auth status— on a problem it exits with code 1 and prints the reason (GitHub CLI manual). The environment variablesGH_TOKENandGITHUB_TOKENtake precedence over stored logins, so make sure no old token is left there.Does this branch have a PR?
gh pr view— if a PR appears, fetching works. “no pull requests found” only means there is no PR yet, which is harmless. To clear the banner, push and create the PR.Limits and connection
gh api rate_limit— any response means GitHub is reachable. Ifremainingforcoreandgraphqlunderresourcesis near 0, wait for the rate limit.
| Result | Meaning | What to do |
|---|---|---|
| Step 1 says “not a git repository” | The session folder isn’t a repository | Reopen in the repository’s folder |
| Step 2 is not GitHub | Outside the app’s PR features | Ignore the banner |
| Step 3 exits with 1 | Not logged in, expired or a permission problem | gh auth login or gh auth refresh |
| Step 4 says “no pull requests found” | No PR yet | Ignore it, or create the PR |
| Step 5 remaining is near 0 | Rate limit | Wait for the reset, run fewer sessions |
| Everything is fine | A transient failure or an app bug | Update the app and restart (§5) |
If you pass a PAT with gh auth login --with-token or GH_TOKEN, a classic PAT needs repo, read:org and gist (the minimum in the GitHub CLI manual). A fine-grained PAT only reaches the repositories you allowed.
5. If it won’t go away, or you need the PR now
Safe to leave alone
- Steps 1–3 in §4 are fine and step 4 shows there is no PR.
- The remote is not GitHub.
- An archived session whose working folder you deleted.
- Both
git pushandgh pr creatework.
Worth fixing
gh auth statusexits with code 1.- A PR exists, but its CI status never updates.
- The rate-limit message shows up many times a day.
- Pressing “Create PR” goes nowhere.
If you need the PR right away, run gh pr create in the terminal to create it without going through the Code tab’s UI. If the branch hasn’t been pushed yet, it asks where to push it (GitHub CLI manual).
When you update, mind the Claude Code inside the Code tab. For local sessions the Code tab runs its own copy of Claude Code, and updating the claude command in your terminal doesn’t update it (official). Update the app with “Help” → “Check for Updates…” on Windows or “Claude” → “Check for Updates…” on macOS, then start a new session. Typing /status in the Code tab shows the version a session runs in the “Claude Code” row.
There is no setting that only hides the message. A request for a setting to turn this banner off in PR-free workflows (#64502) was closed as inactive in July 2026. If it still won’t clear, report it in the GitHub issues with your §4 results and app version. If a matching report exists, add to it instead of opening a new one.
Summary
“Pull request status couldn’t be checked and may be out of date” is the message the desktop app’s Code tab shows when it fetches the PR state through gh and fails without being able to name the cause. Expired authentication, the rate limit and an unreachable GitHub get their own messages, so first look at which message you got.
When no cause is named, check in the session’s terminal, in order: git rev-parse --show-toplevel, git remote -v, gh auth status, gh pr view and gh api rate_limit. If there is simply no PR yet, the remote isn’t GitHub, or the working folder was deleted, it is harmless and your code is unaffected. If the session was opened in a parent folder, reopening it in the repository’s folder fixes it.
Related articles: Common Claude Code errors and fixes, Claude Code cloud sessions, The Claude GitHub App’s permissions, 3 workflows to auto-deploy to Vercel from Claude Code / Cursor.
FAQ
Q. Will this message erase the code or diff I wrote?
A. No. It only says the PR state couldn’t be read; your local commits, working tree and diff are unaffected. There is no need for git reset or to throw the session away.
Q. gh auth status is fine, but the banner stays.
A. The cause is outside authentication. Check that the session folder is a repository (git rev-parse --show-toplevel), that origin is GitHub (git remote -v) and whether the current branch has a PR (gh pr view). If there is simply no PR, it is harmless.
Q. I got “GitHub CLI authentication expired”, but my login is valid.
A. In a GitHub report (#67055), this message appeared even when the app’s own gh auth status call merely timed out under load. If gh auth status is fine, you don’t need to sign in again; it clears once parallel work calms down.
Q. Does the terminal version of Claude Code show this message too?
A. No. The terminal version shows a PR badge under the prompt, and when fetching fails the badge simply stops updating. Through Bedrock, Vertex or Foundry, or with telemetry off, it calls the GitHub API directly with the gh token or GH_TOKEN/GITHUB_TOKEN, so check that this token is valid (CHANGELOG 2.1.251).
Sources
- Anthropic, “Desktop application” (Monitor pull request status, SSH sessions, terminal, checking your version)
- Anthropic, “Claude Code Desktop in WSL” and “Use Claude Code in the cloud”
- Anthropic, “Claude Code CHANGELOG” (2.1.248, 2.1.251)
- UI translation data served by claude.ai, en-US (checked November 14, 2026)
- GitHub CLI manual: “gh auth login”, “gh auth status”, “environment variables”
- GitHub Docs, “Rate limits and query limits for the GraphQL API”
Related Claude Code errors: Claude Code errors reference, Unable to connect, 529 Overloaded / 500.