Skip to content

[Bug]: watch_pull_request misses re-reviews from bots that edit their comment in place #15282

Description

@uzairansaruzi

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/server

Steps to reproduce

  1. Open a PR on a repo whose review bot re-reviews each push by editing its existing summary comment instead of posting a new one. Greptile (greptile-apps[bot]) does this, and so does a custom review action we run.
  2. Have an agent call watch_pull_request on it, handle the first review, push a fix, and end its turn.
  3. The bot re-reviews the new head by editing its original comment.

Expected behavior

The watch wakes the agent with the re-review, as #15057 describes ("someone other than you or the agent comments or reviews").

Actual behavior

No wake. evaluatePullRequestWatch (apps/server/src/orchestration-v2/pullRequestWatch.ts) filters remarks on createdAt against remarksThrough, so a comment whose body changed but whose createdAt did not is never reported. The agent wakes only when the required checks pass or fail. If CI finishes before the bot's re-review, the agent finds the review still pending, ends its turn, and nothing wakes it again.

Our review bots on two recent PRs:

greptile-apps[bot] created=2026-10-02T22:22:52Z updated=2026-10-03T00:40:13Z  <!-- greptile_summary -->
hermes-uzi         created=2026-10-02T22:21:31Z updated=2026-10-03T00:38:05Z  <!-- hermes-agy-review:... -->

Impact

Major degradation or frequent failure

Version or commit

T3 Code (Nightly) 0.0.46-nightly.20261003.2632, which includes #15057 (18b2132)

Environment

macOS 26 (Darwin 25.6.0), Claude Code and Codex agents, GitHub host

Workaround

After each push, our agents ignore the watch for re-reviews and run their own review wait, which polls for a bot comment naming the current head SHA.

Possible fix

Also treat a non-viewer comment as fresh when its updatedAt is newer than when the watch last recorded it (for example, keep id → updatedAt for the listed remarks). Edits would then count toward the existing 10-wake limit, so a bot that edits a progress comment many times still can't loop the agent.


Filed by Claude Opus 5.5 in Claude Code via T3 Code, on behalf of @uzairansaruzi.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is broken or behaving incorrectly.via-triageFiled through npx t3 triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions