The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 23, 03:00 UTC
test(server): a fork that stops its own PR watch keeps it as its ended watch (#21309)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Julius Marminge committed
Oct 18, 2026 at 14:08 UTC
e57e6295cf7eecda0a51e3c0f126fc06dbb8be19
1 file changed
+6
-1
apps/server/src/orchestration-v2/ThreadFork.execution.test.ts
+6
-1
@@ -192,7 +192,12 @@ it.effect("a persisted fork leaves PR watching with its parent until explicitly
192
watching: false,
193
});
194
const stoppedFork = yield* orchestrator.getThreadShell(targetThreadId);
195
- assert.deepEqual(stoppedFork?.pullRequests, fork.pullRequests);
195
+ const [forkLink] = fork.pullRequests ?? [];
196
+ assert.isDefined(forkLink);
197
+ // The fork remembers its own watch, never the parent's, so watching again resumes from it.
198
+ assert.deepEqual(stoppedFork?.pullRequests, [
199
+ { ...forkLink, endedWatch: watchingFork.pullRequests[0].watch },
200
+ ]);
201
assert.deepEqual(stoppedFork?.pendingBackgroundTasks, []);
202
assert.deepEqual(yield* orchestrator.getThreadShell(sourceThreadId), parentBefore);
203
}).pipe(Effect.provide(forkCases[0]!.layer)),