惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

B
Blog RSS Feed
有赞技术团队
有赞技术团队
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
阮一峰的网络日志
阮一峰的网络日志
V
V2EX
Y
Y Combinator Blog
Jina AI
Jina AI
G
Google Developers Blog
Last Week in AI
Last Week in AI
博客园 - 叶小钗
H
Hackread – Cybersecurity News, Data Breaches, AI and More
L
LangChain Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
V
Visual Studio Blog
aimingoo的专栏
aimingoo的专栏
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
J
Java Code Geeks
Stack Overflow Blog
Stack Overflow Blog
IT之家
IT之家
The GitHub Blog
The GitHub Blog
D
Docker
量子位
罗磊的独立博客
腾讯CDC

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
fix(memory): split vector store readiness · openclaw/open...
steipete · 2026-05-04 · via Recent Commits to openclaw:main

@@ -105,6 +105,7 @@ describe("memory cli", () => {

105105106106

function makeMemoryStatus(overrides: Record<string, unknown> = {}) {

107107

return {

108+

backend: "builtin",

108109

files: 0,

109110

chunks: 0,

110111

dirty: false,

@@ -113,7 +114,7 @@ describe("memory cli", () => {

113114

provider: "openai",

114115

model: "text-embedding-3-small",

115116

requestedProvider: "openai",

116-

vector: { enabled: true, available: true },

117+

vector: { enabled: true, storeAvailable: true, semanticAvailable: true, available: true },

117118

...overrides,

118119

};

119120

}

@@ -226,6 +227,8 @@ describe("memory cli", () => {

226227

fts: { enabled: true, available: true },

227228

vector: {

228229

enabled: true,

230+

storeAvailable: true,

231+

semanticAvailable: true,

229232

available: true,

230233

extensionPath: "/opt/sqlite-vec.dylib",

231234

dims: 1024,

@@ -238,7 +241,8 @@ describe("memory cli", () => {

238241

await runMemoryCli(["status"]);

239242240243

expect(probeVectorAvailability).not.toHaveBeenCalled();

241-

expect(log).toHaveBeenCalledWith(expect.stringContaining("Vector: ready"));

244+

expect(log).toHaveBeenCalledWith(expect.stringContaining("Vector store: ready"));

245+

expect(log).toHaveBeenCalledWith(expect.stringContaining("Semantic vectors: ready"));

242246

expect(log).toHaveBeenCalledWith(expect.stringContaining("Vector dims: 1024"));

243247

expect(log).toHaveBeenCalledWith(expect.stringContaining("Vector path: /opt/sqlite-vec.dylib"));

244248

expect(log).toHaveBeenCalledWith(expect.stringContaining("FTS: ready"));

@@ -274,7 +278,7 @@ describe("memory cli", () => {

274278

expect(probeVectorAvailability).not.toHaveBeenCalled();

275279

expect(probeEmbeddingAvailability).not.toHaveBeenCalled();

276280

expect(log).toHaveBeenCalledWith(expect.stringContaining("Provider: auto"));

277-

expect(log).toHaveBeenCalledWith(expect.stringContaining("Vector: unknown"));

281+

expect(log).toHaveBeenCalledWith(expect.stringContaining("Vector store: unknown"));

278282

expect(close).toHaveBeenCalled();

279283

});

280284

@@ -350,6 +354,8 @@ describe("memory cli", () => {

350354

dirty: true,

351355

vector: {

352356

enabled: true,

357+

storeAvailable: false,

358+

semanticAvailable: false,

353359

available: false,

354360

loadError: "load failed",

355361

},

@@ -360,16 +366,19 @@ describe("memory cli", () => {

360366

const log = spyRuntimeLogs(defaultRuntime);

361367

await runMemoryCli(["status", "--agent", "main"]);

362368363-

expect(log).toHaveBeenCalledWith(expect.stringContaining("Vector: unavailable"));

369+

expect(log).toHaveBeenCalledWith(expect.stringContaining("Vector store: unavailable"));

370+

expect(log).toHaveBeenCalledWith(expect.stringContaining("Semantic vectors: unavailable"));

364371

expect(log).toHaveBeenCalledWith(expect.stringContaining("Vector error: load failed"));

365372

expect(close).toHaveBeenCalled();

366373

});

367374368375

it("prints embeddings status when deep", async () => {

369376

const close = vi.fn(async () => {});

377+

const probeVectorStoreAvailability = vi.fn(async () => true);

370378

const probeVectorAvailability = vi.fn(async () => true);

371379

const probeEmbeddingAvailability = vi.fn(async () => ({ ok: true }));

372380

mockManager({

381+

probeVectorStoreAvailability,

373382

probeVectorAvailability,

374383

probeEmbeddingAvailability,

375384

status: () => makeMemoryStatus({ files: 1, chunks: 1 }),

@@ -379,12 +388,89 @@ describe("memory cli", () => {

379388

const log = spyRuntimeLogs(defaultRuntime);

380389

await runMemoryCli(["status", "--deep"]);

381390391+

expect(probeVectorStoreAvailability).toHaveBeenCalled();

382392

expect(probeVectorAvailability).toHaveBeenCalled();

383393

expect(probeEmbeddingAvailability).toHaveBeenCalled();

384394

expect(log).toHaveBeenCalledWith(expect.stringContaining("Embeddings: ready"));

385395

expect(close).toHaveBeenCalled();

386396

});

387397398+

it("prints vector store separately from embedding readiness when deep", async () => {

399+

const close = vi.fn(async () => {});

400+

const probeVectorStoreAvailability = vi.fn(async () => true);

401+

const probeVectorAvailability = vi.fn(async () => false);

402+

const probeEmbeddingAvailability = vi.fn(async () => ({

403+

ok: false,

404+

error: "No embedding provider available",

405+

}));

406+

mockManager({

407+

probeVectorStoreAvailability,

408+

probeVectorAvailability,

409+

probeEmbeddingAvailability,

410+

status: () =>

411+

makeMemoryStatus({

412+

provider: "none",

413+

requestedProvider: "auto",

414+

vector: {

415+

enabled: true,

416+

storeAvailable: true,

417+

semanticAvailable: false,

418+

available: false,

419+

},

420+

}),

421+

close,

422+

});

423+424+

const log = spyRuntimeLogs(defaultRuntime);

425+

await runMemoryCli(["status", "--deep"]);

426+427+

expect(probeVectorStoreAvailability).toHaveBeenCalled();

428+

expect(probeEmbeddingAvailability).toHaveBeenCalled();

429+

expect(probeVectorAvailability).toHaveBeenCalled();

430+

expect(log).toHaveBeenCalledWith(expect.stringContaining("Vector store: ready"));

431+

expect(log).toHaveBeenCalledWith(expect.stringContaining("Semantic vectors: unavailable"));

432+

expect(log).toHaveBeenCalledWith(expect.stringContaining("Embeddings: unavailable"));

433+

expect(log).toHaveBeenCalledWith(

434+

expect.stringContaining("Embeddings error: No embedding provider available"),

435+

);

436+

expect(close).toHaveBeenCalled();

437+

});

438+439+

it("keeps non-builtin deep status on the semantic vector probe", async () => {

440+

const close = vi.fn(async () => {});

441+

const probeVectorStoreAvailability = vi.fn(async () => true);

442+

const probeVectorAvailability = vi.fn(async () => true);

443+

const probeEmbeddingAvailability = vi.fn(async () => ({ ok: true }));

444+

mockManager({

445+

probeVectorStoreAvailability,

446+

probeVectorAvailability,

447+

probeEmbeddingAvailability,

448+

status: () =>

449+

makeMemoryStatus({

450+

backend: "qmd",

451+

provider: "qmd",

452+

model: "qmd",

453+

requestedProvider: "qmd",

454+

vector: {

455+

enabled: true,

456+

semanticAvailable: true,

457+

available: true,

458+

},

459+

}),

460+

close,

461+

});

462+463+

const log = spyRuntimeLogs(defaultRuntime);

464+

await runMemoryCli(["status", "--deep"]);

465+466+

expect(probeVectorStoreAvailability).not.toHaveBeenCalled();

467+

expect(probeVectorAvailability).toHaveBeenCalled();

468+

expect(probeEmbeddingAvailability).toHaveBeenCalled();

469+

expect(log).toHaveBeenCalledWith(expect.stringContaining("Vector: ready"));

470+

expect(log).not.toHaveBeenCalledWith(expect.stringContaining("Vector store:"));

471+

expect(close).toHaveBeenCalled();

472+

});

473+388474

it("prints recall-store audit details during status", async () => {

389475

await withTempWorkspace(async (workspaceDir) => {

390476

await recordShortTermRecalls({

@@ -578,9 +664,11 @@ describe("memory cli", () => {

578664

it("reindexes on status --index", async () => {

579665

const close = vi.fn(async () => {});

580666

const sync = vi.fn(async () => {});

667+

const probeVectorStoreAvailability = vi.fn(async () => true);

581668

const probeVectorAvailability = vi.fn(async () => true);

582669

const probeEmbeddingAvailability = vi.fn(async () => ({ ok: true }));

583670

mockManager({

671+

probeVectorStoreAvailability,

584672

probeVectorAvailability,

585673

probeEmbeddingAvailability,

586674

sync,

@@ -592,6 +680,7 @@ describe("memory cli", () => {

592680

await runMemoryCli(["status", "--index"]);

593681594682

expectCliSync(sync);

683+

expect(probeVectorStoreAvailability).toHaveBeenCalled();

595684

expect(probeVectorAvailability).toHaveBeenCalled();

596685

expect(probeEmbeddingAvailability).toHaveBeenCalled();

597686

expect(getMemorySearchManager).toHaveBeenCalledWith({