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

推荐订阅源

The Cloudflare Blog
L
LangChain Blog
WordPress大学
WordPress大学
V
V2EX
M
MIT News - Artificial intelligence
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Stack Overflow Blog
Stack Overflow Blog
J
Java Code Geeks
F
Fortinet All Blogs
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
腾讯CDC
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
D
Docker
Recent Announcements
Recent Announcements
GbyAI
GbyAI
博客园 - 叶小钗
小众软件
小众软件
Hugging Face - Blog
Hugging Face - Blog
T
The Blog of Author Tim Ferriss
人人都是产品经理
人人都是产品经理
Engineering at Meta
Engineering at Meta
Y
Y Combinator Blog
雷峰网
雷峰网
The GitHub Blog
The GitHub Blog

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: stabilize codex app-server waits · openclaw/opencla...
steipete · 2026-05-16 · via Recent Commits to openclaw:main

@@ -60,6 +60,7 @@ import {

60606161

let tempDir: string;

6262

let codexAppServerClientFactoryForTest: CodexAppServerClientFactory | undefined;

63+

const fastWait = { interval: 1, timeout: 5_000 } as const;

63646465

type RunCodexAppServerAttemptOptions = NonNullable<

6566

Parameters<typeof runCodexAppServerAttemptImpl>[1]

@@ -1505,7 +1506,7 @@ describe("runCodexAppServerAttempt", () => {

15051506

const run = runCodexAppServerAttempt(params, {

15061507

pluginConfig: { appServer: { turnCompletionIdleTimeoutMs: 5 } },

15071508

});

1508-

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

1509+

await vi.waitFor(() => expect(handleRequest).toBeTypeOf("function"), fastWait);

1509151015101511

const toolResult = (await handleRequest?.({

15111512

id: "request-tool-1",

@@ -1831,7 +1832,7 @@ describe("runCodexAppServerAttempt", () => {

18311832

],

18321833

},

18331834

});

1834-

await vi.waitFor(() => expect(params.onBlockReply).toHaveBeenCalledTimes(1), { interval: 1 });

1835+

await vi.waitFor(() => expect(params.onBlockReply).toHaveBeenCalledTimes(1), fastWait);

18351836

await new Promise((resolve) => setTimeout(resolve, 60));

1836183718371838

expect(harness.request.mock.calls.some(([method]) => method === "turn/interrupt")).toBe(false);

@@ -1959,7 +1960,7 @@ describe("runCodexAppServerAttempt", () => {

19591960

turnCompletionIdleTimeoutMs: 5,

19601961

turnTerminalIdleTimeoutMs: 60_000,

19611962

});

1962-

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

1963+

await vi.waitFor(() => expect(handleRequest).toBeTypeOf("function"), fastWait);

1963196419641965

const toolResult = (await handleRequest?.({

19651966

id: "request-tool-1",

@@ -2037,7 +2038,7 @@ describe("runCodexAppServerAttempt", () => {

20372038

turnCompletionIdleTimeoutMs: 5,

20382039

turnTerminalIdleTimeoutMs: 200,

20392040

});

2040-

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

2041+

await vi.waitFor(() => expect(handleRequest).toBeTypeOf("function"), fastWait);

2041204220422043

const toolResult = (await handleRequest?.({

20432044

id: "request-tool-1",

@@ -2129,7 +2130,7 @@ describe("runCodexAppServerAttempt", () => {

21292130

turnCompletionIdleTimeoutMs: 5,

21302131

turnTerminalIdleTimeoutMs: 200,

21312132

});

2132-

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

2133+

await vi.waitFor(() => expect(handleRequest).toBeTypeOf("function"), fastWait);

2133213421342135

const toolResult = (await handleRequest?.({

21352136

id: "request-tool-1",

@@ -2226,7 +2227,7 @@ describe("runCodexAppServerAttempt", () => {

22262227

turnAssistantCompletionIdleTimeoutMs: 200,

22272228

turnTerminalIdleTimeoutMs: 200,

22282229

});

2229-

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

2230+

await vi.waitFor(() => expect(handleRequest).toBeTypeOf("function"), fastWait);

2230223122312232

const toolResult = (await handleRequest?.({

22322233

id: "request-tool-1",

@@ -2318,7 +2319,7 @@ describe("runCodexAppServerAttempt", () => {

23182319

turnAssistantCompletionIdleTimeoutMs: 5,

23192320

turnTerminalIdleTimeoutMs: 500,

23202321

});

2321-

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

2322+

await vi.waitFor(() => expect(handleRequest).toBeTypeOf("function"), fastWait);

2322232323232324

const toolResult = (await handleRequest?.({

23242325

id: "request-tool-1",

@@ -2497,7 +2498,7 @@ describe("runCodexAppServerAttempt", () => {

24972498

turnAssistantCompletionIdleTimeoutMs: 500,

24982499

turnTerminalIdleTimeoutMs: 5,

24992500

});

2500-

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

2501+

await vi.waitFor(() => expect(handleRequest).toBeTypeOf("function"), fastWait);

2501250225022503

const toolResult = (await handleRequest?.({

25032504

id: "request-tool-1",

@@ -4736,7 +4737,7 @@ describe("runCodexAppServerAttempt", () => {

47364737

() => expect(request.mock.calls.map(([method]) => method)).toContain("turn/start"),

47374738

{ interval: 1 },

47384739

);

4739-

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

4740+

await vi.waitFor(() => expect(handleRequest).toBeTypeOf("function"), fastWait);

4740474147414742

const response = handleRequest?.({

47424743

id: "request-input-1",

@@ -4761,7 +4762,7 @@ describe("runCodexAppServerAttempt", () => {

47614762

},

47624763

});

476347644764-

await vi.waitFor(() => expect(params.onBlockReply).toHaveBeenCalledTimes(1), { interval: 1 });

4765+

await vi.waitFor(() => expect(params.onBlockReply).toHaveBeenCalledTimes(1), fastWait);

47654766

expect(queueActiveRunMessageForTest("session-1", "2")).toBe(true);

47664767

await expect(response).resolves.toEqual({

47674768

answers: { mode: { answers: ["Deep"] } },

@@ -6190,7 +6191,7 @@ describe("runCodexAppServerAttempt", () => {

61906191

});

6191619261926193

const run = runCodexAppServerAttempt(createParams(sessionFile, workspaceDir));

6193-

await vi.waitFor(() => expect(requests[1]).toContain("turn/start"), { interval: 1 });

6194+

await vi.waitFor(() => expect(requests[1]).toContain("turn/start"), fastWait);

61946195

await notify({

61956196

method: "turn/completed",

61966197

params: {

@@ -6239,7 +6240,7 @@ describe("runCodexAppServerAttempt", () => {

62396240

});

6240624162416242

const run = runCodexAppServerAttempt(createParams(sessionFile, workspaceDir));

6242-

await vi.waitFor(() => expect(requests[2]).toContain("turn/start"), { interval: 1 });

6243+

await vi.waitFor(() => expect(requests[2]).toContain("turn/start"), fastWait);

62436244

await notify({

62446245

method: "turn/completed",

62456246

params: {