Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): run non-Git scheduled tasks in the project folder #33594

Closedsaphid(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/33594/headopened View on GitHub

Showing 2 changed files with 70 additions and 2 deletions.

x
0 of 2 viewed, 2 left
52 additions and 1 deletionapps/server/src/mcp/OrchestratorMcpService.test.tsModified
View file
@@ -37,6 +37,7 @@
import * as Ref from "effect/Ref";
import * as Schema from "effect/Schema";
import * as Stream from "effect/Stream";
+import { ChildProcessSpawner } from "effect/process";
​
import { CodexProviderCapabilitiesV2 } from "../orchestration-v2/Adapters/CodexAdapterV2.ts";
import * as CommandReceiptStore from "../orchestration-v2/CommandReceiptStore.ts";
@@ -2793,7 +2794,19 @@
OrchestratorMcpService.layer.pipe(
Layer.provide(Layer.mock(ThreadLaunchService.ThreadLaunchService)({})),
- Layer.provide(Layer.mock(GitVcsDriver.GitVcsDriver)(git)),
+ Layer.provide(
+ Layer.mock(GitVcsDriver.GitVcsDriver)({
+ execute: () =>
+ Effect.succeed({
+ stdout: ".git\n",
+ stderr: "",
+ exitCode: ChildProcessSpawner.ExitCode(0),
+ stdoutTruncated: false,
+ stderrTruncated: false,
+ }),
+ ...git,
+ }),
+ ),
Layer.provide(
Layer.mergeAll(
NodeServices.layer,