fix(memory): report skipped QMD embedding probe

This commit is contained in:
Vincent Koc
2026-06-16 13:57:58 +08:00
parent 322920587f
commit eea1ba563b
2 changed files with 9 additions and 3 deletions

View File

@@ -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)}`);

View File

@@ -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();
});