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

推荐订阅源

WordPress大学
WordPress大学
酷 壳 – CoolShell
酷 壳 – CoolShell
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
腾讯CDC
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Jina AI
Jina AI
N
Netflix TechBlog - Medium
有赞技术团队
有赞技术团队
博客园 - 【当耐特】
MongoDB | Blog
MongoDB | Blog
P
Proofpoint News Feed
L
LangChain Blog
aimingoo的专栏
aimingoo的专栏
GbyAI
GbyAI
B
Blog
F
Fortinet All Blogs
T
Tailwind CSS Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
G
Google Developers Blog
A
About on SuperTechFans
C
Check Point Blog
Microsoft Security Blog
Microsoft Security Blog
MyScale Blog
MyScale Blog
B
Blog RSS Feed

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: tighten codex terminal watchdog assertions · opencl...
steipete · 2026-05-10 · via Recent Commits to openclaw:main

@@ -1273,20 +1273,19 @@ describe("runCodexAppServerAttempt", () => {

12731273

});

12741274

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

127512751276-

await expect(

1277-

handleRequest?.({

1278-

id: "request-tool-1",

1279-

method: "item/tool/call",

1280-

params: {

1281-

threadId: "thread-1",

1282-

turnId: "turn-1",

1283-

callId: "call-1",

1284-

namespace: null,

1285-

tool: "message",

1286-

arguments: { action: "send", text: "already sent" },

1287-

},

1288-

}),

1289-

).resolves.toMatchObject({ success: false });

1276+

const toolResult = (await handleRequest?.({

1277+

id: "request-tool-1",

1278+

method: "item/tool/call",

1279+

params: {

1280+

threadId: "thread-1",

1281+

turnId: "turn-1",

1282+

callId: "call-1",

1283+

namespace: null,

1284+

tool: "message",

1285+

arguments: { action: "send", text: "already sent" },

1286+

},

1287+

})) as { success?: boolean };

1288+

expect(toolResult.success).toBe(false);

12901289

await notify({

12911290

method: "rawResponseItem/completed",

12921291

params: {

@@ -1301,29 +1300,42 @@ describe("runCodexAppServerAttempt", () => {

13011300

},

13021301

});

130313021304-

await expect(run).resolves.toMatchObject({

1305-

aborted: true,

1306-

timedOut: true,

1307-

promptError: "codex app-server turn idle timed out waiting for turn/completed",

1308-

});

1309-

expect(warn).toHaveBeenCalledWith(

1310-

"codex app-server turn idle timed out waiting for terminal event",

1311-

expect.objectContaining({

1312-

threadId: "thread-1",

1313-

turnId: "turn-1",

1314-

timeoutMs: 5,

1315-

lastActivityReason: "notification:rawResponseItem/completed",

1316-

lastNotificationMethod: "rawResponseItem/completed",

1317-

lastNotificationItemId: "raw-status-1",

1318-

lastNotificationItemType: "message",

1319-

lastNotificationItemRole: "assistant",

1320-

lastAssistantTextPreview: "I'm writing the report now.",

1321-

}),

1303+

const result = await run;

1304+

expect(result.aborted).toBe(true);

1305+

expect(result.timedOut).toBe(true);

1306+

expect(result.promptError).toBe(

1307+

"codex app-server turn idle timed out waiting for turn/completed",

13221308

);

1323-

expect(warn).not.toHaveBeenCalledWith(

1324-

"codex app-server turn idle timed out waiting for completion",

1325-

expect.anything(),

1309+

const terminalWarnCall = warn.mock.calls.find(

1310+

([message]) => message === "codex app-server turn idle timed out waiting for terminal event",

13261311

);

1312+

const terminalWarnData = terminalWarnCall?.[1] as

1313+

| {

1314+

lastActivityReason?: string;

1315+

lastAssistantTextPreview?: string;

1316+

lastNotificationItemId?: string;

1317+

lastNotificationItemRole?: string;

1318+

lastNotificationItemType?: string;

1319+

lastNotificationMethod?: string;

1320+

threadId?: string;

1321+

timeoutMs?: number;

1322+

turnId?: string;

1323+

}

1324+

| undefined;

1325+

expect(terminalWarnData?.threadId).toBe("thread-1");

1326+

expect(terminalWarnData?.turnId).toBe("turn-1");

1327+

expect(terminalWarnData?.timeoutMs).toBe(5);

1328+

expect(terminalWarnData?.lastActivityReason).toBe("notification:rawResponseItem/completed");

1329+

expect(terminalWarnData?.lastNotificationMethod).toBe("rawResponseItem/completed");

1330+

expect(terminalWarnData?.lastNotificationItemId).toBe("raw-status-1");

1331+

expect(terminalWarnData?.lastNotificationItemType).toBe("message");

1332+

expect(terminalWarnData?.lastNotificationItemRole).toBe("assistant");

1333+

expect(terminalWarnData?.lastAssistantTextPreview).toBe("I'm writing the report now.");

1334+

expect(

1335+

warn.mock.calls.some(

1336+

([message]) => message === "codex app-server turn idle timed out waiting for completion",

1337+

),

1338+

).toBe(false);

13271339

});

1328134013291341

it("releases the session when Codex accepts a turn but never sends progress", async () => {

@@ -1337,11 +1349,12 @@ describe("runCodexAppServerAttempt", () => {

13371349

const run = runCodexAppServerAttempt(params, { turnTerminalIdleTimeoutMs: 5 });

13381350

await harness.waitForMethod("turn/start");

133913511340-

await expect(run).resolves.toMatchObject({

1341-

aborted: true,

1342-

timedOut: true,

1343-

promptError: "codex app-server turn idle timed out waiting for turn/completed",

1344-

});

1352+

const result = await run;

1353+

expect(result.aborted).toBe(true);

1354+

expect(result.timedOut).toBe(true);

1355+

expect(result.promptError).toBe(

1356+

"codex app-server turn idle timed out waiting for turn/completed",

1357+

);

13451358

await vi.waitFor(

13461359

() =>

13471360

expect(harness.request).toHaveBeenCalledWith("turn/interrupt", {