Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(orchestration): persist linked pull requests #8689

Mergedjuliusmarmingemerged 1 commit intot3code/codex-turn-mapping fromrefs/pull/8689/headmerged by juliusmarminge View on GitHub

Showing 2 changed files with 64 additions and 0 deletions.

x
0 of 2 viewed, 2 left
3 additions and 0 deletionsapps/server/src/orchestration-v2/Orchestrator.tsModified
View file
@@ -1712,6 +1712,9 @@
...(command.title === undefined ? {} : { title: command.title }),
...(command.branch === undefined ? {} : { branch: command.branch }),
...(command.worktreePath === undefined ? {} : { worktreePath: command.worktreePath }),
+ ...(command.linkedPullRequest === undefined
+ ? {}
+ : { linkedPullRequest: command.linkedPullRequest }),
// regenerateTitle: true arms the in-flight marker; a landing title
// or an explicit false (generation failed/abandoned) clears it.
...(command.regenerateTitle === true
61 additions and 0 deletionsapps/server/src/orchestration-v2/runtimeLayer.test.tsModified
View file
@@ -1076,6 +1076,67 @@
+ it.effect("persists linked pull requests through projection rebuilds and unlinking", () =>
+ Effect.gen(function* () {
+ const orchestrator = yield* OrchestratorV2;
+ const maintenance = yield* ProjectionMaintenanceV2;
+ const threadId = ThreadId.make("runtime-layer-linked-pull-request-thread");
+ const linkedPullRequest = {
+ projectId: ProjectId.make("runtime-layer-linked-pull-request-project"),
+ repository: "pingdotgg/t3code",
+ number: 8160,
+ url: "https://github.com/pingdotgg/t3code/pull/8160",
+ } as const;
+​