Repository navigation
docs: fix controlUi.root config using unexpanded tilde - #114594
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 31, 2026, 9:01 AM ET / 13:01 UTC. ClawSweeper reviewWhat this changesThe PR changes the Control UI custom-root JSON example from Merge readinessThe patch is correct: the configuration contract documents Likely related people: Priority: P3 Review scores
Verification
How this fits togetherThe Getting Started guide tells operators how to point the Gateway’s Control UI at a custom static build. The configured root flows through configuration environment-variable substitution before the Gateway uses it to locate and serve the Control UI assets. flowchart LR
A[Getting Started guide] --> B[Operator config]
B --> C[Environment variable substitution]
C --> D[Control UI root path]
D --> E[Gateway static asset serving]
E --> F[Custom Control UI in browser]
Before merge
Agent review detailsSecurityNone. PR surfaceDocs 0. Total 0 across 1 file. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep the braced Do we have a high-confidence way to reproduce the issue? Yes, at source-contract confidence: the previous JSON value uses a literal tilde while the documented config expansion mechanism is Is this the best way to solve the issue? Yes. Replacing the shell-only tilde form with the configuration system’s documented AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against aaab981ab097. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles) |
ad09509 to
2171ba2
Compare
|
@clawsweeper automerge |
|
🦞🧹
Draft PRs stay fix-only until GitHub marks them ready for review. Pause with Automerge progress:
Re-review progress:
|
|
🦞✅ Source: Why human review is needed: What the maintainer can do as a next step: I added |
|
Merged via squash.
|
What Problem This Solves
The
controlUi.rootconfig example uses~/.openclaw/..., butpath.resolve()does not expand tilde — produces a literal~directory.Why This Change Was Made
Tilde is shell expansion, not Node.js path primitive. OpenClaw's env var substitution (
${HOME}) is the correct way.Evidence
path.resolve('~/.openclaw/foo')returns<cwd>/~/.openclaw/foo, not the home directory${HOME}correctly