diff --git a/src/wizard/onboarding.finalize.ts b/src/wizard/onboarding.finalize.ts index 80f5f334925..7f9d935ba6c 100644 --- a/src/wizard/onboarding.finalize.ts +++ b/src/wizard/onboarding.finalize.ts @@ -1,11 +1,8 @@ -import fs from "node:fs/promises"; -import path from "node:path"; import type { OnboardOptions } from "../commands/onboard-types.js"; import type { OpenClawConfig } from "../config/config.js"; import type { RuntimeEnv } from "../runtime.js"; import type { GatewayWizardSettings, WizardFlow } from "./onboarding.types.js"; import type { WizardPrompter } from "./prompts.js"; -import { DEFAULT_BOOTSTRAP_FILENAME } from "../agents/workspace.js"; import { formatCliCommand } from "../cli/command-format.js"; import { buildGatewayInstallPlan, @@ -29,7 +26,6 @@ import { resolveGatewayService } from "../daemon/service.js"; import { isSystemdUserServiceAvailable } from "../daemon/systemd.js"; import { DEFAULT_WEB_APP_PORT, ensureWebAppBuilt } from "../gateway/server-web-app.js"; import { ensureControlUiAssetsBuilt } from "../infra/control-ui-assets.js"; -import { resolveUserPath } from "../utils.js"; import { setupOnboardingShellCompletion } from "./onboarding.completion.js"; type FinalizeOnboardingOptions = { @@ -272,15 +268,6 @@ export async function finalizeOnboardingWizard( const gatewayStatusLine = gatewayProbe.ok ? "Gateway: reachable" : `Gateway: not detected${gatewayProbe.detail ? ` (${gatewayProbe.detail})` : ""}`; - const bootstrapPath = path.join( - resolveUserPath(options.workspaceDir), - DEFAULT_BOOTSTRAP_FILENAME, - ); - const hasBootstrap = await fs - .access(bootstrapPath) - .then(() => true) - .catch(() => false); - await prompter.note( [ `Web UI: ${links.httpUrl}`,