From 2ffd41662438f498509a967f2e2d57f8459a6cac Mon Sep 17 00:00:00 2001 From: Dotta Date: Mon, 20 Jul 2026 13:57:16 +0000 Subject: [PATCH] refactor(cli): reuse quarantine error constant Co-Authored-By: Paperclip --- cli/src/commands/worktree.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cli/src/commands/worktree.ts b/cli/src/commands/worktree.ts index 92a9fe03c8d..5efcea5db2c 100644 --- a/cli/src/commands/worktree.ts +++ b/cli/src/commands/worktree.ts @@ -68,6 +68,7 @@ import { loadWithoutEmbeddedPostgresExitHooks, prepareEmbeddedPostgresNativeRuntime, } from "@paperclipai/db"; +import { WORKTREE_SEED_QUARANTINE_ERROR_CODE } from "@paperclipai/shared"; import type { Command } from "commander"; import { ensureAgentJwtSecret, loadPaperclipEnvFile, mergePaperclipEnvEntries, readPaperclipEnvEntries, resolvePaperclipEnvFile } from "../config/env.js"; import { expandHomePrefix } from "../config/home.js"; @@ -1352,7 +1353,7 @@ export async function quarantineSeededWorktreeExecutionState( .update(heartbeatRuns) .set({ status: "cancelled", - errorCode: "worktree_seed_quarantine", + errorCode: WORKTREE_SEED_QUARANTINE_ERROR_CODE, processPid: null, processGroupId: null, scheduledRetryAt: null,