Skip to content

[BUG] Desktop app statusline shows stale closed PR that can't be dismissed #48527

@0xleal

Description

@0xleal

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

Image

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 Keyboard Shortcut Cmd+K Fails to Send Text to Claude Code Extension #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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions