Skip to content

Commit 60bd0f2

Browse files
committed
fix(onboard): keep activation flip net neutral
Signed-off-by: Aaron Erickson <aerickson@nvidia.com>
1 parent 1b92e47 commit 60bd0f2

1 file changed

Lines changed: 2 additions & 11 deletions

File tree

src/lib/onboard.ts

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1616,17 +1616,8 @@ async function createSandboxWithBaseImageResolution(
16161616
const envMessagingState = messagingChannelSetup.MessagingHostStateApplier.readPlanStateFromEnv();
16171617
const plannedMessagingState =
16181618
envMessagingState?.plan.sandboxName === sandboxName ? envMessagingState : undefined;
1619-
const portableLifecycle = sandboxGpuCreateFlow.resolvePortableLifecycleMode(agent);
1620-
const activateStockManagedRuntime = managedWorkloadOnboard.shouldActivateStockManagedRuntime({
1621-
portableLifecycle,
1622-
agentName: requestedAgentName,
1623-
});
1624-
const managedWorkloadRuntime = managedWorkloadOnboard.createManagedWorkloadOnboardRuntime({ computePlan, managedWorkloadRebuild, tempManagedRuntime: tempManagedRuntime || activateStockManagedRuntime, tempManagedRuntimeCatalog, agentName: requestedAgentName, legacyDockerfilePath, customDockerfilePath: fromDockerfile ?? (preparedBuildContext ? preparedBuildContext.stagedDockerfile : null), rootDir: ROOT, model, provider, preferredInferenceApi, endpointUrl: createIntent?.endpointUrl ?? null, startupProfile: { chatUiUrl, effectiveDashboardPort: effectivePort, manageDashboard, dashboardBindAddress: process.env.NEMOCLAW_DASHBOARD_BIND, wslExposure: requestedAgentName === "openclaw" && isWsl(), hermesDashboardState, webSearch: webSearchConfig, toolDisclosure: effectiveToolDisclosure, hermesToolGateways, messagingPlan: plannedMessagingState?.plan ?? null, dcodeAutoApprovalMode: dcodeAutoApprovalPlan.mode, observabilityEnabled: createIntent?.observabilityEnabled === true, environment: process.env }, note, fallbackBuildEstimate: () => process.env.NEMOCLAW_IGNORE_RUNTIME_RESOURCES === "1" ? null : formatSandboxBuildEstimateNote(assessHost()) }, { resolveAgentInferenceApi: inferenceConfig.resolveAgentInferenceApi, getSandboxInferenceConfig });
1625-
const ensurePreparedSandboxWorkload = () =>
1626-
managedWorkloadOnboard.prepareSandboxWorkloadForPortableLifecycle(
1627-
managedWorkloadRuntime,
1628-
portableLifecycle,
1629-
);
1619+
const managedWorkloadRuntime = managedWorkloadOnboard.createManagedWorkloadOnboardRuntime({ computePlan, managedWorkloadRebuild, tempManagedRuntime: tempManagedRuntime || managedWorkloadOnboard.shouldActivateStockManagedRuntime({ portableLifecycle: sandboxGpuCreateFlow.resolvePortableLifecycleMode(agent), agentName: requestedAgentName }), tempManagedRuntimeCatalog, agentName: requestedAgentName, legacyDockerfilePath, customDockerfilePath: fromDockerfile ?? (preparedBuildContext ? preparedBuildContext.stagedDockerfile : null), rootDir: ROOT, model, provider, preferredInferenceApi, endpointUrl: createIntent?.endpointUrl ?? null, startupProfile: { chatUiUrl, effectiveDashboardPort: effectivePort, manageDashboard, dashboardBindAddress: process.env.NEMOCLAW_DASHBOARD_BIND, wslExposure: requestedAgentName === "openclaw" && isWsl(), hermesDashboardState, webSearch: webSearchConfig, toolDisclosure: effectiveToolDisclosure, hermesToolGateways, messagingPlan: plannedMessagingState?.plan ?? null, dcodeAutoApprovalMode: dcodeAutoApprovalPlan.mode, observabilityEnabled: createIntent?.observabilityEnabled === true, environment: process.env }, note, fallbackBuildEstimate: () => process.env.NEMOCLAW_IGNORE_RUNTIME_RESOURCES === "1" ? null : formatSandboxBuildEstimateNote(assessHost()) }, { resolveAgentInferenceApi: inferenceConfig.resolveAgentInferenceApi, getSandboxInferenceConfig });
1620+
const ensurePreparedSandboxWorkload = () => managedWorkloadOnboard.prepareSandboxWorkloadForPortableLifecycle(managedWorkloadRuntime, sandboxGpuCreateFlow.resolvePortableLifecycleMode(agent));
16301621
// #4614: capture default AFTER prune so a stale registry row isn't read as a live sandbox.
16311622
const sandboxWasLiveDefault = liveExists && wasSandboxDefault(registry.getDefault(), sandboxName);
16321623

0 commit comments

Comments
 (0)