fix: prevent memory CLI hangs

This commit is contained in:
Peter Steinberger
2026-01-22 03:14:25 +00:00
parent 721737cc77
commit 472b8fe15d
4 changed files with 86 additions and 8 deletions

View File

@@ -323,9 +323,11 @@ export async function runMemoryStatus(opts: MemoryCommandOptions) {
}
if (status.vector) {
const vectorState = status.vector.enabled
? status.vector.available
? "ready"
: "unavailable"
? status.vector.available === undefined
? "unknown"
: status.vector.available
? "ready"
: "unavailable"
: "disabled";
const vectorColor =
vectorState === "ready"