Skip to content

docs: fix tilde paths in CLI output examples - #114595

Merged
steipete merged 1 commit into
openclaw:mainfrom
AAliKKhan:docs/fix-configpath-cli-output
Jul 31, 2026
Merged

steipete merged 1 commit into
openclaw:mainfrom
AAliKKhan:docs/fix-configpath-cli-output

Conversation

@AAliKKhan

Copy link
Copy Markdown
Contributor

What Problem This Solves

CLI output examples show ~/.openclaw/openclaw.json, but the CLI always outputs absolute paths.

Why This Change Was Made

Test at src/cli/config-cli.test.ts:2461-2464 asserts configPath is absolute and not containing ~.

Evidence

  • src/cli/config-cli.test.ts:2461-2464: expect(path.isAbsolute(payload.configPath)).toBe(true) and expect(payload.configPath).not.toContain('~')
  • Docs now use /home/user/.openclaw/openclaw.json

@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: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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 29, 2026, 11:14 AM ET / 15:14 UTC.

ClawSweeper review

What this changes

This PR changes two openclaw config set JSON-output examples so configPath uses an absolute example path instead of ~/.openclaw/openclaw.json.

Merge readiness

⚠️ Ready for maintainer review - 1 item remains

This is a narrow, source-aligned documentation correction: the CLI contract reports a resolved absolute configPath, while the two JSON examples show a tilde path. The branch remains unmerged, is cleanly mergeable, has passing documentation checks, and the latest ClawSweeper cycle found no blocker, so it should remain on its opted-in automerge path rather than be closed as obsolete.

Priority: P3
Reviewed head: 49370b0ed4ba38cbb8fb34ff931bae1cb9174f14

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, correct documentation patch with source-backed rationale and no actionable review 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 5 items Changed documentation examples: The proposed patch changes only the two JSON configPath fields in the configuration CLI reference, from a shell-style ~/.openclaw/openclaw.json value to /home/user/.openclaw/openclaw.json.
Existing CLI-output contract: The PR cites the existing configuration CLI test asserting that payload.configPath is absolute and contains no tilde, which matches the documentation correction rather than changing runtime behavior.
Current public CLI documentation: The published CLI reference describes config file as printing the active resolved configuration file path, consistent with documenting literal resolved paths in command output rather than shell shorthand.
Findings None None.
Security None None.

How this fits together

The configuration CLI resolves the active configuration file and includes that resolved path in JSON command results. The CLI reference documents those results for operators, so its examples should distinguish shell shorthand from the literal path returned by the program.

flowchart LR
  A[Operator runs config command] --> B[Configuration CLI]
  B --> C[Resolve active config file]
  C --> D[JSON result with configPath]
  D --> E[CLI reference examples]
  E --> F[Operator expectations]
Loading

Before merge

  • Complete next step (P2) - No repair lane is needed: the opted-in automerge path can gate the exact head, and this review found no concrete code, documentation, or security defect to fix.
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 2 2 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 2 2 0

Review metrics

None.

Technical review

Best possible solution:

Merge the focused documentation correction after normal exact-head automerge gates; keep runtime behavior and the existing CLI contract unchanged.

Do we have a high-confidence way to reproduce the issue?

Not applicable: this is a documentation-only PR, and the relevant check is a source comparison between the documented JSON examples and the existing CLI output contract.

Is this the best way to solve the issue?

Yes. Updating the two output examples is the narrowest maintainable fix because the existing test already defines the runtime behavior and no CLI change is required.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P3: This is a two-example documentation accuracy correction with limited blast radius and no runtime or configuration-surface change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 🚀 automerge armed: This PR is in ClawSweeper's automerge lane. Not applicable: Real behavior proof is not required because this PR only changes files under docs/.

Evidence

What I checked:

  • Changed documentation examples: The proposed patch changes only the two JSON configPath fields in the configuration CLI reference, from a shell-style ~/.openclaw/openclaw.json value to /home/user/.openclaw/openclaw.json. Public docs: docs/cli/config.md. (docs/cli/config.md:381, 49370b0ed4ba)
  • Existing CLI-output contract: The PR cites the existing configuration CLI test asserting that payload.configPath is absolute and contains no tilde, which matches the documentation correction rather than changing runtime behavior. (src/cli/config-cli.test.ts:2461, 6ac11fbf6acf)
  • Current public CLI documentation: The published CLI reference describes config file as printing the active resolved configuration file path, consistent with documenting literal resolved paths in command output rather than shell shorthand. Public docs: docs/cli/config.md. (docs/cli/config.md:1, 383f8947c1da)
  • Current PR state: GitHub context reports the branch as cleanly mergeable against current main, with successful check-docs, CI gate, and security checks; the branch is behind but that alone is not a correctness defect. (49370b0ed4ba)
  • Repository review policy: The applicable policy treats docs-only changes as requiring focused documentation sanity rather than broad runtime proof and says normal PRs should not edit the release-owned changelog. (AGENTS.md:175, 383f8947c1da)

Likely related people:

  • unidentified: The available read-only evidence identifies the affected documentation and CLI test but does not provide a reliable current-main blame or feature-history owner; the PR author is not treated as an owner solely for proposing this patch. (role: current-main history owner not established; confidence: low; files: docs/cli/config.md, src/cli/config-cli.test.ts)

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 (4 earlier review cycles)
  • reviewed 2026-07-27T13:39:55.718Z sha d5c179d :: needs maintainer review before merge. :: none
  • reviewed 2026-07-27T14:13:29.807Z sha 49370b0 :: needs maintainer review before merge. :: none
  • reviewed 2026-07-27T14:27:28.039Z sha 49370b0 :: passed. :: none
  • reviewed 2026-07-27T17:35:04.370Z sha 49370b0 :: passed. :: none

@AAliKKhan
AAliKKhan force-pushed the docs/fix-configpath-cli-output branch from d5c179d to 49370b0 Compare July 27, 2026 14:08
@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. 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: 49370b0ed4ba
  • 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:24:06 UTC review queued 49370b0ed4ba (queued)
  • 2026-07-29 15:08:10 UTC review queued 49370b0ed4ba (queued)
  • 2026-07-27 17:37:34 UTC review passed 49370b0ed4ba (structured ClawSweeper verdict: pass (sha=49370b0ed4ba38cbb8fb34ff931bae1cb9174...)

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. 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 29, 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 opted-in automerge path can gate the exact head, and this review found no concrete code, documentation, or security defect to fix. (sha=49370b0ed4ba38cbb8fb34ff931bae1cb9174f14)

Why human review is needed:
This item has security-sensitive risk. ClawSweeper is pausing instead of making an autonomous change that could affect trust, credentials, permissions, or exposure.

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 the security-sensitive detail still needs changes, describe the safe path or push the fix, then comment @clawsweeper automerge. If the risk should not be automated, keep the PR paused for manual review or comment @clawsweeper stop.

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

@steipete
steipete merged commit b6d9b38 into openclaw:main Jul 31, 2026
89 of 93 checks passed
@steipete

Copy link
Copy Markdown
Contributor

Merged via squash.

vincentkoc added a commit that referenced this pull request Jul 31, 2026
…odels-20260729

* origin/main:
  fix(tui): canonical terminal outcomes, cancellation, and error privacy (#117044)
  fix(cron): avoid phantom message tool guidance (#116908)
  fix(test): avoid macOS release gate deadlocks (#116972)
  fix(openai): canonical Chat cache-hit and billing accounting (#117043)
  fix(memory-wiki): salvage human Notes before pruning imported source pages (#102294)
  fix(memory): suggest reindex, not --fix, for a missing qmd index (#116958)
  chore(msteams): add private Gateway QA adapter
  fix(ui): make session controls and failures accessible (#117019)
  docs: fix tilde paths in CLI output examples (#114595)
  fix(plugins): canonical discovery diagnostics and deterministic lifecycles (#117025)
  fix(ui): honor Gateway readiness abort and subscription ownership (#117048)
  fix(updater): harden launchd replacement timing (#117030)
  fix(gateway): preserve static asset HEAD representation metadata (#117049)
  fix(gateway): abort embeddings when clients disconnect (#116146)
  fix(googlechat): retain fallback thread continuity (#117053)
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 status: 🚀 automerge armed This PR is in ClawSweeper's automerge lane. 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