Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): follow branch drift in dedicated worktrees so PRs link to their thread #5159

Mergedt3dotgg(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/5159/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHub

Showing 2 changed files with 124 additions and 17 deletions (loading 1).

x
0 of 2 viewed, 2 left
124 additions and 17 deletionsapps/server/src/orchestration/Layers/CheckpointReactor.test.tsModified
View file
@@ -277,6 +277,9 @@
readonly seedFilesystemCheckpoints?: boolean;
readonly projectWorkspaceRoot?: string;
readonly threadWorktreePath?: string | null;
+ readonly threadBranch?: string | null;
+ readonly secondThreadSharingWorktree?: boolean;
+ readonly localStatusRefName?: string | null;
readonly providerSessionCwd?: string;
readonly providerName?: ProviderDriverKind;
readonly gitStatusRefreshCalls?: Array<string>;
@@ -315,7 +318,8 @@
isRepo: true,
hasPrimaryRemote: false,
isDefaultRef: true,
- refName: "main",
+ refName:
+ options?.localStatusRefName !== undefined ? options.localStatusRefName : "main",
hasWorkingTreeChanges: false,
workingTree: { files: [], insertions: 0, deletions: 0 },
}),
@@ -370,22 +374,45 @@
}),
await Effect.runPromise(
- engine.dispatch({
- type: "thread.create",
- commandId: CommandId.make("cmd-thread-create"),
- threadId: ThreadId.make("thread-1"),