[BUG] PR review status shows merged PR on branches with no open PRs

Resolved 💬 2 comments Opened Feb 12, 2026 by arimxyer Closed Feb 12, 2026

Description

The PR review status feature (documented in Interactive mode > PR review status) displays a stale merged PR in the footer when on a branch that has no open PRs but has historical merged PRs.

The docs state this feature shows a PR link "when working on a branch with an open pull request", but it appears to fall back to showing merged PRs when no open PR exists for the current branch.

Steps to reproduce

  1. Work on a branch (e.g. dev) that has previously had PRs created from it (e.g. dev → main release PRs), all now merged
  2. Ensure there are no open PRs with --head <branch>
  3. Open Claude Code on that branch
  4. Observe the footer shows a merged PR — the most recent PR created from that branch, despite it being merged

Expected behavior

No PR should be shown in the footer when there are no open PRs for the current branch, per the documentation.

Actual behavior

The most recent merged PR from the current branch is displayed in the footer with a purple (merged) underline. This is confusing because:

  • It suggests the PR is still active/relevant
  • There's no setting to dismiss or disable it
  • It persists across sessions indefinitely

Environment

  • Claude Code v2.1.39
  • Linux (Ubuntu-based)
  • gh CLI installed and authenticated

Additional context

Confirmed via gh pr list --head <branch> --state all that the displayed PR is the most recent PR created from the working branch, merged over a month ago. There are no open PRs from this branch. The feature likely needs to filter by --state open when querying for the associated PR.

🤖 Generated with Claude Code

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗