[BUG] Desktop app statusline shows stale closed PR that can't be dismissed
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
The Claude Code desktop app statusline persistently shows a closed PR indicator (dev ← master with CI status and "View PR" button) that references a stale, closed GitHub PR (#1349 in my repo).
Details:
The PR (talentprotocol/talent-api#1349) is closed, targeting a dev branch that no longer exists
The PR's headRefName is master, which is my current and default branch — this is likely why it's being matched
gh pr view from CLI correctly returns nothing for the current branch
The PR cannot be deleted, reopened, or edited via GitHub API (base branch was deleted)
Restarting the app does not clear it
/clear does not clear it
Environment:
Claude Code desktop app (macOS)
Model: Opus 4.6
Repo default branch: master
Current branch: master
Screenshot attached
<img width="1060" height="213" alt="Image" src="https://github.com/user-attachments/assets/5bee2d39-11e4-4f93-95c2-6f767da0fa6c" />
What Should Happen?
Expected behavior: Closed PRs should not appear in the statusline, or there should be a way to dismiss them.
Error Messages/Logs
Steps to Reproduce
- Have a closed PR in your repo where the head branch matches your current branch (e.g., PR #1349 with headRefName: "master") and the base branch ("dev") has been deleted
- Be on the matching branch (master) in Claude Code desktop app
- The statusline shows "dev ← master" with CI status and "View PR" button, referencing the stale closed PR
gh pr viewfrom CLI correctly returns no PR for the current branch- Restarting the app does not clear it
- The PR cannot be deleted, reopened, or edited via GitHub API (GitHub returns "state cannot be changed. The dev branch has been deleted.")
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.109
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗