fix(workspaces): share routine branch variable name

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
DottaandPaperclip committed 2026-04-20 10:00:15 -05:00
1 parent 71f22e6270
commit 67cf147677
5 files changed
+13 -4

No files matched your search

+1 -1
View File
@@ -28,6 +28,7 @@ import type {
UpdateRoutineTrigger,
} from "@paperclipai/shared";
import {
WORKSPACE_BRANCH_ROUTINE_VARIABLE,
getBuiltinRoutineVariableValues,
extractRoutineVariableNames,
interpolateRoutineTemplate,
@@ -49,7 +50,6 @@ const OPEN_ISSUE_STATUSES = ["backlog", "todo", "in_progress", "in_review", "blo
const LIVE_HEARTBEAT_RUN_STATUSES = ["queued", "running"];
const TERMINAL_ISSUE_STATUSES = new Set(["done", "cancelled"]);
const MAX_CATCH_UP_RUNS = 25;
const WORKSPACE_BRANCH_ROUTINE_VARIABLE = "workspaceBranch";
const WEEKDAY_INDEX: Record<string, number> = {
Sun: 0,
Mon: 1,
+2
View File
@@ -2272,6 +2272,8 @@ export function buildWorkspaceRuntimeDesiredStatePatch(input: {
const nextState: WorkspaceRuntimeDesiredState = input.action === "stop" ? "stopped" : "running";
const applyActionState = (index: number) => {
const key = String(index);
// Manual services are intentionally left under operator control even when
// an API action targets that individual service.
if (nextServiceStates[key] === "manual") return;
nextServiceStates[key] = nextState;
};