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

推荐订阅源

WordPress大学
WordPress大学
大猫的无限游戏
大猫的无限游戏
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 叶小钗
月光博客
月光博客
Last Week in AI
Last Week in AI
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
人人都是产品经理
人人都是产品经理
阮一峰的网络日志
阮一峰的网络日志
罗磊的独立博客
IT之家
IT之家
美团技术团队
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Hugging Face - Blog
Hugging Face - Blog
博客园_首页
S
SegmentFault 最新的问题
宝玉的分享
宝玉的分享
博客园 - Franky
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Jina AI
Jina AI
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
The Cloudflare Blog
博客园 - 司徒正美
爱范儿
爱范儿

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: classify active memory no-relevant status (#80015) ·...
steipete · 2026-05-10 · via Recent Commits to openclaw:main

@@ -2031,7 +2031,7 @@ describe("active-memory plugin", () => {

20312031

{ pluginId: "other-plugin", lines: ["Other Plugin: keep me"] },

20322032

{

20332033

pluginId: "active-memory",

2034-

lines: [expect.stringContaining("🧩 Active Memory: status=empty")],

2034+

lines: [expect.stringContaining("🧩 Active Memory: status=no_relevant_memory")],

20352035

},

20362036

]);

20372037

});

@@ -2073,8 +2073,7 @@ describe("active-memory plugin", () => {

20732073

expect(hasDebugLine("no configured memory tools available")).toBe(true);

20742074

expect(hasWarnLine("No callable tools remain")).toBe(false);

20752075

const lines = getActiveMemoryLines(sessionKey);

2076-

expect(lines).toEqual([expect.stringContaining("🧩 Active Memory: status=empty")]);

2077-

expect(lines.join("\n")).not.toContain("status=unavailable");

2076+

expect(lines).toEqual([expect.stringContaining("🧩 Active Memory: status=unavailable")]);

20782077

});

2079207820802079

it("skips missing memory tools when the allowlist error includes inherited sources", async () => {

@@ -2099,7 +2098,7 @@ describe("active-memory plugin", () => {

20992098

expect(hasDebugLine("no configured memory tools available")).toBe(true);

21002099

expect(hasWarnLine("No callable tools remain")).toBe(false);

21012100

expect(getActiveMemoryLines(sessionKey)).toEqual([

2102-

expect.stringContaining("🧩 Active Memory: status=empty"),

2101+

expect.stringContaining("🧩 Active Memory: status=unavailable"),

21032102

]);

21042103

});

21052104

@@ -2131,7 +2130,7 @@ describe("active-memory plugin", () => {

21312130

expect(result).toBeUndefined();

21322131

expect(hasDebugLine("no configured memory tools available")).toBe(true);

21332132

expect(getActiveMemoryLines(sessionKey)).toEqual([

2134-

expect.stringContaining("🧩 Active Memory: status=empty"),

2133+

expect.stringContaining("🧩 Active Memory: status=unavailable"),

21352134

]);

21362135

});

21372136

@@ -2157,7 +2156,7 @@ describe("active-memory plugin", () => {

21572156

expect(hasDebugLine("no configured memory tools available")).toBe(true);

21582157

expect(hasWarnLine("No callable tools remain")).toBe(false);

21592158

expect(getActiveMemoryLines(sessionKey)).toEqual([

2160-

expect.stringContaining("🧩 Active Memory: status=empty"),

2159+

expect.stringContaining("🧩 Active Memory: status=unavailable"),

21612160

]);

21622161

});

21632162

@@ -2185,7 +2184,7 @@ describe("active-memory plugin", () => {

21852184

expect(hasDebugLine("no configured memory tools available")).toBe(false);

21862185

expect(hasWarnLine(reason)).toBe(true);

21872186

expect(getActiveMemoryLines(sessionKey)).toEqual([

2188-

expect.stringContaining("🧩 Active Memory: status=empty"),

2187+

expect.stringContaining("🧩 Active Memory: status=failed"),

21892188

]);

21902189

},

21912190

);

@@ -2521,7 +2520,7 @@ describe("active-memory plugin", () => {

2521252025222521

expect(result).toBeUndefined();

25232522

expect(getActiveMemoryLines(sessionKey)).toEqual([

2524-

expect.stringContaining("🧩 Active Memory: status=empty"),

2523+

expect.stringContaining("🧩 Active Memory: status=failed"),

25252524

]);

25262525

expect(getActiveMemoryLines(sessionKey).join("\n")).not.toContain(

25272526

"must not be surfaced from generic errors",

@@ -2625,7 +2624,7 @@ describe("active-memory plugin", () => {

26252624

).resolves.toMatchObject({ backend: "qmd", hits: 1 });

26262625

});

262726262628-

it("caches ok and empty results but not timeout_partial results", () => {

2627+

it("caches ok summaries but not empty, no-relevant, or timeout_partial results", () => {

26292628

expect(

26302629

__testing.shouldCacheResult({

26312630

status: "timeout_partial",

@@ -2647,10 +2646,17 @@ describe("active-memory plugin", () => {

26472646

elapsedMs: 1,

26482647

summary: null,

26492648

}),

2650-

).toBe(true);

2649+

).toBe(false);

2650+

expect(

2651+

__testing.shouldCacheResult({

2652+

status: "no_relevant_memory",

2653+

elapsedMs: 1,

2654+

summary: null,

2655+

}),

2656+

).toBe(false);

26512657

});

265226582653-

it("caches empty recall results", async () => {

2659+

it("does not cache no-relevant-memory recall results", async () => {

26542660

api.pluginConfig = {

26552661

agents: ["main"],

26562662

logging: true,

@@ -2679,16 +2685,11 @@ describe("active-memory plugin", () => {

26792685

},

26802686

);

268126872682-

expect(runEmbeddedPiAgent).toHaveBeenCalledTimes(1);

2688+

expect(runEmbeddedPiAgent).toHaveBeenCalledTimes(2);

26832689

const infoLines = vi

26842690

.mocked(api.logger.info)

26852691

.mock.calls.map((call: unknown[]) => String(call[0]));

2686-

expect(

2687-

infoLines.some(

2688-

(line: string) =>

2689-

line.includes(" cached status=empty ") || line.includes(" cached status=empty"),

2690-

),

2691-

).toBe(true);

2692+

expect(infoLines.some((line: string) => line.includes("cached status="))).toBe(false);

26922693

});

2693269426942695

it("surfaces timeout_partial summaries in status lines, metadata, and prompt prefixes", () => {

@@ -2911,7 +2912,7 @@ describe("active-memory plugin", () => {

29112912

expect(wallClockMs).toBeLessThan(CONFIGURED_TIMEOUT_MS + HARD_DEADLINE_MARGIN_MS);

29122913

});

291329142914-

it("fast-fails terminal zero-hit memory_search results without waiting for recall timeout", async () => {

2915+

it("does not fast-fail terminal zero-hit memory_search results as empty", async () => {

29152916

const CONFIGURED_TIMEOUT_MS = 1_000;

29162917

__testing.setMinimumTimeoutMsForTests(1);

29172918

__testing.setSetupGraceTimeoutMsForTests(0);

@@ -2947,10 +2948,10 @@ describe("active-memory plugin", () => {

29472948

const infoLines = vi

29482949

.mocked(api.logger.info)

29492950

.mock.calls.map((call: unknown[]) => String(call[0]));

2950-

expectLinesToContain(infoLines, "done status=empty");

2951-

expectLinesNotToContain(infoLines, "done status=timeout");

2951+

expectLinesToContain(infoLines, "done status=timeout");

2952+

expectLinesNotToContain(infoLines, "done status=empty");

29522953

expect(getActiveMemoryLines(sessionKey)).toEqual([

2953-

expect.stringContaining("🧩 Active Memory: status=empty"),

2954+

expect.stringContaining("🧩 Active Memory: status=timeout"),

29542955

expect.stringContaining("🔎 Active Memory Debug: backend=qmd searchMs=8 hits=0"),

29552956

]);

29562957

});

@@ -3039,10 +3040,10 @@ describe("active-memory plugin", () => {

30393040

const infoLines = vi

30403041

.mocked(api.logger.info)

30413042

.mock.calls.map((call: unknown[]) => String(call[0]));

3042-

expectLinesToContain(infoLines, "done status=empty");

3043+

expectLinesToContain(infoLines, "done status=unavailable");

30433044

expectLinesNotToContain(infoLines, "done status=timeout");

30443045

expect(getActiveMemoryLines(sessionKey)).toEqual([

3045-

expect.stringContaining("🧩 Active Memory: status=empty"),

3046+

expect.stringContaining("🧩 Active Memory: status=unavailable"),

30463047

expect.stringContaining(

30473048

"🔎 Active Memory Debug: Memory search is unavailable due to an embedding/provider error. Check the embedding provider configuration, then retry memory_search.",

30483049

),

@@ -3301,7 +3302,7 @@ describe("active-memory plugin", () => {

33013302

{

33023303

pluginId: "active-memory",

33033304

lines: [

3304-

expect.stringContaining("🧩 Active Memory: status=empty"),

3305+

expect.stringContaining("🧩 Active Memory: status=unavailable"),

33053306

expect.stringContaining(

33063307

"🔎 Active Memory Debug: Memory search is unavailable because the embedding provider quota is exhausted. Top up or switch embedding provider, then retry memory_search.",

33073308

),