Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(server): opt in to compaction before PR waits #16855

ClosedMartinPTielemans(GitHub profile, opens in a new tab)wants to merge 3 commits intomain fromrefs/pull/16855/headopened View on GitHub

Showing 8 changed files with 31 additions and 3 deletions (loading 5).

x
0 of 8 viewed, 8 left
13 additions and 0 deletionsapps/server/src/mcp/toolkits/pullRequests/handlers.test.tsModified
View file
@@ -253,6 +253,19 @@
}),
​
+ it.effect("passes explicit compaction opt-in to the watch service", () =>
+ Effect.gen(function* () {
+ const harness = yield* makeHarness();
+ yield* harness.call("watch_pull_request", {
+ url: "https://github.com/t3tools/t3code/pull/9",
+ compactBeforeWaiting: true,
+ });
+ expect(yield* Ref.get(harness.commands)).toMatchObject([
+ { type: "thread.pull-request.watch", compactBeforeWaiting: true },
+ ]);
+ }),
+ );
+​
it.effect("refuses to watch a merged pull request and stops an existing watch", () =>
Effect.gen(function* () {
const watch = {
5 additions and 1 deletionapps/server/src/mcp/toolkits/pullRequests/handlers.tsModified
View file
@@ -37,6 +37,7 @@
PullRequestListFailedError,
PullRequestNotOpenError,
type PullRequestTargetInput,
+ type WatchPullRequestInput,
PullRequestWatchFailedError,