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

推荐订阅源

D
DataBreaches.Net
IT之家
IT之家
博客园_首页
博客园 - 【当耐特】
V
V2EX
Apple Machine Learning Research
Apple Machine Learning Research
G
Google Developers Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Recent Announcements
Recent Announcements
F
Fortinet All Blogs
GbyAI
GbyAI
腾讯CDC
H
Hackread – Cybersecurity News, Data Breaches, AI and More
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
I
InfoQ
H
Help Net Security
T
Tailwind CSS Blog
B
Blog RSS Feed
Martin Fowler
Martin Fowler
人人都是产品经理
人人都是产品经理
The Cloudflare 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: tighten codex queued input assertions · openclaw/op...
steipete · 2026-05-10 · via Recent Commits to openclaw:main

@@ -2421,10 +2421,14 @@ describe("runCodexAppServerAttempt", () => {

24212421

await expect(response).resolves.toEqual({

24222422

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

24232423

});

2424-

expect(request).not.toHaveBeenCalledWith(

2425-

"turn/steer",

2426-

expect.objectContaining({ expectedTurnId: "turn-1" }),

2427-

);

2424+

const requestCalls = request.mock.calls as unknown as Array<[string, unknown]>;

2425+

expect(

2426+

requestCalls.some(

2427+

([method, callParams]) =>

2428+

method === "turn/steer" &&

2429+

(callParams as { expectedTurnId?: string } | undefined)?.expectedTurnId === "turn-1",

2430+

),

2431+

).toBe(false);

2428243224292433

await notify({

24302434

method: "turn/completed",

@@ -2460,7 +2464,8 @@ describe("runCodexAppServerAttempt", () => {

24602464

await waitForMethod("turn/start");

24612465

abortController.abort("shutdown");

246224662463-

await expect(run).resolves.toMatchObject({ aborted: true });

2467+

const result = await run;

2468+

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

24642469

await new Promise((resolve) => setImmediate(resolve));

24652470

expect(unhandledRejections).toStrictEqual([]);

24662471

} finally {

@@ -2488,19 +2493,14 @@ describe("runCodexAppServerAttempt", () => {

24882493

await completeTurn({ threadId: "thread-1", turnId: "turn-1" });

24892494

await run;

249024952491-

expect(requests).toEqual(

2492-

expect.arrayContaining([

2493-

{

2494-

method: "turn/start",

2495-

params: expect.objectContaining({

2496-

input: [

2497-

{ type: "text", text: "hello", text_elements: [] },

2498-

{ type: "image", url: "data:image/png;base64,aW1hZ2UtYnl0ZXM=" },

2499-

],

2500-

}),

2501-

},

2502-

]),

2503-

);

2496+

const turnStart = requests.find((entry) => entry.method === "turn/start");

2497+

const turnStartParams = turnStart?.params as

2498+

| { input?: Array<{ text?: string; text_elements?: unknown[]; type?: string; url?: string }> }

2499+

| undefined;

2500+

expect(turnStartParams?.input).toEqual([

2501+

{ type: "text", text: "hello", text_elements: [] },

2502+

{ type: "image", url: "data:image/png;base64,aW1hZ2UtYnl0ZXM=" },

2503+

]);

25042504

});

2505250525062506

it("does not drop turn completion notifications emitted while turn/start is in flight", async () => {

@@ -2516,14 +2516,11 @@ describe("runCodexAppServerAttempt", () => {

25162516

return {};

25172517

});

251825182519-

await expect(

2520-

runCodexAppServerAttempt(

2521-

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

2522-

),

2523-

).resolves.toMatchObject({

2524-

aborted: false,

2525-

timedOut: false,

2526-

});

2519+

const result = await runCodexAppServerAttempt(

2520+

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

2521+

);

2522+

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

2523+

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

25272524

});

2528252525292526

it("completes when turn/start returns a terminal turn without a follow-up notification", async () => {

@@ -2548,11 +2545,9 @@ describe("runCodexAppServerAttempt", () => {

25482545

);

2549254625502547

expect(harness.requests.map((entry) => entry.method)).toContain("turn/start");

2551-

expect(result).toMatchObject({

2552-

assistantTexts: ["done from response"],

2553-

aborted: false,

2554-

timedOut: false,

2555-

});

2548+

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

2549+

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

2550+

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

25562551

});

2557255225582553

it("does not complete on unscoped turn/completed notifications", async () => {