claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

Footer PR indicator stays pinned to the first PR of a long-running session

Open dvshrzn opened this issue 1 month ago • 1 comments

Environment

  • Claude Code 2.1.293, macOS 27.0.1
  • Background session (claude --bg), resumed across restarts, running for about 3 weeks

What happens The prompt footer shows PR #103. That PR was the first one opened from this session, on Sep 20, and it was merged long ago. Since then the same session has opened and merged many other PRs, in the same repository and in others, and the footer has never changed.

Expected The indicator should follow the PR linked to the current work (the most recent one, or the one for the current branch), or disappear once the linked PR is merged or closed.

Steps to reproduce

  1. Start a session and open a PR from it. The footer shows PR #N.
  2. Merge that PR.
  3. In the same session, switch branches and open further PRs over the following days.
  4. The footer still shows PR #N.

Notes

  • Purely cosmetic; nothing else is affected.
  • Survives --resume of the same session.
  • The only workaround found is starting a new conversation, which loses the accumulated context.
  • No setting or command seems to clear or re-link the indicator. If one exists, a pointer would be enough.

dvshrzn avatar Oct 08 '26 00:10 dvshrzn

Still happening on 2.1.296 (macOS 27.0.1). In a long-running session the footer PR badge stays on the first linked PR after I move on to other projects and branches, and the agents view row shows the same number. Starting a new session is the only way to clear it, and that loses the context.

This has been reported several times, and each report was closed automatically for inactivity rather than fixed:

  • #77826: badge on long-lived background jobs stays pinned to the first PR ever linked
  • #85715: badge stuck on the previous PR after switching branches with gh pr checkout
  • #40897 and #60324: requests for a setting to hide the built-in PR badge

Could this get a fix? The badge should follow the most recent linked PR or the current branch, or drop off once the PR is merged or closed. A setting to turn the badge off would also cover it.

stefmf avatar Oct 13 '26 00:10 stefmf