Skip to content
Source
Sign inSign up
pingdotgg/t3code

PR watch wakes the thread on review-bot status comments that need no action; add wake filters #38584

ClosedDylanLIiii(GitHub profile, opens in a new tab) opened this issue 1 comment

What happened

watch_pull_request wakes the thread on "failed checks, passed required checks, new comments or reviews, or conflicts". Review bots post status comments that carry no verdict (for example "started reviewing commit X", or an edited progress summary), and each one wakes the watching thread. The agent re-reads state, finds nothing to act on, and ends the turn.

Observed on 0.1.10-nightly.20261116.4761, 2026-11-18, in threads that each watch one or two PRs reviewed by two bots:

  • One thread ended 10+ consecutive wake turns on a single PR with "not mergeable yet, the bot has just started reviewing". Every push from the worker restarted the cycle.
  • A second thread did the same for 8 turns on another PR.

Each of those turns reloads the thread's context, so the cost is far larger than the comment that caused it.

Expected

A way to make a watch wake only on events the agent can act on. Any of these would do:

  1. A wakeOn option on watch_pull_request, e.g. ["checks_failed", "required_checks_passed", "review_submitted", "inline_comment", "conflict"], with issue-level comments opt-in.
  2. An option to ignore comments from named accounts (or all bot accounts) unless they are a submitted review or an inline review comment.
  3. Coalescing: events that arrive while a wake turn is running, or within a short window, are delivered as one wake that lists them.

Related: #25764 (delegated children cannot watch their own PR), which is why parent threads carry these watches in the first place.

  1. tanstack-source added labelsfeature

  2. Thanks for writing this up. It asks for new behaviour rather than reporting a defect, so it does not belong in the bug tracker and I'm closing it as not planned here. Feature ideas are discussed in Discussions: please post it there.

  3. juliusmarminge closed this

Sign in to join this conversation.