feat(server): Until PR updates also wakes on comments and pushes

RE
11d ago
+26-6

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 updatedAt your 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 update gets 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 updated while 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 wakes update, one from before it doesn't, and review ignores it. They fail without the change; 22/22 pass with it.
  • runtimeLayer.test.ts and ThreadSettlementService.test.ts pass (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 update trigger now also wakes when the PR's updatedAt lands after the thread's snoozedAt, which covers comments, reviews, and pushes.
  • Only the snapshot's updatedAt is checked, so stale activity from before the snooze doesn't count.
  • The narrower review, checks, and conflict triggers 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 update trigger.