Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): threads settle right after a shell merge of an unlinked PR #24830

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

Showing 2 changed files with 93 additions and 5 deletions.

x
0 of 2 viewed, 2 left
75 additions and 2 deletionsapps/server/src/orchestration-v2/ThreadSettlementService.test.tsModified
View file
@@ -8,6 +8,7 @@
ProviderInstanceId,
RunId,
ThreadId,
+ TurnItemId,
type OrchestrationProjectShell,
type OrchestrationV2AppThread,
type OrchestrationV2Command,
@@ -598,9 +599,12 @@
return next;
});
​
- const branchPullRequest: GitManager.GitManager["Service"]["branchPullRequest"] = (input) =>
+ const branchPullRequest: GitManager.GitManager["Service"]["branchPullRequest"] = (
+ input,
+ lookupOptions,
+ ) =>
Ref.update(branchCalls, (calls) => [...calls, input]).pipe(
- Effect.andThen(options.branchPullRequest?.(input) ?? Effect.succeed(null)),
+ Effect.andThen(options.branchPullRequest?.(input, lookupOptions) ?? Effect.succeed(null)),
const pullRequestSummary: PullRequestService.PullRequestService["Service"]["summary"] = (
input,
@@ -1051,6 +1055,75 @@
+ it.effect("settles an unlinked branch thread its agent merged from a shell, past the cache", () =>