[BUG] PR review status shows merged PR on branches with no open PRs
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
- Work on a branch (e.g.
dev) that has previously had PRs created from it (e.g.dev → mainrelease PRs), all now merged - Ensure there are no open PRs with
--head <branch> - Open Claude Code on that branch
- 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)
ghCLI 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
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗