From c8c19dd5ba8e19231e867f6f29c178dd0c466cc8 Mon Sep 17 00:00:00 2001 From: Brace Sproul Date: Thu, 19 Jun 2025 11:55:05 -0700 Subject: [PATCH] fix: Naming nits to init sandbox (#253) * fix: Naming nits to init sandbox * cr --- .../src/graphs/shared/initialize-sandbox.ts | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/apps/open-swe/src/graphs/shared/initialize-sandbox.ts b/apps/open-swe/src/graphs/shared/initialize-sandbox.ts index 7e234b44..eb0cbe87 100644 --- a/apps/open-swe/src/graphs/shared/initialize-sandbox.ts +++ b/apps/open-swe/src/graphs/shared/initialize-sandbox.ts @@ -80,7 +80,7 @@ export async function initializeSandbox( nodeId: INITIALIZE_NODE_ID, createdAt: new Date().toISOString(), actionId: uuidv4(), - action: "Resuming Sandbox", + action: "Resuming sandbox", data: { status: "skipped", branch: branchName, @@ -111,7 +111,7 @@ export async function initializeSandbox( nodeId: INITIALIZE_NODE_ID, createdAt: new Date().toISOString(), actionId: resumeSandboxActionId, - action: "Resuming Sandbox", + action: "Resuming sandbox", data: { status: "pending", sandboxSessionId, @@ -145,11 +145,7 @@ export async function initializeSandbox( existingSandbox, ); if (!pullChangesRes || pullChangesRes.exitCode !== 0) { - emitStepEvent( - basePullLatestChangesAction, - "error", - "Failed to pull latest changes. Please check your repository connection.", - ); + emitStepEvent(basePullLatestChangesAction, "skipped"); throw new Error("Failed to pull latest changes."); } emitStepEvent(basePullLatestChangesAction, "success"); @@ -187,19 +183,19 @@ export async function initializeSandbox( } catch { emitStepEvent( baseResumeSandboxAction, - "error", - "Failed to resume sandbox. A new environment will be created.", + "skipped", + "Unable to resume sandbox. A new environment will be created.", ); } } - // Creating Sandbox + // Creating sandbox const createSandboxActionId = uuidv4(); const baseCreateSandboxAction: CustomNodeEvent = { nodeId: INITIALIZE_NODE_ID, createdAt: new Date().toISOString(), actionId: createSandboxActionId, - action: "Creating Sandbox", + action: "Creating sandbox", data: { status: "pending", sandboxSessionId: null,