Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): scheduled tasks start from the default branch, not always main #27983

Mergedtuanvumaihuynh(GitHub profile, opens in a new tab)merged 4 commits intomain fromrefs/pull/27983/headmerged by maria-rcks View on GitHub

Showing 2 changed files with 213 additions and 0 deletions (loading 1).

x
0 of 2 viewed, 2 left
213 additions and 0 deletionsapps/server/src/mcp/OrchestratorMcpService.test.tsModified
View file
@@ -3,6 +3,7 @@
import {
CommandId,
EnvironmentId,
+ GitCommandError,
MessageId,
NodeId,
ORCHESTRATOR_MCP_RUNNING_TASK_NEXT,
@@ -2426,6 +2427,218 @@
+​
+ describe("the base branch of an unbound scheduled task", () => {
+ const projectId = ProjectId.make("project:scheduled-base");
+ const workspaceRoot = "/repo/scheduled-base";
+ const existing: ScheduledTask = {
+ id: ScheduledTaskId.make("scheduled-task:base"),
+ title: "Nightly",
+ prompt: "Check the build",
+ enabled: true,
+ schedule: { type: "interval", everyMs: 3_600_000 },
+ projectId,
+ threadId: null,
+ workspaceStrategy: { type: "root" },
+ modelSelection: { instanceId: ProviderInstanceId.make("codex"), model: "gpt-5" },
+ runtimeMode: "approval-required",
+ interactionMode: "default",
+ createdBy: "agent",