mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-08 02:52:15 +00:00
fix(memory): report skipped QMD embedding probe
This commit is contained in:
@@ -884,8 +884,14 @@ export async function runMemoryStatus(opts: MemoryCommandOptions) {
|
||||
`${label("Dreaming")} ${info(formatDreamingSummary(cfg))}`,
|
||||
].filter(Boolean) as string[];
|
||||
if (embeddingProbe) {
|
||||
const state = embeddingProbe.ok ? "ready" : "unavailable";
|
||||
const stateColor = embeddingProbe.ok ? theme.success : theme.warn;
|
||||
const state =
|
||||
embeddingProbe.ok && embeddingProbe.checked === false
|
||||
? "skipped"
|
||||
: embeddingProbe.ok
|
||||
? "ready"
|
||||
: "unavailable";
|
||||
const stateColor =
|
||||
state === "skipped" ? theme.muted : embeddingProbe.ok ? theme.success : theme.warn;
|
||||
lines.push(`${label("Embeddings")} ${colorize(rich, stateColor, state)}`);
|
||||
if (embeddingProbe.error) {
|
||||
lines.push(`${label("Embeddings error")} ${warn(embeddingProbe.error)}`);
|
||||
|
||||
@@ -708,7 +708,7 @@ describe("memory cli", () => {
|
||||
expect(probeVectorAvailability).toHaveBeenCalled();
|
||||
expect(probeEmbeddingAvailability).toHaveBeenCalled();
|
||||
expectLogged(log, "Vector: disabled");
|
||||
expectLogged(log, "Embeddings: ready");
|
||||
expectLogged(log, "Embeddings: skipped");
|
||||
expectNotLogged(log, "Embeddings error:");
|
||||
expect(close).toHaveBeenCalled();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user