Skip to content

[Bug]: PR watching misses replies after the first 10 comments in a review thread #15419

Description

@eimexdev

Before submitting

  • Searched existing issues and did not find a duplicate.
  • Included enough detail to investigate the problem.

Area

apps/server

Steps to reproduce

Source-derived reproduction steps; not yet verified against a live PR:

  1. Open a GitHub PR with an inline review thread containing 10 comments.
  2. Start watching the PR with watch_pull_request and allow an initial sweep to complete.
  3. From a different GitHub account, add an 11th comment to that same review thread.
  4. Leave the T3 thread active and idle, without changing checks or introducing merge conflicts.
  5. Allow subsequent watch sweeps to run.

Expected behavior

The new reply wakes the agent once, just like replies within the first 10 comments.

Actual behavior

The watcher never sees the reply and does not wake the agent.

The initial GitHub activity query requests comments(first: 10) for each review thread. It returns pagination cursors, but PullRequestWatchReactor evaluates only the initial activity response and never follows those cursors. Every sweep therefore reads the same first 10 comments.

This limit applies per inline review thread, not across the entire PR.

Impact

Minor bug or occasional failure.

Feedback in longer review discussions can silently go unnoticed while the PR remains marked as watched.

Version or commit

main at 2a455570e6ee70a59241c30126b50c7df1696a6a, following PR #15057.

Environment

GitHub PR monitoring through Orchestrator V2. Investigated by source inspection on Linux with Node.js v24.21.0; no live provider reproduction performed.

Logs or supporting evidence

A focused fix could reuse the existing comment pagination service during watch sweeps while preserving lazy loading in the UI. Incomplete pagination must not advance the comment watermark, which could otherwise cause unread replies to be skipped permanently.

Workaround

Check longer review threads manually on GitHub. Restarting the watch does not remove the pagination limit.

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