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

推荐订阅源

小众软件
小众软件
IT之家
IT之家
博客园 - 聂微东
www.infosecurity-magazine.com
www.infosecurity-magazine.com
P
Privacy International News Feed
人人都是产品经理
人人都是产品经理
PCI Perspectives
PCI Perspectives
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 叶小钗
V
Vulnerabilities – Threatpost
美团技术团队
S
Secure Thoughts
N
News | PayPal Newsroom
L
LINUX DO - 最新话题
腾讯CDC
Application and Cybersecurity Blog
Application and Cybersecurity Blog
雷峰网
雷峰网
B
Blog
MyScale Blog
MyScale Blog
T
The Blog of Author Tim Ferriss
TaoSecurity Blog
TaoSecurity Blog
N
News and Events Feed by Topic
Blog — PlanetScale
Blog — PlanetScale
C
Check Point Blog
T
Tailwind CSS Blog
月光博客
月光博客
Simon Willison's Weblog
Simon Willison's Weblog
Hacker News: Ask HN
Hacker News: Ask HN
The Last Watchdog
The Last Watchdog
Google DeepMind News
Google DeepMind News
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
MongoDB | Blog
MongoDB | Blog
S
Security @ Cisco Blogs
Jina AI
Jina AI
Engineering at Meta
Engineering at Meta
S
Security Affairs
Forbes - Security
Forbes - Security
P
Palo Alto Networks Blog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
博客园 - 司徒正美
博客园 - 三生石上(FineUI控件)
T
Tor Project blog
O
OpenAI News
L
Lohrmann on Cybersecurity
Security Archives - TechRepublic
Security Archives - TechRepublic
P
Proofpoint News Feed
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
L
LangChain Blog
B
Blog RSS Feed
H
Hackread – Cybersecurity News, Data Breaches, AI and More

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: trim doctor command hotspots · openclaw/openclaw@c66f16a test: isolate agent auth and spawn hotspots · openclaw/openclaw@9285935 test: stabilize MCP startup disposal race · openclaw/openclaw@dd9d2eb test: merge browser contract server suites · openclaw/openclaw@5817a76 test: narrow ollama provider discovery setup · openclaw/openclaw@a0d9598 build: declare qa-lab aimock runtime dependency · openclaw/openclaw@24431e5 test: speed up safe-bins exec harness · openclaw/openclaw@ee856ab test: preserve tool helpers in embedded runner mocks · openclaw/openclaw@acd86a0 refactor: move memory embeddings into provider plugins · openclaw/openclaw@77e6e4c test: reuse system-run temp fixtures · openclaw/openclaw@7e9ff0f test: trim hotspot wait overhead · openclaw/openclaw@12a59b0 Check: avoid duplicate boundary prep · openclaw/openclaw@baf11b8 test: reduce hotspot fixture overhead · openclaw/openclaw@3a59edd feat(ui): overhaul settings and slash command UX (#67819) thanks @Bun… · openclaw/openclaw@2cfb660 QA Matrix: exit cleanly on failure · openclaw/openclaw@42805d2 QA Matrix: isolate scenario coverage · openclaw/openclaw@7e659e1 Matrix: refresh crypto bootstrap state · openclaw/openclaw@94081d8 QA Lab: add provider registry · openclaw/openclaw@bb7e982 Matrix: add plugin changelog · openclaw/openclaw@4acab55 test: trim more hotspot overhead · openclaw/openclaw@f485311 test: trim remaining hotspot tests · openclaw/openclaw@6ba8626 test: narrow hotspot mocks · openclaw/openclaw@dbc8179 test: isolate gemini embedding request helpers · openclaw/openclaw@cd330f5 test: trim memory and mcp hotspots · openclaw/openclaw@fd48dfa test: slim provider registry mocks · openclaw/openclaw@2e08c77 test: harden Parallels update smoke · openclaw/openclaw@1a98090 feat: default Anthropic to Opus 4.7 · openclaw/openclaw@628b454 fix: harden node-host shell payload mutability checks · openclaw/openclaw@75c551e fix: land node-host approval binding for native binaries (#66731) (th… · openclaw/openclaw@29919bb CI: add daily schedule to CodeQL workflow (#67645) · openclaw/openclaw@69d25f5 fix(gateway): capture config hash after plugin auto-enable to prevent… · openclaw/openclaw@8c11210 fix: repair sanitized replay tool results before send (#67620) (thank… · openclaw/openclaw@c3c7a99 fix: restrict HTML timeout short-circuit to transient statuses · openclaw/openclaw@de129a6 fix: keep TUI watchdog bound to active run (#67401) (thanks @xantorres) · openclaw/openclaw@3525273 Gateway/skills: dedupe skills prefix-match + drop dead fallback on log · openclaw/openclaw@d7f489f Extensions/lmstudio: back off inference preload after consecutive fai… · openclaw/openclaw@b555214 TUI/streaming: add watchdog that resets the activity indicator after … · openclaw/openclaw@f44ab20 Agents/tool-loop: enable unknown-tool stream guard by default · openclaw/openclaw@36ed367 Gateway/skills: invalidate session skills snapshot on config write · openclaw/openclaw@b23d59a fix: classify HTML provider error pages correctly (#67642) (thanks @s… · openclaw/openclaw@e588e90 fix(skills): remove unused model-usage import (#67641) · openclaw/openclaw@55f05df docs(changelog): credit codex fix superseded PRs · openclaw/openclaw@e485f24 fix(openai-codex): normalize stale transport metadata in resolution a… · openclaw/openclaw@90801ba CI: pin Docker-related GitHub Actions (#67632) · openclaw/openclaw@f697b01 Android: modernize WebView and discovery API usage (#67627) · openclaw/openclaw@44a6e50 fix(deps): bump hono to 4.12.14 and @hono/node-server to 1.19.14 (GHS… · openclaw/openclaw@fbccc18 fix(deps): bump dompurify to 3.4.0 (#67614) · openclaw/openclaw@2c2dc00 CI: add explicit permissions to all workflow jobs (fixes code-scannin… · openclaw/openclaw@01b7516 fix: register bundled TTS providers and route overrides correctly (#6… · openclaw/openclaw@6ea3cdd fix: align host tilde paths with OS home (#62804) (thanks @stainlu) · openclaw/openclaw@ecfaf64 fix: flush creds queue before reconnect socket open (#67464) (thanks … · openclaw/openclaw@405c63f fix: strip standalone <function> tool call tags from visible text (#6… · openclaw/openclaw@78df859 fix(agents): preserve cli session metadata before transcript persist … · openclaw/openclaw@898fd04 docs(changelog): move cli transcript entry · openclaw/openclaw@c1817c6 fix(agents): normalize cli transcript api field · openclaw/openclaw@3a3fae0 docs(changelog): note cli transcript persistence · openclaw/openclaw@6c343f1 fix(agents): persist cli transcript turns · openclaw/openclaw@b8ef507 fix(msteams): harden security-sensitive flows (#65841) · openclaw/openclaw@c56b56e [Dashboard] Fix exec approval modal overflow for long command content… · openclaw/openclaw@053c5b0 Docs: remove QA changelog entry · openclaw/openclaw@7fd5771 QA: fix private runtime source loading (#67428) · openclaw/openclaw@d5933af docs(gateway): correct protocol.md schema path, hello-ok example, aut… · openclaw/openclaw@489404d CI: pin Node 22 runners to 22.18.0 · openclaw/openclaw@4ffa621 models.authStatus: normalize provider ids + tighten env-backed escape… · openclaw/openclaw@f2fdb9d Update CHANGELOG.md · openclaw/openclaw@7694a92 test(parallels): clean up npm update guard jobs · openclaw/openclaw@045ea7b Plugins: prefer scanDir override paths · openclaw/openclaw@b2974da fix(dreaming): default storage.mode to "separate" so phase blocks sto… · openclaw/openclaw@8c392f0 fix(memory-core): skip dreaming transcript ingestion via session stor… · openclaw/openclaw@a1b01f0 fix: dedupe replayed exec.finished node events (#67281) · openclaw/openclaw@5dcf526
test: stabilize active memory timeout mocks · openclaw/openclaw@6c74302
steipete · 2026-05-06 · via Recent Commits to openclaw:main

@@ -125,6 +125,20 @@ describe("active-memory plugin", () => {

125125

"utf8",

126126

);

127127

};

128+

const waitForAbort = async (abortSignal?: AbortSignal): Promise<never> => {

129+

if (abortSignal?.aborted) {

130+

throw (abortSignal.reason as unknown) ?? new Error("Operation aborted");

131+

}

132+

return await new Promise<never>((_resolve, reject) => {

133+

abortSignal?.addEventListener(

134+

"abort",

135+

() => {

136+

reject((abortSignal.reason as unknown) ?? new Error("Operation aborted"));

137+

},

138+

{ once: true },

139+

);

140+

});

141+

};

128142

const makeMemoryToolAllowlistError = (

129143

reason: string,

130144

sources = "runtime toolsAllow: memory_recall, memory_search, memory_get",

@@ -145,6 +159,7 @@ describe("active-memory plugin", () => {

145159146160

beforeEach(async () => {

147161

vi.clearAllMocks();

162+

runEmbeddedPiAgent.mockReset();

148163

stateDir = await fs.mkdtemp(path.join(os.tmpdir(), "openclaw-active-memory-test-"));

149164

configFile = {

150165

plugins: {

@@ -171,6 +186,9 @@ describe("active-memory plugin", () => {

171186

},

172187

},

173188

};

189+

for (const key of Object.keys(hoisted.sessionStore)) {

190+

delete hoisted.sessionStore[key];

191+

}

174192

hoisted.sessionStore["agent:main:main"] = {

175193

sessionId: "s-main",

176194

updatedAt: 0,

@@ -1547,26 +1565,28 @@ describe("active-memory plugin", () => {

15471565

const sessionKey = "agent:main:transcript-debug";

15481566

hoisted.sessionStore[sessionKey] = { sessionId: "s-main", updatedAt: 0 };

154915671550-

runEmbeddedPiAgent.mockImplementationOnce(async (params: { sessionFile: string }) => {

1551-

const lines = [

1552-

JSON.stringify({

1553-

message: {

1554-

role: "toolResult",

1555-

toolName: "memory_search",

1556-

details: { debug: { backend: "qmd", hits: 3 } },

1557-

},

1558-

}),

1559-

JSON.stringify({

1560-

message: {

1561-

role: "toolResult",

1562-

toolName: "memory_search",

1563-

details: {},

1564-

},

1565-

}),

1566-

];

1567-

await fs.writeFile(params.sessionFile, `${lines.join("\n")}\n`, "utf8");

1568-

return { payloads: [{ text: "wings are fine." }] };

1569-

});

1568+

runEmbeddedPiAgent.mockImplementationOnce(

1569+

async (params: { sessionFile: string; abortSignal?: AbortSignal }) => {

1570+

const lines = [

1571+

JSON.stringify({

1572+

message: {

1573+

role: "toolResult",

1574+

toolName: "memory_search",

1575+

details: { debug: { backend: "qmd", hits: 3 } },

1576+

},

1577+

}),

1578+

JSON.stringify({

1579+

message: {

1580+

role: "toolResult",

1581+

toolName: "memory_search",

1582+

details: {},

1583+

},

1584+

}),

1585+

];

1586+

await fs.writeFile(params.sessionFile, `${lines.join("\n")}\n`, "utf8");

1587+

return { payloads: [{ text: "wings are fine." }] };

1588+

},

1589+

);

1570159015711591

await hooks.before_prompt_build(

15721592

{ prompt: "debug transcript bug", messages: [] },

@@ -1807,27 +1827,29 @@ describe("active-memory plugin", () => {

18071827

sessionId: "s-timeout-partial",

18081828

updatedAt: 0,

18091829

};

1810-

runEmbeddedPiAgent.mockImplementationOnce(async (params: { sessionFile: string }) => {

1811-

await writeTranscriptJsonl(

1812-

params.sessionFile,

1813-

[

1814-

{ type: "message", message: { role: "user", content: "ignore this user text" } },

1815-

{

1816-

type: "message",

1817-

message: { role: "assistant", content: "alpha beta gamma delta" },

1818-

},

1819-

{

1820-

type: "message",

1821-

message: {

1822-

role: "assistant",

1823-

content: [{ type: "text", text: "epsilon zeta eta theta" }],

1830+

runEmbeddedPiAgent.mockImplementationOnce(

1831+

async (params: { sessionFile: string; abortSignal?: AbortSignal }) => {

1832+

await writeTranscriptJsonl(

1833+

params.sessionFile,

1834+

[

1835+

{ type: "message", message: { role: "user", content: "ignore this user text" } },

1836+

{

1837+

type: "message",

1838+

message: { role: "assistant", content: "alpha beta gamma delta" },

18241839

},

1825-

},

1826-

],

1827-

"\n{",

1828-

);

1829-

return await new Promise<never>(() => {});

1830-

});

1840+

{

1841+

type: "message",

1842+

message: {

1843+

role: "assistant",

1844+

content: [{ type: "text", text: "epsilon zeta eta theta" }],

1845+

},

1846+

},

1847+

],

1848+

"\n{",

1849+

);

1850+

return await waitForAbort(params.abortSignal);

1851+

},

1852+

);

1831185318321854

const result = await hooks.before_prompt_build(

18331855

{ prompt: "what wings should i order? timeout partial", messages: [] },

@@ -1879,15 +1901,7 @@ describe("active-memory plugin", () => {

18791901

message: { role: "assistant", content: "temporary partial recall summary" },

18801902

},

18811903

]);

1882-

await new Promise<never>((_resolve, reject) => {

1883-

params.abortSignal?.addEventListener(

1884-

"abort",

1885-

() => {

1886-

reject(params.abortSignal?.reason ?? new Error("Operation aborted"));

1887-

},

1888-

{ once: true },

1889-

);

1890-

});

1904+

await waitForAbort(params.abortSignal);

18911905

},

18921906

);

18931907

@@ -1899,7 +1913,9 @@ describe("active-memory plugin", () => {

18991913

expect(result).toEqual({

19001914

prependContext: expect.stringContaining("temporary partial recall summary"),

19011915

});

1902-

await expect(fs.access(tempSessionFile)).rejects.toThrow();

1916+

await vi.waitFor(async () => {

1917+

await expect(fs.access(tempSessionFile)).rejects.toThrow();

1918+

});

19031919

expect(getActiveMemoryLines(sessionKey)).toEqual(

19041920

expect.arrayContaining([

19051921

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

@@ -1925,10 +1941,12 @@ describe("active-memory plugin", () => {

19251941

sessionId: "s-timeout-empty-transcript",

19261942

updatedAt: 0,

19271943

};

1928-

runEmbeddedPiAgent.mockImplementationOnce(async (params: { sessionFile: string }) => {

1929-

await fs.writeFile(params.sessionFile, "", "utf8");

1930-

return await new Promise<never>(() => {});

1931-

});

1944+

runEmbeddedPiAgent.mockImplementationOnce(

1945+

async (params: { sessionFile: string; abortSignal?: AbortSignal }) => {

1946+

await fs.writeFile(params.sessionFile, "", "utf8");

1947+

return await waitForAbort(params.abortSignal);

1948+

},

1949+

);

1932195019331951

const result = await hooks.before_prompt_build(

19341952

{ prompt: "what wings should i order? empty timeout transcript", messages: [] },

@@ -1956,7 +1974,9 @@ describe("active-memory plugin", () => {

19561974

sessionId: "s-timeout-missing-transcript",

19571975

updatedAt: 0,

19581976

};

1959-

runEmbeddedPiAgent.mockImplementationOnce(async () => await new Promise<never>(() => {}));

1977+

runEmbeddedPiAgent.mockImplementationOnce(

1978+

async (params: { abortSignal?: AbortSignal }) => await waitForAbort(params.abortSignal),

1979+

);

1960198019611981

const result = await hooks.before_prompt_build(

19621982

{ prompt: "what wings should i order? missing timeout transcript", messages: [] },

@@ -1983,18 +2003,20 @@ describe("active-memory plugin", () => {

19832003

sessionId: "s-timeout-boilerplate-transcript",

19842004

updatedAt: 0,

19852005

};

1986-

runEmbeddedPiAgent.mockImplementationOnce(async (params: { sessionFile: string }) => {

1987-

await writeTranscriptJsonl(params.sessionFile, [

1988-

{

1989-

type: "message",

1990-

message: {

1991-

role: "assistant",

1992-

content: "LLM request timed out after 15000 ms.",

2006+

runEmbeddedPiAgent.mockImplementationOnce(

2007+

async (params: { sessionFile: string; abortSignal?: AbortSignal }) => {

2008+

await writeTranscriptJsonl(params.sessionFile, [

2009+

{

2010+

type: "message",

2011+

message: {

2012+

role: "assistant",

2013+

content: "LLM request timed out after 15000 ms.",

2014+

},

19932015

},

1994-

},

1995-

]);

1996-

await new Promise<never>(() => {});

1997-

});

2016+

]);

2017+

await waitForAbort(params.abortSignal);

2018+

},

2019+

);

1998202019992021

const result = await hooks.before_prompt_build(

20002022

{ prompt: "what wings should i order? timeout boilerplate", messages: [] },

@@ -2494,18 +2516,20 @@ describe("active-memory plugin", () => {

24942516

plugin.register(api as unknown as OpenClawPluginApi);

24952517

const sessionKey = "agent:main:terminal-zero-hit";

24962518

hoisted.sessionStore[sessionKey] = { sessionId: "s-terminal-zero-hit", updatedAt: 0 };

2497-

runEmbeddedPiAgent.mockImplementationOnce(async (params: { sessionFile: string }) => {

2498-

await writeTranscriptJsonl(params.sessionFile, [

2499-

{

2500-

message: {

2501-

role: "toolResult",

2502-

toolName: "memory_search",

2503-

details: { results: [], debug: { backend: "qmd", hits: 0, searchMs: 8 } },

2519+

runEmbeddedPiAgent.mockImplementationOnce(

2520+

async (params: { sessionFile: string; abortSignal?: AbortSignal }) => {

2521+

await writeTranscriptJsonl(params.sessionFile, [

2522+

{

2523+

message: {

2524+

role: "toolResult",

2525+

toolName: "memory_search",

2526+

details: { results: [], debug: { backend: "qmd", hits: 0, searchMs: 8 } },

2527+

},

25042528

},

2505-

},

2506-

]);

2507-

await new Promise<never>(() => {});

2508-

});

2529+

]);

2530+

await waitForAbort(params.abortSignal);

2531+

},

2532+

);

2509253325102534

const result = await hooks.before_prompt_build(

25112535

{ prompt: "what food do i usually order? zero hit", messages: [] },

@@ -2579,23 +2603,25 @@ describe("active-memory plugin", () => {

25792603

plugin.register(api as unknown as OpenClawPluginApi);

25802604

const sessionKey = "agent:main:terminal-unavailable";

25812605

hoisted.sessionStore[sessionKey] = { sessionId: "s-terminal-unavailable", updatedAt: 0 };

2582-

runEmbeddedPiAgent.mockImplementationOnce(async (params: { sessionFile: string }) => {

2583-

await writeTranscriptJsonl(params.sessionFile, [

2584-

{

2585-

message: {

2586-

role: "toolResult",

2587-

toolName: "memory_search",

2588-

details: {

2589-

disabled: true,

2590-

warning: "Memory search is unavailable due to an embedding/provider error.",

2591-

action: "Check the embedding provider configuration, then retry memory_search.",

2592-

error: "embedding request failed",

2606+

runEmbeddedPiAgent.mockImplementationOnce(

2607+

async (params: { sessionFile: string; abortSignal?: AbortSignal }) => {

2608+

await writeTranscriptJsonl(params.sessionFile, [

2609+

{

2610+

message: {

2611+

role: "toolResult",

2612+

toolName: "memory_search",

2613+

details: {

2614+

disabled: true,

2615+

warning: "Memory search is unavailable due to an embedding/provider error.",

2616+

action: "Check the embedding provider configuration, then retry memory_search.",

2617+

error: "embedding request failed",

2618+

},

25932619

},

25942620

},

2595-

},

2596-

]);

2597-

await new Promise<never>(() => {});

2598-

});

2621+

]);

2622+

await waitForAbort(params.abortSignal);

2623+

},

2624+

);

2599262526002626

const result = await hooks.before_prompt_build(

26012627

{ prompt: "what food do i usually order? unavailable", messages: [] },

@@ -3591,7 +3617,9 @@ describe("active-memory plugin", () => {

35913617

circuitBreakerCooldownMs: 60_000,

35923618

};

35933619

plugin.register(api as unknown as OpenClawPluginApi);

3594-

runEmbeddedPiAgent.mockImplementation(async () => await new Promise<never>(() => {}));

3620+

runEmbeddedPiAgent.mockImplementation(

3621+

async (params: { abortSignal?: AbortSignal }) => await waitForAbort(params.abortSignal),

3622+

);

3595362335963624

// First two calls should actually attempt the subagent (and timeout).

35973625

await hooks.before_prompt_build(

@@ -3646,7 +3674,9 @@ describe("active-memory plugin", () => {

36463674

plugin.register(api as unknown as OpenClawPluginApi);

3647367536483676

// First call: timeout (trips the breaker with max=1).

3649-

runEmbeddedPiAgent.mockImplementationOnce(async () => await new Promise<never>(() => {}));

3677+

runEmbeddedPiAgent.mockImplementationOnce(

3678+

async (params: { abortSignal?: AbortSignal }) => await waitForAbort(params.abortSignal),

3679+

);

36503680

await hooks.before_prompt_build(

36513681

{ prompt: "cb reset test timeout", messages: [] },

36523682

{