docs(cli): fix incorrect config filename in hooks documentation#1
Closed
hellomypastor wants to merge 1 commit intomainfrom
Closed
docs(cli): fix incorrect config filename in hooks documentation#1hellomypastor wants to merge 1 commit intomainfrom
hellomypastor wants to merge 1 commit intomainfrom
Conversation
The hooks enable command referenced `~/.openclaw/config.json` but the actual config file is `~/.openclaw/openclaw.json`. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
docs/cli/hooks.mdanddocs/zh-CN/cli/hooks.mdreference~/.openclaw/config.jsonas the config file path.~/.openclaw/openclaw.json. Users following the docs would look for the wrong file.config.jsontoopenclaw.jsonin both English and Chinese hooks docs.Change Type (select all)
Scope (select all touched areas)
Linked Issue/PR
Root Cause / Regression History (if applicable)
N/A
Regression Test Plan (if applicable)
N/A
User-visible / Behavior Changes
Docs now point to the correct config file path (
~/.openclaw/openclaw.json).Diagram (if applicable)
N/A
Security Impact (required)
NoNoNoNoNoRepro + Verification
Environment
Steps
docs/cli/hooks.mdline 128~/.openclaw/config.jsonsrc/config/io.owner-display-secret.test.ts,src/wizard/setup.test.ts) — actual file isopenclaw.jsonExpected
~/.openclaw/openclaw.jsonActual
~/.openclaw/config.json~/.openclaw/openclaw.jsonEvidence
src/config/io.owner-display-secret.test.ts:38,src/wizard/setup.test.ts:92) confirmingopenclaw.jsonis the correct filenameHuman Verification (required)
openclaw.json— consistently used as the config filenameconfig.json)Review Conversations
Compatibility / Migration
YesNoNoRisks and Mitigations
None