anthropics / anthropics/claude-code
[BUG] Merge Icon in Claude Coe gets Stuck
- Dominant language
- Python
- Stars
- 145k
- Forks
- 23.1k
- PR merge metrics
- PR metrics pending
Description
### Preflight Checklist
- [x] I have searched [existing issues](https://github.com/anthropics/claude-code/issues?q=is%3Aissue%20state%3Aopen%20label%3Abug) and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
### What's Wrong?
Title: PR status cards get stuck on "merged" — add dismiss / TTL
Bug: The pr-created widget renders a live status card, but once the PR reaches a terminal state (merged/closed) the card sticks with a purple "merged" badge and offers no way to dismiss it. Over a long session these pile up.
Requests, in priority order:
A dismiss (×) control on the card.
A TTL that auto-expires cards after they've been terminal for some window.
Auto-refresh so the state can't go stale in the first place.
### What Should Happen?
It would auto clear after merge or when clicked to exit.
### Error Messages/Logs
```shell
```
### Steps to Reproduce
Title: PR status cards get stuck on "merged" — add dismiss / TTL
Bug: The pr-created widget renders a live status card, but once the PR reaches a terminal state (merged/closed) the card sticks with a purple "merged" badge and offers no way to dismiss it. Over a long session these pile up.
Requests, in priority order:
A dismiss (×) control on the card.
A TTL that auto-expires cards after they've been terminal for some window.
Auto-refresh so the state can't go stale in the first place.
### Claude Model
Opus
### Is this a regression?
Yes, this worked in a previous version
### Last Working Version
_No response_
### Claude Code Version
2.1.132 (Claude Code)
### Platform
Anthropic API
### Operating System
macOS
### Terminal/Shell
iTerm2
### Additional Information
_No response_
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the pr-created widget and the code that tracks PR terminal states in the Claude Code CLI. Reproduce the behavior with a merged or closed PR, then trace how the card is rendered and retained; done means terminal cards can be dismissed or expire, with stale-state handling addressed as the issue scope permits.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- git, github
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100