| … | … | @@ -1,31 +1,89 @@ | |
| 51 | + | export function pullRequestChipStates(links: ReadonlyArray<ThreadPullRequestLink>) { | |
| 52 | + | const newest = new Map<string, NonNullable<ThreadPullRequestLink["snapshot"]>>(); | |
| 53 | + | for (const link of links) { | |
| 54 | + | if (link.snapshot === null) continue; | |
🟡 Medium lib/enrichedLinkPresentation.ts:54
An unlinked stack PR continues to show its old status chip because pullRequestChipStates includes its preserved snapshot after its source changes to stack-dismissed; that snapshot can also supersede a still-linked PR's status. Skip stack-dismissed links before selecting the newest snapshot.
| 1 | if (link.snapshot === null || link.source === "stack-dismissed") continue; |
🤖 Copy this AI Prompt to have your agent fix this:
| 1 | In file @apps/mobile/src/lib/enrichedLinkPresentation.ts around line 54: |
| 2 | |
| 3 | An unlinked stack PR continues to show its old status chip because `pullRequestChipStates` includes its preserved snapshot after its source changes to `stack-dismissed`; that snapshot can also supersede a still-linked PR's status. Skip `stack-dismissed` links before selecting the newest snapshot. |
Note
🤖 Claude Opus 5.5 on behalf of Oliver
Agreed, fixed in c0c504412b. pullRequestChipStates now reads links through the shared visibleThreadPullRequests, which drops stack-dismissed tombstones the same way the rest of the client does. A new test checks a newer tombstoned snapshot neither overrides a still-linked PR's state nor produces a state on its own.
Sorry, I'm unable to act on this request because you do not have permissions within this repository.