Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): subagents pick up their parent's renamed worktree branch #20079

Mergedmaria-rcksmerged 5 commits intomain fromrefs/pull/20079/headmerged by maria-rcks View on GitHub

Showing 9 changed files with 16 additions and 0 deletions (loading 7).

x
0 of 9 viewed, 9 left
5 additions and 0 deletionsapps/server/src/orchestration-v2/testkit/ProviderReplayHarness.tsModified
View file
@@ -19,6 +19,7 @@
import * as McpProviderSessions from "@t3tools/provider-core/server/McpProviderSessions";
import * as McpSessionRegistryTestkit from "../../mcp/McpSessionRegistry.testkit.ts";
import * as VcsDriverRegistry from "../../vcs/VcsDriverRegistry.ts";
+import * as GitVcsDriver from "../../vcs/GitVcsDriver.ts";
import * as VcsProcess from "../../vcs/VcsProcess.ts";
import * as CheckpointCaptureService from "../CheckpointCaptureService.ts";
import * as CheckpointService from "../CheckpointService.ts";
@@ -335,6 +336,10 @@
layerEventSinkProvided,
IdAllocator.layer,
ThreadCommandExecutor.layer,
+ GitVcsDriver.layer.pipe(
+ Layer.provide(layerServerConfig),
+ Layer.provide(NodeServices.layer),
+ ),
11 additions and 0 deletionsapps/server/src/orchestration-v2/Orchestrator.tsModified
View file
@@ -2539,6 +2539,17 @@
cause: `Thread ${command.threadId} worktree changed before the metadata update could be applied.`,
+ if (
+ command.type === "thread.metadata.update" &&