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

推荐订阅源

WordPress大学
WordPress大学
Vercel News
Vercel News
博客园_首页
Y
Y Combinator Blog
美团技术团队
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
阮一峰的网络日志
阮一峰的网络日志
aimingoo的专栏
aimingoo的专栏
H
Hackread – Cybersecurity News, Data Breaches, AI and More
MyScale Blog
MyScale Blog
GbyAI
GbyAI
人人都是产品经理
人人都是产品经理
T
Tailwind CSS Blog
MongoDB | Blog
MongoDB | Blog
D
DataBreaches.Net
博客园 - Franky
Engineering at Meta
Engineering at Meta
量子位
The GitHub Blog
The GitHub Blog
F
Fortinet All Blogs
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
酷 壳 – CoolShell
酷 壳 – CoolShell
N
Netflix TechBlog - Medium

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): keep plain status from probing embedding pro...
clawsweeper · 2026-05-04 · via Recent Commits to openclaw:main

@@ -215,8 +215,9 @@ describe("memory cli", () => {

215215216216

it("prints vector status when available", async () => {

217217

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

218+

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

218219

mockManager({

219-

probeVectorAvailability: vi.fn(async () => true),

220+

probeVectorAvailability,

220221

status: () =>

221222

makeMemoryStatus({

222223

files: 2,

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

236237

const log = spyRuntimeLogs(defaultRuntime);

237238

await runMemoryCli(["status"]);

238239240+

expect(probeVectorAvailability).not.toHaveBeenCalled();

239241

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

240242

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

241243

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

@@ -246,6 +248,36 @@ describe("memory cli", () => {

246248

expect(close).toHaveBeenCalled();

247249

});

248250251+

it("keeps plain status from probing vector or embeddings", async () => {

252+

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

253+

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

254+

throw new Error("unexpected vector probe");

255+

});

256+

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

257+

throw new Error("unexpected embedding probe");

258+

});

259+

mockManager({

260+

probeVectorAvailability,

261+

probeEmbeddingAvailability,

262+

status: () =>

263+

makeMemoryStatus({

264+

provider: "auto",

265+

requestedProvider: "auto",

266+

vector: { enabled: true },

267+

}),

268+

close,

269+

});

270+271+

const log = spyRuntimeLogs(defaultRuntime);

272+

await runMemoryCli(["status"]);

273+274+

expect(probeVectorAvailability).not.toHaveBeenCalled();

275+

expect(probeEmbeddingAvailability).not.toHaveBeenCalled();

276+

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

277+

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

278+

expect(close).toHaveBeenCalled();

279+

});

280+249281

it("resolves configured memory SecretRefs through gateway snapshot", async () => {

250282

getRuntimeConfig.mockReturnValue({

251283

agents: {

@@ -335,9 +367,10 @@ describe("memory cli", () => {

335367336368

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

337369

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

370+

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

338371

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

339372

mockManager({

340-

probeVectorAvailability: vi.fn(async () => true),

373+

probeVectorAvailability,

341374

probeEmbeddingAvailability,

342375

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

343376

close,

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

346379

const log = spyRuntimeLogs(defaultRuntime);

347380

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

348381382+

expect(probeVectorAvailability).toHaveBeenCalled();

349383

expect(probeEmbeddingAvailability).toHaveBeenCalled();

350384

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

351385

expect(close).toHaveBeenCalled();

@@ -544,9 +578,10 @@ describe("memory cli", () => {

544578

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

545579

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

546580

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

581+

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

547582

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

548583

mockManager({

549-

probeVectorAvailability: vi.fn(async () => true),

584+

probeVectorAvailability,

550585

probeEmbeddingAvailability,

551586

sync,

552587

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

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

557592

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

558593559594

expectCliSync(sync);

595+

expect(probeVectorAvailability).toHaveBeenCalled();

560596

expect(probeEmbeddingAvailability).toHaveBeenCalled();

561597

expect(getMemorySearchManager).toHaveBeenCalledWith({

562598

cfg: {},

@@ -723,8 +759,15 @@ describe("memory cli", () => {

723759724760

it("prints status json output when requested", async () => {

725761

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

762+

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

763+

throw new Error("unexpected vector probe");

764+

});

765+

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

766+

throw new Error("unexpected embedding probe");

767+

});

726768

mockManager({

727-

probeVectorAvailability: vi.fn(async () => true),

769+

probeVectorAvailability,

770+

probeEmbeddingAvailability,

728771

status: () => makeMemoryStatus({ workspaceDir: undefined }),

729772

close,

730773

});

@@ -739,6 +782,8 @@ describe("memory cli", () => {

739782

}

740783

expect(Array.isArray(payload)).toBe(true);

741784

expect((payload[0] as Record<string, unknown>)?.agentId).toBe("main");

785+

expect(probeVectorAvailability).not.toHaveBeenCalled();

786+

expect(probeEmbeddingAvailability).not.toHaveBeenCalled();

742787

expect(close).toHaveBeenCalled();

743788

});

744789