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

推荐订阅源

博客园_首页
博客园 - 【当耐特】
博客园 - 叶小钗
阮一峰的网络日志
阮一峰的网络日志
WordPress大学
WordPress大学
D
Docker
T
The Blog of Author Tim Ferriss
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Microsoft Azure Blog
Microsoft Azure Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
月光博客
月光博客
M
MIT News - Artificial intelligence
H
Hackread – Cybersecurity News, Data Breaches, AI and More
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
云风的 BLOG
云风的 BLOG
F
Fortinet All Blogs
罗磊的独立博客
小众软件
小众软件
A
About on SuperTechFans
MyScale Blog
MyScale Blog
D
DataBreaches.Net
The GitHub Blog
The GitHub Blog
C
Check Point Blog
L
LangChain 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
test: dedupe memory qmd mock reads · openclaw/openclaw@5d...
steipete · 2026-05-13 · via Recent Commits to openclaw:main

@@ -29,6 +29,25 @@ const MEMORY_EMBEDDING_PROVIDERS_KEY = Symbol.for("openclaw.memoryEmbeddingProvi

2929

const MCPORTER_STATE_KEY = Symbol.for("openclaw.mcporterState");

3030

const QMD_EMBED_QUEUE_KEY = Symbol.for("openclaw.qmdEmbedQueueTail");

313132+

type WatchOptions = {

33+

ignored?: (watchPath: string) => boolean;

34+

};

35+36+

type EmbedLockCall = [

37+

string,

38+

{

39+

retries: {

40+

retries: number;

41+

factor: number;

42+

minTimeout: number;

43+

maxTimeout: number;

44+

randomize: boolean;

45+

};

46+

stale: number;

47+

},

48+

() => Promise<unknown>,

49+

];

50+3251

interface MockChild extends EventEmitter {

3352

stdout: EventEmitter;

3453

stderr: EventEmitter;

@@ -83,6 +102,22 @@ function isMcporterCommand(cmd: unknown): boolean {

83102

return /(^|[\\/])mcporter(?:\.cmd)?$/i.test(cmd);

84103

}

85104105+

function firstWatchOptions(): WatchOptions {

106+

const call = watchMock.mock.calls[0] as unknown as [string[], WatchOptions] | undefined;

107+

if (!call) {

108+

throw new Error("Expected watch call");

109+

}

110+

return call[1];

111+

}

112+113+

function firstEmbedLockCall(): EmbedLockCall {

114+

const call = withFileLockMock.mock.calls[0] as EmbedLockCall | undefined;

115+

if (!call) {

116+

throw new Error("Expected qmd embed lock call");

117+

}

118+

return call;

119+

}

120+86121

vi.mock("openclaw/plugin-sdk/memory-core-host-engine-foundation", async () => {

87122

const actual = await vi.importActual<

88123

typeof import("openclaw/plugin-sdk/memory-core-host-engine-foundation")

@@ -457,10 +492,7 @@ describe("QmdMemoryManager", () => {

457492

};

458493

const initialUpdateCalls = spawnMock.mock.calls.filter((call) => call[1]?.[0] === "update");

459494

expect(initialUpdateCalls).toHaveLength(0);

460-

const [, watchOptions] = watchMock.mock.calls.at(0) as unknown as [

461-

string[],

462-

{ ignored?: (watchPath: string) => boolean },

463-

];

495+

const watchOptions = firstWatchOptions();

464496

expect(watchOptions.ignored?.(path.join(workspaceDir, "node_modules", "pkg", "note.md"))).toBe(

465497

true,

466498

);

@@ -3719,26 +3751,7 @@ describe("QmdMemoryManager", () => {

37193751

const firstSync = first.manager.sync({ reason: "manual", force: true });

37203752

await vi.advanceTimersByTimeAsync(0);

37213753

expect(embedChildren).toHaveLength(1);

3722-

const lockCall = withFileLockMock.mock.calls.at(0) as

3723-

| [

3724-

string,

3725-

{

3726-

retries: {

3727-

retries: number;

3728-

factor: number;

3729-

minTimeout: number;

3730-

maxTimeout: number;

3731-

randomize: boolean;

3732-

};

3733-

stale: number;

3734-

},

3735-

() => Promise<unknown>,

3736-

]

3737-

| undefined;

3738-

if (!lockCall) {

3739-

throw new Error("Expected qmd embed lock call");

3740-

}

3741-

const [lockPath, lockOptions, lockTask] = lockCall;

3754+

const [lockPath, lockOptions, lockTask] = firstEmbedLockCall();

37423755

expect(lockPath.endsWith(path.join("qmd", "embed.lock"))).toBe(true);

37433756

expect(lockOptions).toEqual({

37443757

retries: {