Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): let agents watch reopened pull requests #15741

ClosedAksharP5(GitHub profile, opens in a new tab)wants to merge 2 commits intomain fromrefs/pull/15741/headopened View on GitHub

Showing 8 changed files with 118 additions and 18 deletions (loading 6).

x
0 of 8 viewed, 8 left
106 additions and 2 deletionsapps/server/src/mcp/toolkits/pullRequests/handlers.test.tsModified
View file
@@ -2,6 +2,7 @@
EnvironmentId,
ProjectId,
ProviderInstanceId,
+ PullRequestOperationError,
ThreadId,
type OrchestrationV2ServerCommand as OrchestrationCommand,
type OrchestrationProjectShell,
@@ -22,6 +23,9 @@
v2PullRequestThread,
} from "../../../orchestration-v2/testkit/pullRequestFixtures.ts";
import * as ProjectService from "../../../project/ProjectService.ts";
+import * as PullRequestService from "../../../pullRequest/PullRequestService.ts";
+import * as PullRequestWatchReactor from "../../../orchestration-v2/PullRequestWatchReactor.ts";
+import * as ProjectionStore from "../../../orchestration-v2/ProjectionStore.ts";
import * as McpInvocationContext from "../../McpInvocationContext.ts";
import { listThreadPullRequests, PullRequestsToolkitHandlersLive } from "./handlers.ts";
import { PullRequestLinkFailedError, PullRequestsToolkit } from "./tools.ts";
@@ -126,6 +130,7 @@
interface HarnessOptions {
readonly thread?: PullRequestTestThread | null;
readonly project?: OrchestrationProjectShell | null;
+ readonly summary?: PullRequestService.PullRequestService["Service"]["summary"];
/** A rejection the orchestrator reports as the dispatch error's cause. */
readonly reject?: (command: OrchestrationCommand) => string | null;
@@ -134,8 +139,24 @@