Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): subagents no longer inherit parent pull-request links #14918

MergedLucenx9(GitHub profile, opens in a new tab)merged 2 commits intomain fromrefs/pull/14918/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHub

Showing 2 changed files with 92 additions and 0 deletions.

x
0 of 2 viewed, 2 left
90 additions and 0 deletionsapps/server/src/orchestration-v2/Orchestrator.control-reads.test.tsModified
View file
@@ -534,3 +534,93 @@
]);
}).pipe(Effect.provide(testLayer)),
+​
+it.effect("keeps delegated child pull-request links independent of the parent", () =>
+ Effect.gen(function* () {
+ const orchestrator = yield* Orchestrator.OrchestratorV2;
+ const projections = yield* ProjectionStore.ProjectionStoreV2;
+ const parentThreadId = ThreadId.make("thread:parent-pr");
+ const projectId = ProjectId.make("project:parent-pr");
+ const parentPullRequest = {
+ projectId,
+ repository: "pingdotgg/t3code",
+ number: 123,
+ url: "https://github.com/pingdotgg/t3code/pull/123",
+ };
+ yield* orchestrator.dispatch({
+ type: "thread.create",
+ commandId: CommandId.make("create-parent-pr"),
+ threadId: parentThreadId,
+ projectId,
+ title: "Parent with a linked PR",
+ modelSelection,
+ runtimeMode: "full-access",
+ interactionMode: "default",
+ branch: "feature/parent-pr",
+ worktreePath: "/repo-worktree",
+ createdBy: "user",
+ creationSource: "web",