fix(server): threads no longer settle after merging PRs they were asked to merge

A thread asked to merge pull requests would link each one after merging
it. Settle-on-merge then read those links as the thread's own work
shipping and settled it while the agent was still working. A link made
after its pull request had already merged or closed is now a record of
work, not an outcome the thread waits on, so it no longer settles it.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
7fff5d561aZeus-Deus committed on 10/11/2026, 2:30:05 PMparented0f7b9
2 files changedLine totals unavailable