Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): agent-created schedules in projects without Git no longer fail every run #18583

Closedghostwants to merge 5 commits intomain fromrefs/pull/18583/headopened View on GitHub

Showing 2 changed files with 191 additions and 11 deletions.

x
0 of 2 viewed, 2 left
158 additions and 0 deletionsapps/server/src/mcp/OrchestratorMcpService.test.tsModified
View file
@@ -3,7 +3,9 @@
import {
CommandId,
EnvironmentId,
+ GitCommandError,
MessageId,
+ type OrchestratorMcpFailure,
NodeId,
ORCHESTRATOR_MCP_RUNNING_TASK_NEXT,
type OrchestratorMcpCapabilitiesResult,
@@ -26,6 +28,7 @@
import * as Layer from "effect/Layer";
import * as Ref from "effect/Ref";
import * as Schema from "effect/Schema";
+import { ChildProcessSpawner } from "effect/process";
​
import { CodexProviderCapabilitiesV2 } from "../orchestration-v2/Adapters/CodexAdapterV2.ts";
import * as CommandReceiptStore from "../orchestration-v2/CommandReceiptStore.ts";
@@ -2563,6 +2566,161 @@
+ describe("scheduled tasks that start a fresh thread per run", () => {
+ const projectId = ProjectId.make("project:fresh-runs");
+ const client: McpInvocationScope = {
+ environmentId: EnvironmentId.make("environment:fresh-runs"),
+ requestNamespace: "client:fresh-runs",
+ thread: undefined,