From 33ecaa65e46b93e2f021993b80fec46699f53b05 Mon Sep 17 00:00:00 2001 From: kumarabhirup Date: Sun, 15 Feb 2026 15:36:33 -0800 Subject: [PATCH] Gateway: auto-open Next.js web app on start/restart/onboard, remove TUI/Web hatch prompt --- src/wizard/onboarding.finalize.ts | 13 ------------- 1 file changed, 13 deletions(-) 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}`,