Repository navigation
Conversation
Greptile SummaryThis PR fixes a build-order bug in the installation documentation across 7 files (both English and Chinese variants), swapping Key changes:
Confidence Score: 5/5
Last reviewed commit: af435a9 |
|
@greptile-apps Review again please. |
…pm ui:build) Fix incorrect build order in 6 additional files: - docs/platforms/windows.md - docs/zh-CN/install/index.md - docs/zh-CN/platforms/windows.md - docs/zh-CN/start/getting-started.md - docs/zh-CN/start/openclaw.md - docs/zh-CN/start/quickstart.md
af435a9 to
f93d868
Compare
There was a problem hiding this comment.
Pull request overview
Updates the install documentation to ensure the Control UI build artifacts aren’t removed by the main pnpm build step (which cleans dist/), by placing pnpm build before pnpm ui:build.
Changes:
- Reorders the source-install commands to run
pnpm buildbeforepnpm ui:buildin English and Chinese docs. - Adds/keeps inline notes clarifying that
pnpm ui:buildauto-installs UI deps on first run (where applicable).
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| docs/zh-CN/start/quickstart.md | Swaps build order in the “from source” snippet to preserve Control UI output. |
| docs/zh-CN/start/openclaw.md | Swaps build order in the “from source” snippet to preserve Control UI output. |
| docs/zh-CN/platforms/windows.md | Swaps build order in the WSL install snippet to preserve Control UI output. |
| docs/zh-CN/install/index.md | Swaps build order in the “From source” steps to preserve Control UI output (adds inline note). |
| docs/platforms/windows.md | Swaps build order in the WSL install snippet to preserve Control UI output. |
| docs/install/index.md | Swaps build order in the “From source” steps to preserve Control UI output. |
You can also share your feedback on Copilot code review. Take the survey.
|
Closing this as implemented after Codex review. Current What I checked:
So I’m closing this as already implemented rather than keeping a duplicate issue open. Review notes: reviewed against 40be5ad58187; fix evidence: commit bcea5e75ebc7. |
Problem
The install guides list
pnpm ui:buildbeforepnpm build, but this order causespnpm ui:buildoutput to be silently deleted.pnpm builduses tsdown, which by default cleans the entiredist/directory before building. Sincepnpm ui:buildwrites its output todist/control-ui/, running it first means tsdown will wipe it out whenpnpm buildruns next.Fix
Swap the order to:
This ensures the Control UI assets are built after tsdown has finished (and cleaned)
dist/, so nothing gets lost.Verified by the user during a fresh source install and confirmed by inspecting
tsdown.config.tsandscripts/ui.js.