claude-code - 💡(How to fix) Fix Chat-list PR-state icon stale after merge — stays green/Open until manual refresh [1 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#57789Fetched 2026-05-11 03:25:20
View on GitHub
Comments
0
Participants
1
Timeline
5
Reactions
0
Participants
Timeline (top)
labeled ×5

In the chat list sidebar, each session has a small repo-shaped icon that's coloured green when the associated PR is open and purple when the PR is merged (matching GitHub's standard PR-state colours). The icon doesn't update after the PR's state changes on GitHub — a chat whose PR has been merged continues to show as green/Open until something forces a refresh.

Root Cause

In the chat list sidebar, each session has a small repo-shaped icon that's coloured green when the associated PR is open and purple when the PR is merged (matching GitHub's standard PR-state colours). The icon doesn't update after the PR's state changes on GitHub — a chat whose PR has been merged continues to show as green/Open until something forces a refresh.

Fix Action

Workaround

None known. Restart Claude Code? (untested)

RAW_BUFFERClick to expand / collapse

Summary

In the chat list sidebar, each session has a small repo-shaped icon that's coloured green when the associated PR is open and purple when the PR is merged (matching GitHub's standard PR-state colours). The icon doesn't update after the PR's state changes on GitHub — a chat whose PR has been merged continues to show as green/Open until something forces a refresh.

Reproduction

  1. Open a Claude Code chat in a worktree where you've just opened a PR. Icon: green / "Open" — correct.
  2. Merge the PR on github.com (squash, merge, or rebase — happens for all merge types).
  3. Return to the Claude Code chat list. Icon: still green / "Open". Click the chat's "View PR" button on the status row → opens the PR in browser, which clearly shows purple / Merged.

So the truth is on GitHub, the chat list cache is stale.

Expected

The icon should track the PR state with reasonable freshness — either pull on chat-list focus, on tab/app focus, or on an interval.

Workaround

None known. Restart Claude Code? (untested)

Context

  • Discovered on macOS desktop Claude Code, 2026-05-10.
  • Related observation: the icon-state semantics (green = open, purple = merged) don't appear to be documented anywhere — I checked the changelog and docs before posting. Worth documenting alongside the fix.

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