Skip to content

docs: fix controlUi.root config using unexpanded tilde - #114594

Merged
steipete merged 1 commit into
openclaw:mainfrom
AAliKKhan:docs/fix-controlui-root-config
Jul 31, 2026
Merged

steipete merged 1 commit into
openclaw:mainfrom
AAliKKhan:docs/fix-controlui-root-config

Conversation

@AAliKKhan

Copy link
Copy Markdown
Contributor

What Problem This Solves

The controlUi.root config example uses ~/.openclaw/..., but path.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
  • OpenClaw's env var substitution parses ${HOME} correctly

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: XS triage: low-signal-docs Candidate: docs-only change looks low signal; maintainer review needed. labels Jul 27, 2026
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. labels Jul 27, 2026
@clawsweeper

clawsweeper Bot commented Jul 27, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed July 31, 2026, 9:01 AM ET / 13:01 UTC.

ClawSweeper review

What this changes

The PR changes the Control UI custom-root JSON example from ~/.openclaw/control-ui-custom to ${HOME}/.openclaw/control-ui-custom so OpenClaw expands the home directory when it reads configuration.

Merge readiness

⚠️ Ready for maintainer review - 1 item remains

The patch is correct: the configuration contract documents ${VAR_NAME} as the supported environment-variable syntax, while the existing Control UI JSON example uses a shell-style $HOME token. This docs-only change has no patch defect or security concern; the explicit clawsweeper:human-review label leaves the final merge decision with a human.

Likely related people: steipete is a low-confidence routing candidate from recent history on docs/start/getting-started.md.

Priority: P3
Reviewed head: 2171ba25bd01170adfea5523e7c88939b90157c8

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused docs correction that matches the documented configuration contract, with no actionable patch finding.
Proof confidence 🌊 off-meta tidepool Not applicable: Real behavior proof is not required because this PR only changes files under docs/.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: Real behavior proof is not required because this PR only changes files under docs/.
Evidence reviewed 4 items Configuration substitution contract: The configuration documentation specifies ${VAR_NAME} for environment-variable references in any config string and says missing variables fail at load time; this directly supports ${HOME} in the JSON example.
Changed documentation path: The PR changes only the gateway.controlUi.root example in the Getting Started guide, leaving runtime code and configuration schema untouched.
Current documentation mismatch: Current main’s Getting Started example uses $HOME inside JSON, whereas the documented configuration-substitution syntax is braced; the proposed replacement aligns the example with the stated contract.
Findings None None.
Security None None.

How this fits together

The 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]
Loading

Before merge

  • Complete next step (P2) - No repair lane is needed: the patch has no actionable defect, and the remaining action is the explicitly requested human merge review.
Agent review details

Security

None.

PR surface

Docs 0. Total 0 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 1 1 1 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 1 1 0

Review metrics

None.

Technical review

Best possible solution:

Keep the braced ${HOME} example so the public custom-Control-UI setup guide matches OpenClaw’s documented configuration substitution syntax.

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 ${VAR_NAME}. A runtime reproduction is unnecessary for this documentation-only patch.

Is this the best way to solve the issue?

Yes. Replacing the shell-only tilde form with the configuration system’s documented ${HOME} form is the narrowest maintainable correction and avoids adding another path-expansion rule.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against aaab981ab097.

Labels

Label justifications:

  • P3: This is a one-line documentation correction for an advanced custom Control UI setup path, with no runtime behavior changed by the PR itself.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.

Evidence

What I checked:

Likely related people:

  • steipete: Recent GitHub history for the affected Getting Started guide identifies this person on the current documentation path; ownership evidence is limited because this review could not complete local git-history inspection. (role: recent documentation contributor; confidence: low; files: docs/start/getting-started.md)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (3 earlier review cycles)
  • reviewed 2026-07-27T13:40:44.312Z sha ad09509 :: needs maintainer review before merge. :: none
  • reviewed 2026-07-27T14:13:05.123Z sha 2171ba2 :: needs maintainer review before merge. :: none
  • reviewed 2026-07-27T14:54:45.356Z sha 2171ba2 :: needs maintainer review before merge. :: none

@AAliKKhan
AAliKKhan force-pushed the docs/fix-controlui-root-config branch from ad09509 to 2171ba2 Compare July 27, 2026 14:08
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Jul 27, 2026
@Takhoffman

Copy link
Copy Markdown
Contributor

@clawsweeper automerge

@clawsweeper

clawsweeper Bot commented Jul 27, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper automerge is enabled.

  • Head: 2171ba25bd01
  • Label: clawsweeper:automerge
  • Action: exact-head review queued (workflow sweep.yml, event repository_dispatch).
  • Flow: review this head, repair/rebase only if needed, then re-review the exact repaired head before merge.

Draft PRs stay fix-only until GitHub marks them ready for review. Pause with /clawsweeper stop.

Automerge progress:

  • 2026-07-27 14:51:50 UTC review queued 2171ba25bd01 (queued)

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:automerge Maintainer opted this PR into bounded ClawSweeper-reviewed automerge status: 🚀 automerge armed This PR is in ClawSweeper's automerge lane. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. clawsweeper:human-review Needs maintainer review before ClawSweeper can continue and removed status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Jul 27, 2026
@clawsweeper

clawsweeper Bot commented Jul 27, 2026 •

Copy link
Copy Markdown
Contributor

🦞✅
ClawSweeper is pausing this repair loop for human review.

Source: clawsweeper[bot]
Reason: - [ ] Complete next step (P2) - No repair lane is needed: the patch has no actionable defect, and the remaining action is the explicitly requested human merge review. (sha=2171ba25bd01170adfea5523e7c88939b90157c8)

Why human review is needed:
ClawSweeper found a blocker that should be resolved or accepted by a maintainer before the repair or automerge loop continues.

What the maintainer can do as a next step:
If the maintainer accepts the current risk and wants ClawSweeper to continue merge gates, comment @clawsweeper approve. If more work is needed, resolve the blocker first, then comment @clawsweeper automerge to re-review and continue. If automation should stay paused, leave clawsweeper:human-review in place or comment @clawsweeper stop.

I added clawsweeper:human-review and left the final call with a maintainer.

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 🚀 automerge armed This PR is in ClawSweeper's automerge lane. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. labels Jul 31, 2026
@steipete
steipete merged commit de143f2 into openclaw:main Jul 31, 2026
97 of 107 checks passed
@steipete

Copy link
Copy Markdown
Contributor

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clawsweeper:automerge Maintainer opted this PR into bounded ClawSweeper-reviewed automerge clawsweeper:human-review Needs maintainer review before ClawSweeper can continue docs Improvements or additions to documentation P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS triage: low-signal-docs Candidate: docs-only change looks low signal; maintainer review needed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants