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

推荐订阅源

Apple Machine Learning Research
Apple Machine Learning Research
J
Java Code Geeks
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Last Week in AI
Last Week in AI
雷峰网
雷峰网
博客园_首页
小众软件
小众软件
美团技术团队
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
腾讯CDC
P
Proofpoint News Feed
MongoDB | Blog
MongoDB | Blog
Google DeepMind News
Google DeepMind News
MyScale Blog
MyScale Blog
U
Unit 42
The Cloudflare Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Microsoft Security Blog
Microsoft Security Blog
大猫的无限游戏
大猫的无限游戏
Engineering at Meta
Engineering at Meta
N
Netflix TechBlog - Medium
Microsoft Azure Blog
Microsoft Azure Blog
博客园 - 叶小钗

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
docs: clarify source control-ui dev/build flow (#68814) ·...
rubencu · 2026-04-19 · via Recent Commits to openclaw:main

9 files changed

+

43

-

14

lines changed

@@ -212,21 +212,34 @@ Runbook: [iOS connect](https://docs.openclaw.ai/platforms/ios).

212212213213

Prefer `pnpm` for builds from source. Bun is optional for running TypeScript directly.

214214215+

For the dev loop:

216+215217

```bash

216218

git clone https://github.com/openclaw/openclaw.git

217219

cd openclaw

218220219221

pnpm install

220-

pnpm ui:build # auto-installs UI deps on first run

221-

pnpm build

222222223-

pnpm openclaw onboard --install-daemon

223+

# First run only (or after resetting local OpenClaw config/workspace)

224+

pnpm openclaw setup

225+226+

# Optional: prebuild Control UI before first startup

227+

pnpm ui:build

224228225229

# Dev loop (auto-reload on source/config changes)

226230

pnpm gateway:watch

227231

```

228232229-

Note: `pnpm openclaw ...` runs TypeScript directly (via `tsx`). `pnpm build` produces `dist/` for running via Node / the packaged `openclaw` binary.

233+

If you need a built `dist/` from the checkout (for Node, packaging, or release validation), run:

234+235+

```bash

236+

pnpm build

237+

pnpm ui:build

238+

```

239+240+

`pnpm openclaw setup` writes the local config/workspace needed for `pnpm gateway:watch`. It is safe to re-run, but you normally only need it on first setup or after resetting local state. `pnpm gateway:watch` does not rebuild `dist/control-ui`, so rerun `pnpm ui:build` after `ui/` changes or use `pnpm ui:dev` when iterating on the Control UI. If you want this checkout to run onboarding directly, use `pnpm openclaw onboard --install-daemon`.

241+242+

Note: `pnpm openclaw ...` runs TypeScript directly (via `tsx`). `pnpm build` produces `dist/` for running via Node / the packaged `openclaw` binary, while `pnpm gateway:watch` rebuilds the runtime on demand during the dev loop.

230243231244

## Development channels

232245
Original file line numberDiff line numberDiff line change

@@ -160,7 +160,7 @@ Quick answers plus deeper troubleshooting for real-world setups (local dev, VPS,

160160

cd openclaw

161161

pnpm install

162162

pnpm build

163-

pnpm ui:build # auto-installs UI deps on first run

163+

pnpm ui:build

164164

openclaw onboard

165165

```

166166
Original file line numberDiff line numberDiff line change

@@ -115,7 +115,7 @@ For contributors or anyone who wants to run from a local checkout:

115115

```bash

116116

git clone https://github.com/openclaw/openclaw.git

117117

cd openclaw

118-

pnpm install && pnpm ui:build && pnpm build

118+

pnpm install && pnpm build && pnpm ui:build

119119

pnpm link --global

120120

openclaw onboard --install-daemon

121121

```

Original file line numberDiff line numberDiff line change

@@ -222,15 +222,25 @@ systemctl --user status

222222223223

### 3) Install OpenClaw (inside WSL)

224224225-

Follow the Linux Getting Started flow inside WSL:

225+

For a normal first-time setup inside WSL, follow the Linux Getting Started flow:

226226227227

```bash

228228

git clone https://github.com/openclaw/openclaw.git

229229

cd openclaw

230230

pnpm install

231-

pnpm ui:build # auto-installs UI deps on first run

232231

pnpm build

233-

openclaw onboard

232+

pnpm ui:build

233+

pnpm openclaw onboard --install-daemon

234+

```

235+236+

If you are developing from source instead of doing first-time onboarding, use the

237+

source dev loop from [Setup](/start/setup):

238+239+

```bash

240+

pnpm install

241+

# First run only (or after resetting local OpenClaw config/workspace)

242+

pnpm openclaw setup

243+

pnpm gateway:watch

234244

```

235245236246

Full guide: [Getting Started](/start/getting-started)

Original file line numberDiff line numberDiff line change

@@ -91,16 +91,22 @@ If you also want the macOS app on the bleeding edge:

91919292

```bash

9393

pnpm install

94+

# First run only (or after resetting local OpenClaw config/workspace)

95+

pnpm openclaw setup

9496

pnpm gateway:watch

9597

```

96989799

`gateway:watch` runs the gateway in watch mode and reloads on relevant source,

98100

config, and bundled-plugin metadata changes.

101+

`pnpm openclaw setup` is the one-time local config/workspace initialization step for a fresh checkout.

102+

`pnpm gateway:watch` does not rebuild `dist/control-ui`, so rerun `pnpm ui:build` after `ui/` changes or use `pnpm ui:dev` while developing the Control UI.

99103100104

If you are intentionally using the Bun workflow, the equivalent commands are:

101105102106

```bash

103107

bun install

108+

# First run only (or after resetting local OpenClaw config/workspace)

109+

bun run openclaw setup

104110

bun run gateway:watch

105111

```

106112
Original file line numberDiff line numberDiff line change

@@ -278,7 +278,7 @@ See [Tailscale](/gateway/tailscale) for HTTPS setup guidance.

278278

The Gateway serves static files from `dist/control-ui`. Build them with:

279279280280

```bash

281-

pnpm ui:build # auto-installs UI deps on first run

281+

pnpm ui:build

282282

```

283283284284

Optional absolute base (when you want fixed asset URLs):

@@ -290,7 +290,7 @@ OPENCLAW_CONTROL_UI_BASE_PATH=/openclaw/ pnpm ui:build

290290

For local development (separate dev server):

291291292292

```bash

293-

pnpm ui:dev # auto-installs UI deps on first run

293+

pnpm ui:dev

294294

```

295295296296

Then point the UI at your Gateway WS URL (e.g. `ws://127.0.0.1:18789`).

Original file line numberDiff line numberDiff line change

@@ -122,5 +122,5 @@ Open:

122122

The Gateway serves static files from `dist/control-ui`. Build them with:

123123124124

```bash

125-

pnpm ui:build # auto-installs UI deps on first run

125+

pnpm ui:build

126126

```

Original file line numberDiff line numberDiff line change

@@ -226,7 +226,7 @@ describe("gateway run option collisions", () => {

226226

await runGatewayCli(["gateway", "run", "--allow-unconfigured"]);

227227228228

expect(gatewayLogMessages).toContain(

229-

"Control UI assets are missing; first startup may spend a few seconds building them before the gateway binds. Prebuild with `pnpm ui:build` for a faster first boot.",

229+

"Control UI assets are missing; first startup may spend a few seconds building them before the gateway binds. `pnpm gateway:watch` does not rebuild Control UI assets, so rerun `pnpm ui:build` after UI changes or use `pnpm ui:dev` while developing the Control UI. For a full local dist, run `pnpm build && pnpm ui:build`.",

230230

);

231231

});

232232
Original file line numberDiff line numberDiff line change

@@ -176,7 +176,7 @@ function maybeLogPendingControlUiBuild(cfg: OpenClawConfig): void {

176176

return;

177177

}

178178

gatewayLog.info(

179-

"Control UI assets are missing; first startup may spend a few seconds building them before the gateway binds. Prebuild with `pnpm ui:build` for a faster first boot.",

179+

"Control UI assets are missing; first startup may spend a few seconds building them before the gateway binds. `pnpm gateway:watch` does not rebuild Control UI assets, so rerun `pnpm ui:build` after UI changes or use `pnpm ui:dev` while developing the Control UI. For a full local dist, run `pnpm build && pnpm ui:build`.",

180180

);

181181

}

182182
Original file line numberDiff line numberDiff line change