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

推荐订阅源

Martin Fowler
Martin Fowler
Y
Y Combinator Blog
M
MIT News - Artificial intelligence
The Cloudflare Blog
WordPress大学
WordPress大学
H
Hackread – Cybersecurity News, Data Breaches, AI and More
博客园 - 司徒正美
小众软件
小众软件
Blog — PlanetScale
Blog — PlanetScale
雷峰网
雷峰网
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
J
Java Code Geeks
云风的 BLOG
云风的 BLOG
C
Check Point Blog
D
DataBreaches.Net
T
The Blog of Author Tim Ferriss
V
V2EX
F
Fortinet All Blogs
B
Blog
大猫的无限游戏
大猫的无限游戏
N
Netflix TechBlog - Medium
B
Blog RSS Feed
A
About on SuperTechFans
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC

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(codex): avoid forced-tool allowlist flake · openclaw...
steipete · 2026-05-23 · via Recent Commits to openclaw:main

@@ -555,6 +555,14 @@ async function buildDynamicToolsForTest(

555555

});

556556

}

557557558+

function filterAllowedRuntimeToolNamesForTest(

559+

params: EmbeddedRunAttemptParams,

560+

tools: RuntimeDynamicToolForTest[],

561+

) {

562+

const toolsAllow = testing.includeForcedCodexDynamicToolAllow(params.toolsAllow, params);

563+

return testing.filterCodexDynamicToolsForAllowlist(tools, toolsAllow).map((tool) => tool.name);

564+

}

565+558566

type RuntimeDynamicToolForTest = Parameters<

559567

typeof createCodexDynamicToolBridge

560568

>[0]["tools"][number];

@@ -2260,73 +2268,53 @@ describe("runCodexAppServerAttempt", () => {

22602268

expect(result.assistantTexts).toEqual(["Nested done."]);

22612269

});

226222702263-

it("keeps forced message dynamic tool when toolsAllow omits it", async () => {

2264-

testing.setOpenClawCodingToolsFactoryForTests(() => [

2265-

createRuntimeDynamicTool("message"),

2266-

createRuntimeDynamicTool("music_generate"),

2267-

]);

2271+

it("keeps forced message dynamic tool when toolsAllow omits it", () => {

22682272

const workspaceDir = path.join(tempDir, "workspace");

22692273

const params = createParams(path.join(tempDir, "session.jsonl"), workspaceDir);

22702274

params.disableTools = false;

22712275

params.runtimePlan = createCodexRuntimePlanFixture();

22722276

params.sourceReplyDeliveryMode = "message_tool_only";

22732277

params.toolsAllow = ["music_generate"];

227422782275-

const dynamicToolNames = (

2276-

await buildDynamicToolsForTest(params, workspaceDir, {

2277-

forceHeartbeatTool: true,

2278-

ignoreRuntimePlan: true,

2279-

})

2280-

).map((tool) => tool.name);

2279+

const dynamicToolNames = filterAllowedRuntimeToolNamesForTest(params, [

2280+

createRuntimeDynamicTool("message"),

2281+

createRuntimeDynamicTool("music_generate"),

2282+

]);

2281228322822284

expect(dynamicToolNames).toContain("message");

22832285

expect(dynamicToolNames).toContain("music_generate");

22842286

});

228522872286-

it("keeps forced message dynamic tool when toolsAllow is empty", async () => {

2287-

testing.setOpenClawCodingToolsFactoryForTests((options) => [

2288+

it("keeps forced message dynamic tool when toolsAllow is empty", () => {

2289+

const tools = [

22882290

createRuntimeDynamicTool("message"),

22892291

createRuntimeDynamicTool("music_generate"),

2290-

...(options?.forceHeartbeatTool === true

2291-

? [createRuntimeDynamicTool("heartbeat_respond")]

2292-

: []),

2293-

]);

2292+

createRuntimeDynamicTool("heartbeat_respond"),

2293+

];

22942294

const workspaceDir = path.join(tempDir, "workspace");

22952295

const params = createParams(path.join(tempDir, "session.jsonl"), workspaceDir);

22962296

params.disableTools = false;

22972297

params.runtimePlan = createCodexRuntimePlanFixture();

22982298

params.sourceReplyDeliveryMode = "message_tool_only";

22992299

params.toolsAllow = [];

230023002301-

const dynamicToolNames = (

2302-

await buildDynamicToolsForTest(params, workspaceDir, {

2303-

forceHeartbeatTool: true,

2304-

ignoreRuntimePlan: true,

2305-

})

2306-

).map((tool) => tool.name);

2301+

const dynamicToolNames = filterAllowedRuntimeToolNamesForTest(params, tools);

2307230223082303

expect(dynamicToolNames).toEqual(["message"]);

23092304

});

231023052311-

it("keeps forced heartbeat registration inside narrow toolsAllow policy", async () => {

2312-

testing.setOpenClawCodingToolsFactoryForTests((options) => [

2306+

it("keeps forced heartbeat registration inside narrow toolsAllow policy", () => {

2307+

const tools = [

23132308

createRuntimeDynamicTool("message"),

2314-

...(options?.forceHeartbeatTool === true

2315-

? [createRuntimeDynamicTool("heartbeat_respond")]

2316-

: []),

2317-

]);

2309+

createRuntimeDynamicTool("heartbeat_respond"),

2310+

];

23182311

const workspaceDir = path.join(tempDir, "workspace");

23192312

const params = createParams(path.join(tempDir, "session.jsonl"), workspaceDir);

23202313

params.disableTools = false;

23212314

params.runtimePlan = createCodexRuntimePlanFixture();

23222315

params.toolsAllow = ["message"];

232323162324-

const dynamicToolNames = (

2325-

await buildDynamicToolsForTest(params, workspaceDir, {

2326-

forceHeartbeatTool: true,

2327-

ignoreRuntimePlan: true,

2328-

})

2329-

).map((tool) => tool.name);

2317+

const dynamicToolNames = filterAllowedRuntimeToolNamesForTest(params, tools);

2330231823312319

expect(dynamicToolNames).toEqual(["message"]);

23322320

});