Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: watch_pull_request never wakes for remarks from the viewer's own GitHub account, so a shared account hides every review #24668

Openoffchan42(GitHub profile, opens in a new tab) opened this issue 2 comments

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. In thread A, call watch_pull_request on an open GitHub PR.
  2. From another machine or another agent signed in to the same GitHub account as T3, post a comment or review on that PR.

Expected behavior

Thread A wakes with the new comment. A watch that cannot see some remarks says so when it starts, so the thread can choose another way to wait.

Actual behavior

Thread A never wakes. pullRequestWatch.ts (lines 113–121 at eabcfa2) drops every remark whose author equals the viewer:

const own = (detail.viewer ?? detail.author?.login)?.toLowerCase();
// ...
remark.author?.login.toLowerCase() !== own

That filter makes sense when the viewer's remarks are the thread's own. It fails when one GitHub account is shared: in our setup every agent session and a second machine that reviews PRs post as the same account, so the watch can never see a review. The thread reported that it was watching while the review it waited for had already arrived. We worked around it with a polling script.

Impact

Minor bug or occasional failure

Version or commit

T3 Code 0.1.3-nightly.20261024.3643; source read at eabcfa2 (2026-10-25)

Environment

Windows 11 x64; reviews posted from a Mac signed in to the same GitHub account

Workaround

Poll the PR's issue comments, reviews and review comments directly, filtering by time instead of author.

  1. Same here (2026-11-05 to 11-07, Claude thread, callstack/agent-device). The reviewer agent and the T3 thread both post as the same GitHub account. Every bot comment (github-actions, cubic, Apex Sentinel) and every check result woke the watched thread. None of the reviewer's comments did, on 3 PRs (callstack/agent-device#4246, #4276, #4300). The thread saw them only when the user asked it to look.

    A related gap: applying a label (we use ready-for-human as the done signal) and merging don't wake the thread either. So a watch whose goal is a label never settles until the user pings it (merge is covered by #25160).

  2. tanstack-source added labelsbug

  3. Same root cause on Azure DevOps (found during a t3 triage session).

    Setup: an automated review system run by T3 scheduled tasks. A coding thread opens the PR and calls watch_pull_request. A separate scheduled "PR Review" thread leaves review comments on the PR, and the user adds comments by hand. All of them post under the same Azure DevOps identity that the T3 server's az CLI uses, and that identity is also the PR author.

    Observed: pushes and build/policy results wake the watching thread. Comments never do.

    Evidence (T3 Code 0.1.13, Windows 11, desktop-managed local server):

    • On three watched PRs, all 75 non-system comments posted after the watches started come from that one identity (file threads and general threads).
    • The comment reads succeed: all 75 AzureDevOpsPullRequestCli.listThreads spans in the server trace end in Success. So readRemarks returns the comments, and evaluatePullRequestWatch then drops them at remark.author?.login.toLowerCase() !== own. In Azure DevOps, own resolves to the az identity, or to the PR author as a fallback, and here both are that same identity.
    • Of 129 Azure DevOps watches in the local database, 5 ever moved remarksThrough past startedAt. In every other watch, every comment was filtered out.
    • At v0.1.13: apps/server/src/orchestration-v2/pullRequestWatch.ts:222-231. The same filter is still on main (around lines 227-235).

    Impact on Azure DevOps: teams there commonly run automation under the developer's own identity or PAT. When that happens, watch_pull_request cannot be used to wait for review feedback at all, and the watch still reports that it is watching. Either of two changes would help: keep comments by the same identity that the thread itself did not write, for example by matching on comment IDs the thread created, or say when a watch starts that comments by the viewer won't wake it.

    Workaround: post the reviewer automation's comments under a separate Azure DevOps identity. Comments the user writes by hand still won't wake the thread.

    Produced by Claude Code (Claude Opus 5.5) via t3 triage.

Sign in to join this conversation.