惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

有赞技术团队
有赞技术团队
M
MIT News - Artificial intelligence
Hugging Face - Blog
Hugging Face - Blog
博客园 - 聂微东
量子位
S
SegmentFault 最新的问题
V
Visual Studio Blog
博客园 - 【当耐特】
Apple Machine Learning Research
Apple Machine Learning Research
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
小众软件
小众软件
Stack Overflow Blog
Stack Overflow Blog
Vercel News
Vercel News
D
Docker
J
Java Code Geeks
博客园 - 三生石上(FineUI控件)
博客园 - Franky
Recent Announcements
Recent Announcements
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
MongoDB | Blog
MongoDB | Blog
D
DataBreaches.Net
Y
Y Combinator Blog
云风的 BLOG
云风的 BLOG
V
V2EX

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
refactor: share setup dashboard open flow · openclaw/open...
vincentkoc · 2026-05-30 · via Recent Commits to openclaw:main

@@ -57,6 +57,47 @@ type OnboardSearchModule = typeof import("../commands/onboard-search.js");

5757

let onboardSearchModulePromise: Promise<OnboardSearchModule> | undefined;

5858

const HATCH_TUI_TIMEOUT_MS = 5 * 60 * 1000;

595960+

async function showControlUiDashboardNote(params: {

61+

prompter: WizardPrompter;

62+

settings: GatewayWizardSettings;

63+

authedUrl: string;

64+

controlUiBasePath: string | undefined;

65+

hintToken: string | undefined;

66+

}): Promise<{ opened: boolean }> {

67+

let opened = false;

68+

let openHint: string | undefined;

69+

const browserSupport = await detectBrowserOpenSupport();

70+

if (browserSupport.ok) {

71+

opened = await openUrl(params.authedUrl);

72+

if (!opened) {

73+

openHint = formatControlUiSshHint({

74+

port: params.settings.port,

75+

basePath: params.controlUiBasePath,

76+

token: params.hintToken,

77+

});

78+

}

79+

} else {

80+

openHint = formatControlUiSshHint({

81+

port: params.settings.port,

82+

basePath: params.controlUiBasePath,

83+

token: params.hintToken,

84+

});

85+

}

86+87+

await params.prompter.note(

88+

[

89+

t("wizard.finalize.dashboardLinkWithToken", { url: params.authedUrl }),

90+

opened ? t("wizard.finalize.dashboardOpened") : t("wizard.finalize.dashboardCopyPaste"),

91+

openHint,

92+

]

93+

.filter(Boolean)

94+

.join("\n"),

95+

t("wizard.finalize.dashboardReady"),

96+

);

97+98+

return { opened };

99+

}

100+60101

function getLocalizedGatewayDaemonRuntimeOptions() {

61102

return GATEWAY_DAEMON_RUNTIME_OPTIONS.map((option) => ({

62103

hint:

@@ -433,7 +474,6 @@ export async function finalizeSetupWizard(

433474

);

434475435476

let controlUiOpened = false;

436-

let controlUiOpenHint: string | undefined;

437477

let seededInBackground = false;

438478

let hatchChoice: "tui" | "web" | "later" | null = null;

439479

let launchedTui = false;

@@ -497,41 +537,17 @@ export async function finalizeSetupWizard(

497537

}

498538

launchedTui = true;

499539

} else if (hatchChoice === "web") {

500-

const browserSupport = await detectBrowserOpenSupport();

501-

if (browserSupport.ok) {

502-

controlUiOpened = await openUrl(authedUrl);

503-

if (!controlUiOpened) {

504-

controlUiOpenHint = formatControlUiSshHint({

505-

port: settings.port,

506-

basePath: controlUiBasePath,

507-

token:

508-

settings.authMode === "token" && !suppressGatewayTokenOutput

509-

? settings.gatewayToken

510-

: undefined,

511-

});

512-

}

513-

} else {

514-

controlUiOpenHint = formatControlUiSshHint({

515-

port: settings.port,

516-

basePath: controlUiBasePath,

517-

token:

518-

settings.authMode === "token" && !suppressGatewayTokenOutput

519-

? settings.gatewayToken

520-

: undefined,

521-

});

522-

}

523-

await prompter.note(

524-

[

525-

t("wizard.finalize.dashboardLinkWithToken", { url: authedUrl }),

526-

controlUiOpened

527-

? t("wizard.finalize.dashboardOpened")

528-

: t("wizard.finalize.dashboardCopyPaste"),

529-

controlUiOpenHint,

530-

]

531-

.filter(Boolean)

532-

.join("\n"),

533-

t("wizard.finalize.dashboardReady"),

534-

);

540+

const dashboard = await showControlUiDashboardNote({

541+

prompter,

542+

settings,

543+

authedUrl,

544+

controlUiBasePath,

545+

hintToken:

546+

settings.authMode === "token" && !suppressGatewayTokenOutput

547+

? settings.gatewayToken

548+

: undefined,

549+

});

550+

controlUiOpened = dashboard.opened;

535551

} else {

536552

await prompter.note(

537553

t("wizard.finalize.dashboardWhenReady", {

@@ -561,36 +577,14 @@ export async function finalizeSetupWizard(

561577

!suppressGatewayTokenOutput &&

562578

hatchChoice === null;

563579

if (shouldOpenControlUi) {

564-

const browserSupport = await detectBrowserOpenSupport();

565-

if (browserSupport.ok) {

566-

controlUiOpened = await openUrl(authedUrl);

567-

if (!controlUiOpened) {

568-

controlUiOpenHint = formatControlUiSshHint({

569-

port: settings.port,

570-

basePath: controlUiBasePath,

571-

token: settings.gatewayToken,

572-

});

573-

}

574-

} else {

575-

controlUiOpenHint = formatControlUiSshHint({

576-

port: settings.port,

577-

basePath: controlUiBasePath,

578-

token: settings.gatewayToken,

579-

});

580-

}

581-582-

await prompter.note(

583-

[

584-

t("wizard.finalize.dashboardLinkWithToken", { url: authedUrl }),

585-

controlUiOpened

586-

? t("wizard.finalize.dashboardOpened")

587-

: t("wizard.finalize.dashboardCopyPaste"),

588-

controlUiOpenHint,

589-

]

590-

.filter(Boolean)

591-

.join("\n"),

592-

t("wizard.finalize.dashboardReady"),

593-

);

580+

const dashboard = await showControlUiDashboardNote({

581+

prompter,

582+

settings,

583+

authedUrl,

584+

controlUiBasePath,

585+

hintToken: settings.gatewayToken,

586+

});

587+

controlUiOpened = dashboard.opened;

594588

}

595589596590

const codexNativeSummary = describeCodexNativeWebSearch(nextConfig);