Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): watch_pull_request wakes once more and stops when the checks finish after a failure #25539

Closedaglowienka(GitHub profile, opens in a new tab)wants to merge 20 commits intomain fromrefs/pull/25539/headopened View on GitHub

Showing 9 changed files with 37 additions and 11 deletions (loading 6).

x
0 of 9 viewed, 9 left
1 addition and 1 deletionapps/server/src/mcp/toolkits/pullRequests/tools.tsModified
View file
@@ -384,7 +384,7 @@
​
const WatchPullRequestTool = Tool.make("watch_pull_request", {
description:
- "Watch an open PR for this thread, linking it first if needed. T3 wakes you on failed checks, passed required checks, new comments or reviews, or conflicts. Handle old comments first. Only later ones wake you. After this call, end your turn. The watch stays on after each wake, so do not call this again on a wake. A wake is not a merge decision. Check readiness yourself.",
+ "Watch an open PR for this thread, linking it first if needed. T3 wakes you on failed checks, passed required checks, new comments or reviews, or conflicts. Handle old comments first. Only later ones wake you. After this call, end your turn. Do not watch again after a wake unless it says T3 stopped watching. A wake is not a merge decision. Check readiness yourself.",
parameters: PullRequestTargetInput,
success: WatchPullRequestResult,
failure: PullRequestToolError,
3 additions and 0 deletionsapps/server/src/orchestration-v2/Orchestrator.tsModified
View file
@@ -4043,6 +4043,9 @@
...(existing.endedWatch?.owedChecks !== undefined && {
owedChecks: existing.endedWatch.owedChecks,
+ ...(existing.endedWatch?.finished !== undefined && {
+ finished: existing.endedWatch.finished,
+ }),
...(existing.endedWatch?.checksAwaitedSince !== undefined && {
checksAwaitedSince: existing.endedWatch.checksAwaitedSince,
33 additions and 10 deletionsapps/server/src/orchestration-v2/PullRequestWatchReactor.tsModified
View file
@@ -82,6 +82,7 @@
readonly at: number;
readonly fingerprint: string;