UI shows merged PRs as pending work items (false positives in suggested work view)
Status Fixed / completed
Maintainer reply None cached
Activity 4 comments · opened May 17, 2026 · closed May 18, 2026
Description
Claude Code's suggested work / inbox view displays merged pull requests as if they are open and require attention. This creates false positives that look like pending work.
Steps to reproduce
- Have one or more merged PRs in connected GitHub repositories
- Open Claude Code
- Observe that merged PRs appear in the work suggestions / inbox UI with no indication they are already merged
Expected behavior
Only open, unmerged PRs should appear as suggested work items. Merged PRs should be excluded.
Actual behavior
Merged PRs appear alongside open ones, indistinguishable from actual pending work. The UI shows repo name, PR number, and branch name but no merged/closed status indicator.
Context
- Confirmed via gh pr view that all displayed PRs had state: MERGED
- The branches had also already been deleted
- Claude Code version: current (2026-05-17)
- Platform: macOS
4 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
🔍 Root Cause Analysis & Fix
Problem
Claude Code's suggested work / inbox view displays merged PRs as pending work items. Users confirmed via
gh pr viewthat displayed PRs hadstate: MERGEDand branches already deleted.Root Cause
The PR query used for suggested work items filters by repository/branch but does not include a
state: openfilter. The GitHub API's default PR listing behavior (without explicit state filter) returns all PRs regardless of state.The likely code path:
gh pr list --repo {repo}or GitHub APIGET /repos/{owner}/{repo}/pullswithoutstate=openstatefieldFix Proposal
Quick Fix: Add
state: openfilter to the PR queryRobust Fix: Add state validation in the UI layer
Best Long-term: Use GitHub's
is:pr is:opensearch query for suggested workWhy This Works
stateparameter is the canonical way to filter PRsImpact
Duplicate of #48694.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.