claude-code - 💡(How to fix) Fix [BUG] Stale "Pull request status couldn't be checked" on archived sessions whose repo/worktree was deleted

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

Error Messages/Logs

Root Cause

A local code session shows a persistent warning: "Pull request status couldn't be checked and may be out of date." The session is archived, its git worktree and local repository checkout have been deleted, and its associated PR was already merged. Because the local repo/worktree no longer exist, the app cannot re-run the PR status check, so it displays an un-dismissable stale warning indefinitely.

Fix Action

Fix / Workaround

Related to the closed issue anthropics/claude-code#24834 ("Footer shows closed/merged PR indicator — should only display open PRs"). This case differs in that the repo/worktree is gone entirely, so the status is un-checkable rather than merely wrong. Workaround: delete the session's local metadata file.

Code Example

Pull request status couldn't be checked and may be out of date
RAW_BUFFERClick to expand / collapse

What's Wrong?

A local code session shows a persistent warning: "Pull request status couldn't be checked and may be out of date." The session is archived, its git worktree and local repository checkout have been deleted, and its associated PR was already merged. Because the local repo/worktree no longer exist, the app cannot re-run the PR status check, so it displays an un-dismissable stale warning indefinitely.

What Should Happen?

For archived sessions (or any session whose working directory / repository no longer exists), the app should either suppress the PR-status check, show a clear terminal state (e.g. "merged" or "repository no longer available"), or allow dismissing the warning — rather than a permanent "couldn't be checked" notice.

Error Messages/Logs

Pull request status couldn't be checked and may be out of date

Steps to Reproduce

  1. Create a local code session that opens a PR from a git worktree.
  2. Merge the PR, then delete the worktree and the local repository checkout.
  3. Archive the session.
  4. The session keeps showing "Pull request status couldn't be checked and may be out of date," with no way to clear it short of deleting the session's metadata file.

Regression?

I don't know

Claude Code Version

~2.1.156 (Claude Desktop, integrated Claude Code)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Other (Claude Desktop integrated environment)

Additional Information

Related to the closed issue anthropics/claude-code#24834 ("Footer shows closed/merged PR indicator — should only display open PRs"). This case differs in that the repo/worktree is gone entirely, so the status is un-checkable rather than merely wrong. Workaround: delete the session's local metadata file.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] Stale "Pull request status couldn't be checked" on archived sessions whose repo/worktree was deleted