fix(cli): replace stale doctor/restart command hints#24485
Merged
mukhtharcm merged 2 commits intoopenclaw:mainfrom Feb 24, 2026
Merged
fix(cli): replace stale doctor/restart command hints#24485mukhtharcm merged 2 commits intoopenclaw:mainfrom
mukhtharcm merged 2 commits intoopenclaw:mainfrom
Conversation
This was referenced Feb 23, 2026
src/commands/doctor-memory-search.ts
Outdated
| "Fix (pick one):", | ||
| `- Set ${envVar} in your environment`, | ||
| `- Add credentials: ${formatCliCommand(`openclaw auth add --provider ${resolved.provider}`)}`, | ||
| `- Configure credentials: ${formatCliCommand("openclaw configure --section auth")}`, |
Contributor
There was a problem hiding this comment.
--section auth is not a valid section. Should be --section model (which handles "Pick provider + credentials" per src/commands/configure.shared.ts:54)
Suggested change
| `- Configure credentials: ${formatCliCommand("openclaw configure --section auth")}`, | |
| `- Configure credentials: ${formatCliCommand("openclaw configure --section model")}`, |
Prompt To Fix With AI
This is a comment left during a code review.
Path: src/commands/doctor-memory-search.ts
Line: 65
Comment:
`--section auth` is not a valid section. Should be `--section model` (which handles "Pick provider + credentials" per `src/commands/configure.shared.ts:54`)
```suggestion
`- Configure credentials: ${formatCliCommand("openclaw configure --section model")}`,
```
How can I resolve this? If you propose a fix, please make it concise.
src/commands/doctor-memory-search.ts
Outdated
| "Fix (pick one):", | ||
| "- Set OPENAI_API_KEY, GEMINI_API_KEY, VOYAGE_API_KEY, or MISTRAL_API_KEY in your environment", | ||
| `- Add credentials: ${formatCliCommand("openclaw auth add --provider openai")}`, | ||
| `- Configure credentials: ${formatCliCommand("openclaw configure --section auth")}`, |
Contributor
There was a problem hiding this comment.
same issue - --section auth should be --section model
Suggested change
| `- Configure credentials: ${formatCliCommand("openclaw configure --section auth")}`, | |
| `- Configure credentials: ${formatCliCommand("openclaw configure --section model")}`, |
Prompt To Fix With AI
This is a comment left during a code review.
Path: src/commands/doctor-memory-search.ts
Line: 92
Comment:
same issue - `--section auth` should be `--section model`
```suggestion
`- Configure credentials: ${formatCliCommand("openclaw configure --section model")}`,
```
How can I resolve this? If you propose a fix, please make it concise.|
|
||
| expect(note).toHaveBeenCalledTimes(1); | ||
| const message = String(note.mock.calls[0]?.[0] ?? ""); | ||
| expect(message).toContain("openclaw configure --section auth"); |
Contributor
There was a problem hiding this comment.
test expects wrong section name - should check for model not auth
Suggested change
| expect(message).toContain("openclaw configure --section auth"); | |
| expect(message).toContain("openclaw configure --section model"); |
Prompt To Fix With AI
This is a comment left during a code review.
Path: src/commands/doctor-memory-search.test.ts
Line: 142
Comment:
test expects wrong section name - should check for `model` not `auth`
```suggestion
expect(message).toContain("openclaw configure --section model");
```
How can I resolve this? If you propose a fix, please make it concise.|
|
||
| expect(note).toHaveBeenCalledTimes(1); | ||
| const message = String(note.mock.calls[0]?.[0] ?? ""); | ||
| expect(message).toContain("openclaw configure --section auth"); |
Contributor
There was a problem hiding this comment.
test expects wrong section name - should check for model not auth
Suggested change
| expect(message).toContain("openclaw configure --section auth"); | |
| expect(message).toContain("openclaw configure --section model"); |
Prompt To Fix With AI
This is a comment left during a code review.
Path: src/commands/doctor-memory-search.test.ts
Line: 158
Comment:
test expects wrong section name - should check for `model` not `auth`
```suggestion
expect(message).toContain("openclaw configure --section model");
```
How can I resolve this? If you propose a fix, please make it concise.
Contributor
Author
|
All required checks are green and merge state is CLEAN. This is ready for maintainer merge when convenient. |
3 tasks
4 tasks
526ca18 to
02b7ec9
Compare
mukhtharcm
added a commit
to chilu18/openclaw
that referenced
this pull request
Feb 24, 2026
02b7ec9 to
989abf1
Compare
plgs2005
pushed a commit
to plgs2005/openclaw
that referenced
this pull request
Feb 24, 2026
* fix(cli): replace stale doctor and restart hints * fix: add changelog for CLI hint updates (openclaw#24485) (thanks @chilu18) --------- Co-authored-by: Muhammed Mukhthar CM <mukhtharcm@gmail.com>
abdelkadermeflahi6-web
referenced
this pull request
Feb 24, 2026
abdelkadermeflahi6-web
referenced
this pull request
Feb 24, 2026
margulans
pushed a commit
to margulans/Neiron-AI-assistant
that referenced
this pull request
Feb 25, 2026
* fix(cli): replace stale doctor and restart hints * fix: add changelog for CLI hint updates (openclaw#24485) (thanks @chilu18) --------- Co-authored-by: Muhammed Mukhthar CM <mukhtharcm@gmail.com>
brianleach
pushed a commit
to brianleach/openclaw
that referenced
this pull request
Feb 26, 2026
* fix(cli): replace stale doctor and restart hints * fix: add changelog for CLI hint updates (openclaw#24485) (thanks @chilu18) --------- Co-authored-by: Muhammed Mukhthar CM <mukhtharcm@gmail.com>
2 tasks
Get-windy
pushed a commit
to Get-windy/JieZi-ai-PS
that referenced
this pull request
Feb 28, 2026
更新内容: - fix(ui): prevent tabnabbing in chat images (openclaw#18685) - fix(cli): replace stale doctor/restart command hints (openclaw#24485) - Auto-reply: normalize stop matching + multilingual triggers (openclaw#25103) - docs: fix broken links, add maintainer
r4jiv007
pushed a commit
to r4jiv007/openclaw
that referenced
this pull request
Feb 28, 2026
* fix(cli): replace stale doctor and restart hints * fix: add changelog for CLI hint updates (openclaw#24485) (thanks @chilu18) --------- Co-authored-by: Muhammed Mukhthar CM <mukhtharcm@gmail.com>
joelnishanth
pushed a commit
to joelnishanth/openclaw
that referenced
this pull request
Mar 3, 2026
* fix(cli): replace stale doctor and restart hints * fix: add changelog for CLI hint updates (openclaw#24485) (thanks @chilu18) --------- Co-authored-by: Muhammed Mukhthar CM <mukhtharcm@gmail.com>
zooqueen
pushed a commit
to hanzoai/bot
that referenced
this pull request
Mar 6, 2026
* fix(cli): replace stale doctor and restart hints * fix: add changelog for CLI hint updates (openclaw#24485) (thanks @chilu18) --------- Co-authored-by: Muhammed Mukhthar CM <mukhtharcm@gmail.com>
zooqueen
pushed a commit
to hanzoai/bot
that referenced
this pull request
Mar 6, 2026
* fix(cli): replace stale doctor and restart hints * fix: add changelog for CLI hint updates (openclaw#24485) (thanks @chilu18) --------- Co-authored-by: Muhammed Mukhthar CM <mukhtharcm@gmail.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
openclaw gateway status --probe --deepwith validopenclaw gateway status --deepopenclaw auth add --provider ...doctor guidance with valid interactive commandopenclaw configure --section authWhy
openclaw auth addcommand #24220Validation
corepack pnpm exec vitest run src/commands/doctor-memory-search.test.ts src/cli/daemon-cli/lifecycle.test.tscorepack pnpm exec oxfmt --check src/commands/doctor-memory-search.ts src/commands/doctor-memory-search.test.ts src/cli/daemon-cli/lifecycle.ts src/cli/daemon-cli/lifecycle.test.ts src/cli/update-cli/update-command.tsGreptile Summary
This PR fixes stale command hints by replacing the invalid
openclaw gateway status --probe --deepwith the correctopenclaw gateway status --deep(the--probeflag doesn't exist; probing is enabled by default via--no-probeopt-out). It also replaces the nonexistentopenclaw auth add --providercommand with an interactive configuration command.Issues Found
openclaw configure --section auth, but this section doesn't exist. The valid section for configuring provider credentials ismodel(seesrc/commands/configure.shared.ts:54andsrc/commands/configure.wizard.ts:387,440). This will cause runtime errors when users try the suggested command.What Works Well
--probeflag fromopenclaw gateway status --deepopenclaw doctoras a valid troubleshooting commandConfidence Score: 1/5
--probeflag issue but introduces a new bug by referencing a non-existent--section authconfiguration section. Users following the suggested command will encounter errors. The correct section name ismodel.src/commands/doctor-memory-search.tsand its test file - they both reference an invalid configuration sectionLast reviewed commit: 526ca18