claude-code - 💡(How to fix) Fix [BUG] Desktop app statusline shows stale closed PR that can't be dismissed [1 comments, 2 participants]

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…
GitHub stats
anthropics/claude-code#48527Fetched 2026-04-16 06:57:42
View on GitHub
Comments
1
Participants
2
Timeline
7
Reactions
0
Author
Participants
Timeline (top)
labeled ×4cross-referenced ×2commented ×1

Error Message

Error Messages/Logs

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • 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

  1. 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
  2. Be on the matching branch (master) in Claude Code desktop app
  3. The statusline shows "dev ← master" with CI status and "View PR" button, referencing the stale closed PR
  4. gh pr view from CLI correctly returns no PR for the current branch
  5. Restarting the app does not clear it
  6. 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

extent analysis

TL;DR

The most likely fix is to update the Claude Code desktop app to handle closed PRs with deleted base branches, or apply a workaround to dismiss the stale PR indicator.

Guidance

  • The issue seems to be related to the app's handling of closed PRs with deleted base branches, so checking the app's documentation or GitHub issues for similar problems might be helpful.
  • Verifying the issue by creating a new PR with a similar configuration (closed PR, deleted base branch, and matching headRefName) could help confirm the root cause.
  • As a temporary workaround, trying to update the PR's headRefName to a non-matching branch (if possible) or using a different branch in the Claude Code desktop app might dismiss the stale PR indicator.
  • Checking the GitHub API documentation for any possible workarounds or updates related to handling deleted branches and closed PRs could provide additional insights.

Example

No code snippet is provided as the issue does not involve code changes.

Notes

The provided information suggests that the issue is specific to the Claude Code desktop app and its handling of closed PRs with deleted base branches. Without more information about the app's internal workings or access to its codebase, providing a definitive fix is challenging.

Recommendation

Apply a workaround, as updating the app to handle this specific case might not be immediately possible, and a workaround could provide a temporary solution until the app is updated.

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] Desktop app statusline shows stale closed PR that can't be dismissed [1 comments, 2 participants]