Skip to content
Source
Sign inSign up
pingdotgg/t3code

Refresh local git status on turn completion #1821

Mergedjuliusmarmingemerged 2 commits intomain fromrefs/pull/1821/headmerged by juliusmarminge View on GitHub

Showing 6 changed files with 61 additions and 4 deletions (loading 3).

x
0 of 6 viewed, 6 left
17 additions and 0 deletionsapps/server/integration/OrchestrationEngineHarness.integration.tsModified
View file
@@ -26,6 +26,7 @@
import { CheckpointStore } from "../src/checkpointing/Services/CheckpointStore.ts";
import { GitCoreLive } from "../src/git/Layers/GitCore.ts";
import { GitCore, type GitCoreShape } from "../src/git/Services/GitCore.ts";
+import { GitStatusBroadcaster } from "../src/git/Services/GitStatusBroadcaster.ts";
import { TextGeneration, type TextGenerationShape } from "../src/git/Services/TextGeneration.ts";
import { OrchestrationCommandReceiptRepositoryLive } from "../src/persistence/Layers/OrchestrationCommandReceipts.ts";
import { OrchestrationEventStoreLive } from "../src/persistence/Layers/OrchestrationEventStore.ts";
@@ -321,6 +322,22 @@
const checkpointReactorLayer = CheckpointReactorLive.pipe(
Layer.provideMerge(runtimeServicesLayer),
+ Layer.provideMerge(
+ Layer.succeed(GitStatusBroadcaster, {
+ getStatus: () => Effect.die("getStatus should not be called in this test"),
+ refreshLocalStatus: () =>
+ Effect.succeed({
+ isRepo: true,
+ hasOriginRemote: false,
+ isDefaultBranch: true,
+ branch: "main",
+ hasWorkingTreeChanges: false,
+ workingTree: { files: [], insertions: 0, deletions: 0 },
+ }),
+ refreshStatus: () => Effect.die("refreshStatus should not be called in this test"),
+ streamStatus: () => Stream.empty,
+ }),
+ ),
Layer.provideMerge(