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

推荐订阅源

N
Netflix TechBlog - Medium
G
Google Developers Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
T
The Blog of Author Tim Ferriss
Microsoft Azure Blog
Microsoft Azure Blog
GbyAI
GbyAI
L
LangChain Blog
云风的 BLOG
云风的 BLOG
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
aimingoo的专栏
aimingoo的专栏
P
Proofpoint News Feed
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
小众软件
小众软件
WordPress大学
WordPress大学
A
About on SuperTechFans
大猫的无限游戏
大猫的无限游戏
C
Check Point Blog
月光博客
月光博客
Stack Overflow Blog
Stack Overflow Blog
美团技术团队
Jina AI
Jina AI
T
Tailwind CSS Blog
Google DeepMind News
Google DeepMind News
D
Docker

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
fix(codex): keep post-tool watchdog armed · openclaw/open...
mbelinky · 2026-05-14 · via Recent Commits to openclaw:main

@@ -1521,6 +1521,98 @@ describe("runCodexAppServerAttempt", () => {

15211521

expect(warnData?.lastActivityReason).toBe("request:item/tool/call:response");

15221522

});

152315231524+

it("keeps the post-tool completion watchdog armed across dynamic tool completion bookkeeping", async () => {

1525+

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

1526+

let handleRequest:

1527+

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

1528+

| undefined;

1529+

const warn = vi.spyOn(embeddedAgentLog, "warn").mockImplementation(() => undefined);

1530+

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

1531+

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

1532+

return threadStartResult("thread-1");

1533+

}

1534+

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

1535+

return turnStartResult("turn-1", "inProgress");

1536+

}

1537+

return {};

1538+

});

1539+

__testing.setCodexAppServerClientFactoryForTests(

1540+

async () =>

1541+

({

1542+

request,

1543+

addNotificationHandler: (handler: typeof notify) => {

1544+

notify = handler;

1545+

return () => undefined;

1546+

},

1547+

addRequestHandler: (

1548+

handler: (request: {

1549+

id: string;

1550+

method: string;

1551+

params?: unknown;

1552+

}) => Promise<unknown>,

1553+

) => {

1554+

handleRequest = handler;

1555+

return () => undefined;

1556+

},

1557+

}) as never,

1558+

);

1559+

const params = createParams(

1560+

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

1561+

path.join(tempDir, "workspace"),

1562+

);

1563+

params.timeoutMs = 60_000;

1564+1565+

const run = runCodexAppServerAttempt(params, {

1566+

turnCompletionIdleTimeoutMs: 5,

1567+

turnTerminalIdleTimeoutMs: 200,

1568+

});

1569+

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

1570+1571+

const toolResult = (await handleRequest?.({

1572+

id: "request-tool-1",

1573+

method: "item/tool/call",

1574+

params: {

1575+

threadId: "thread-1",

1576+

turnId: "turn-1",

1577+

callId: "call-1",

1578+

namespace: null,

1579+

tool: "message",

1580+

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

1581+

},

1582+

})) as { success?: boolean };

1583+

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

1584+

await notify({

1585+

method: "item/completed",

1586+

params: {

1587+

threadId: "thread-1",

1588+

turnId: "turn-1",

1589+

item: {

1590+

type: "dynamicToolCall",

1591+

id: "call-1",

1592+

tool: "message",

1593+

},

1594+

},

1595+

});

1596+1597+

const result = await run;

1598+

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

1599+

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

1600+

expect(result.promptError).toBe(

1601+

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

1602+

);

1603+

expect(

1604+

warn.mock.calls.some(

1605+

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

1606+

),

1607+

).toBe(true);

1608+

expect(

1609+

warn.mock.calls.some(

1610+

([message]) =>

1611+

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

1612+

),

1613+

).toBe(false);

1614+

});

1615+15241616

it("keeps waiting when Codex emits a raw assistant item after a dynamic tool response", async () => {

15251617

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

15261618

let handleRequest: