feat(server): Until PR updates also wakes on comments and pushes
Problem
Until PR updates wakes only on a review decision, a merge conflict or finished checks. A maintainer asking a question on a PR changes none of those, so the thread stays hidden until the 30-day cap. That's the case I opened pingdotgg/t3code#39612 for.
Change
The update trigger now also wakes when the host's updatedAt for an open linked PR lands after the thread's snoozedAt. Hosts move it for comments, reviews and pushes. The narrower review, checks and conflict triggers are unchanged.
What to expect:
- Snapshot-only signal: the only new input is the
updatedAtyour sync snapshot already carries. Stale activity from before the snooze doesn't count. - Noise: the user's own comments, bot reviews and pushes count as activity, so
updategets noisier. That's why it's limited to the broad trigger. - Agent pushes: an agent that's watching the PR and pushes a fix also wakes it. Say if you'd rather suppress
updatedwhile watched, the way finished checks are.
Not included is the optional idea from my comment: keeping a close the snooze woke for out of auto-settle. Your wake clears snoozeUntilPullRequest, so settlement can't tell a PR wake from a manual one without a new field, and your description says auto-settle on close is intended.
Verification
pullRequestSnooze.test.ts: new rows check that a comment after the snooze wakesupdate, one from before it doesn't, andreviewignores it. They fail without the change; 22/22 pass with it.runtimeLayer.test.tsandThreadSettlementService.test.tspass (232/232), and the server typecheck is clean.
If this lands, I'll close pingdotgg/t3code#39612.
Created with Claude Opus 5.5 in Claude Code, running inside T3 Code.
🤖 Generated with Claude Code
Summary by cubic
Makes the Until PR updates snooze wake when the linked PR has any activity, not just review decisions, conflicts, or finished checks. A maintainer asking a question no longer leaves the thread hidden until the 30-day cap.
- The
updatetrigger now also wakes when the PR'supdatedAtlands after the thread'ssnoozedAt, which covers comments, reviews, and pushes. - Only the snapshot's
updatedAtis checked, so stale activity from before the snooze doesn't count. - The narrower
review,checks, andconflicttriggers are unchanged. - Activity is noisy: the user's own comments, bot reviews, and agent pushes wake the thread too, so this added wake only applies to the broad
updatetrigger.