Fix: Doctor refers to deprecated auth command

Replaces deprecated 'openclaw auth add --provider' with
'openclaw configure --section provider' in doctor-memory-search.ts

Closes #18535
This commit is contained in:
OpenClaw Agent
2026-02-16 21:37:41 +00:00
committed by Peter Steinberger
parent facfa410a7
commit 0af795287a
6 changed files with 142 additions and 2 deletions

View File

@@ -54,7 +54,7 @@ export async function noteMemorySearchHealth(cfg: OpenClawConfig): Promise<void>
"",
"Fix (pick one):",
`- Set ${envVar} in your environment`,
`- Add credentials: ${formatCliCommand(`openclaw auth add --provider ${resolved.provider}`)}`,
`- Add credentials: ${formatCliCommand("openclaw configure --section provider")}`,
`- To disable: ${formatCliCommand("openclaw config set agents.defaults.memorySearch.enabled false")}`,
"",
`Verify: ${formatCliCommand("openclaw memory status --deep")}`,
@@ -81,7 +81,7 @@ export async function noteMemorySearchHealth(cfg: OpenClawConfig): Promise<void>
"",
"Fix (pick one):",
"- Set OPENAI_API_KEY or GEMINI_API_KEY in your environment",
`- Add credentials: ${formatCliCommand("openclaw auth add --provider openai")}`,
`- Add credentials: ${formatCliCommand("openclaw configure --section provider")}`,
`- For local embeddings: configure agents.defaults.memorySearch.provider and local model path`,
`- To disable: ${formatCliCommand("openclaw config set agents.defaults.memorySearch.enabled false")}`,
"",