revert(doctor): undo accidental merge of PR #18591

This commit is contained in:
Sebastian
2026-02-16 21:09:49 -05:00
parent 4147545469
commit ce4b4d947c
6 changed files with 3 additions and 143 deletions

View File

@@ -1,9 +1,9 @@
import fsSync from "node:fs";
import type { OpenClawConfig } from "../config/config.js";
import { resolveAgentDir, resolveDefaultAgentId } from "../agents/agent-scope.js";
import { resolveMemorySearchConfig } from "../agents/memory-search.js";
import { resolveApiKeyForProvider } from "../agents/model-auth.js";
import { formatCliCommand } from "../cli/command-format.js";
import type { OpenClawConfig } from "../config/config.js";
import { note } from "../terminal/note.js";
import { resolveUserPath } from "../utils.js";
@@ -54,7 +54,7 @@ export async function noteMemorySearchHealth(cfg: OpenClawConfig): Promise<void>
"",
"Fix (pick one):",
`- Set ${envVar} in your environment`,
`- Add credentials: ${formatCliCommand("openclaw configure --section provider")}`,
`- Add credentials: ${formatCliCommand(`openclaw auth add --provider ${resolved.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 configure --section provider")}`,
`- Add credentials: ${formatCliCommand("openclaw auth add --provider openai")}`,
`- For local embeddings: configure agents.defaults.memorySearch.provider and local model path`,
`- To disable: ${formatCliCommand("openclaw config set agents.defaults.memorySearch.enabled false")}`,
"",