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

推荐订阅源

aimingoo的专栏
aimingoo的专栏
腾讯CDC
Y
Y Combinator Blog
L
LangChain Blog
B
Blog
U
Unit 42
P
Proofpoint News Feed
G
Google Developers Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - 【当耐特】
WordPress大学
WordPress大学
月光博客
月光博客
Vercel News
Vercel News
雷峰网
雷峰网
T
The Blog of Author Tim Ferriss
MyScale Blog
MyScale Blog
大猫的无限游戏
大猫的无限游戏
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
酷 壳 – CoolShell
酷 壳 – CoolShell
Blog — PlanetScale
Blog — PlanetScale
博客园 - 司徒正美
云风的 BLOG
云风的 BLOG
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & 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(perf): shorten codex app-server hot test · openclaw/...
steipete · 2026-05-06 · via Recent Commits to openclaw:main

@@ -498,42 +498,15 @@ describe("runCodexAppServerAttempt", () => {

498498

);

499499

});

500500501-

it("forces the message dynamic tool for message-tool-only source replies", async () => {

501+

it("forces the message dynamic tool for message-tool-only source replies", () => {

502502

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

503503

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

504-

params.disableTools = false;

505-

params.config = { tools: { profile: "coding" } };

506504

params.sourceReplyDeliveryMode = "message_tool_only";

507-

params.messageProvider = "whatsapp";

508-

params.runtimePlan = buildCodexRuntimePlan(params, workspaceDir);

509-

let seenForceMessageTool: boolean | undefined;

510-

__testing.setOpenClawCodingToolsFactoryForTests((options) => {

511-

seenForceMessageTool = options?.forceMessageTool;

512-

return [

513-

{

514-

name: "message",

515-

description: "message test tool",

516-

parameters: { type: "object", properties: {} },

517-

execute: vi.fn(),

518-

},

519-

] as never;

520-

});

521505522-

const dynamicTools = await __testing.buildDynamicTools({

523-

params,

524-

resolvedWorkspace: workspaceDir,

525-

effectiveWorkspace: workspaceDir,

526-

sandboxSessionKey: "agent:main:session-1",

527-

sandbox: null,

528-

runAbortController: new AbortController(),

529-

sessionAgentId: "main",

530-

pluginConfig: {},

531-

onYieldDetected: () => undefined,

532-

});

533-

const dynamicToolNames = dynamicTools.map((tool) => tool.name);

506+

expect(__testing.shouldForceMessageTool(params)).toBe(true);

534507535-

expect(seenForceMessageTool).toBe(true);

536-

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

508+

params.sourceReplyDeliveryMode = "automatic";

509+

expect(__testing.shouldForceMessageTool(params)).toBe(false);

537510

});

538511539512

it("passes the live run session key to Codex dynamic tools when sandbox policy uses another key", async () => {

@@ -1713,87 +1686,6 @@ describe("runCodexAppServerAttempt", () => {

17131686

await run;

17141687

});

171516881716-

it("routes MCP approval elicitations through the native bridge", async () => {

1717-

let notify: (notification: CodexServerNotification) => Promise<void> = async () => undefined;

1718-

let handleRequest:

1719-

| ((request: { id: string; method: string; params?: unknown }) => Promise<unknown>)

1720-

| undefined;

1721-

const bridgeSpy = vi

1722-

.spyOn(elicitationBridge, "handleCodexAppServerElicitationRequest")

1723-

.mockResolvedValue({

1724-

action: "accept",

1725-

content: null,

1726-

_meta: null,

1727-

});

1728-

const request = vi.fn(async (method: string) => {

1729-

if (method === "thread/start") {

1730-

return threadStartResult();

1731-

}

1732-

if (method === "turn/start") {

1733-

return turnStartResult();

1734-

}

1735-

return {};

1736-

});

1737-

__testing.setCodexAppServerClientFactoryForTests(

1738-

async () =>

1739-

({

1740-

request,

1741-

addNotificationHandler: (handler: typeof notify) => {

1742-

notify = handler;

1743-

return () => undefined;

1744-

},

1745-

addRequestHandler: (

1746-

handler: (request: {

1747-

id: string;

1748-

method: string;

1749-

params?: unknown;

1750-

}) => Promise<unknown>,

1751-

) => {

1752-

handleRequest = handler;

1753-

return () => undefined;

1754-

},

1755-

}) as never,

1756-

);

1757-1758-

const run = runCodexAppServerAttempt(

1759-

createParams(path.join(tempDir, "session.jsonl"), path.join(tempDir, "workspace")),

1760-

);

1761-

await vi.waitFor(() => expect(handleRequest).toBeTypeOf("function"), { interval: 1 });

1762-1763-

const result = await handleRequest?.({

1764-

id: "request-elicitation-1",

1765-

method: "mcpServer/elicitation/request",

1766-

params: {

1767-

threadId: "thread-1",

1768-

turnId: "turn-1",

1769-

serverName: "codex_apps__github",

1770-

mode: "form",

1771-

},

1772-

});

1773-1774-

expect(result).toEqual({

1775-

action: "accept",

1776-

content: null,

1777-

_meta: null,

1778-

});

1779-

expect(bridgeSpy).toHaveBeenCalledWith(

1780-

expect.objectContaining({

1781-

threadId: "thread-1",

1782-

turnId: "turn-1",

1783-

}),

1784-

);

1785-1786-

await notify({

1787-

method: "turn/completed",

1788-

params: {

1789-

threadId: "thread-1",

1790-

turnId: "turn-1",

1791-

turn: { id: "turn-1", status: "completed" },

1792-

},

1793-

});

1794-

await run;

1795-

});

1796-17971689

it("routes request_user_input prompts through the active run follow-up queue", async () => {

17981690

let notify: (notification: CodexServerNotification) => Promise<void> = async () => undefined;

17991691

let handleRequest: