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

推荐订阅源

云风的 BLOG
云风的 BLOG
The GitHub Blog
The GitHub Blog
A
About on SuperTechFans
P
Proofpoint News Feed
G
Google Developers Blog
Stack Overflow Blog
Stack Overflow Blog
IT之家
IT之家
Microsoft Security Blog
Microsoft Security Blog
F
Fortinet All Blogs
人人都是产品经理
人人都是产品经理
博客园 - 叶小钗
C
Check Point Blog
Microsoft Azure Blog
Microsoft Azure Blog
aimingoo的专栏
aimingoo的专栏
月光博客
月光博客
美团技术团队
D
Docker
博客园 - Franky
Y
Y Combinator Blog
大猫的无限游戏
大猫的无限游戏
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园 - 【当耐特】
罗磊的独立博客
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报

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 hook failure assertions · openclaw/op...
steipete · 2026-05-10 · via Recent Commits to openclaw:main

@@ -2150,29 +2150,33 @@ describe("runCodexAppServerAttempt", () => {

21502150

expect(llmInput).toHaveBeenCalledTimes(1);

21512151

expect(llmOutput).toHaveBeenCalledTimes(1);

21522152

expect(agentEnd).toHaveBeenCalledTimes(1);

2153-

expect(llmOutput).toHaveBeenCalledWith(

2154-

expect.objectContaining({

2155-

assistantTexts: [],

2156-

model: "gpt-5.4-codex",

2157-

provider: "codex",

2158-

resolvedRef: "codex/gpt-5.4-codex",

2159-

harnessId: "codex",

2160-

runId: "run-1",

2161-

sessionId: "session-1",

2162-

}),

2163-

expect.any(Object),

2164-

);

2165-

expect(agentEnd).toHaveBeenCalledWith(

2166-

expect.objectContaining({

2167-

success: false,

2168-

error: "turn start exploded",

2169-

messages: expect.arrayContaining([

2170-

expect.objectContaining({ role: "assistant" }),

2171-

expect.objectContaining({ role: "user" }),

2172-

]),

2173-

}),

2174-

expect.any(Object),

2175-

);

2153+

const [llmOutputPayload] = llmOutput.mock.calls[0] as unknown as [

2154+

{

2155+

assistantTexts?: string[];

2156+

harnessId?: string;

2157+

model?: string;

2158+

provider?: string;

2159+

resolvedRef?: string;

2160+

runId?: string;

2161+

sessionId?: string;

2162+

},

2163+

unknown,

2164+

];

2165+

expect(llmOutputPayload.assistantTexts).toEqual([]);

2166+

expect(llmOutputPayload.model).toBe("gpt-5.4-codex");

2167+

expect(llmOutputPayload.provider).toBe("codex");

2168+

expect(llmOutputPayload.resolvedRef).toBe("codex/gpt-5.4-codex");

2169+

expect(llmOutputPayload.harnessId).toBe("codex");

2170+

expect(llmOutputPayload.runId).toBe("run-1");

2171+

expect(llmOutputPayload.sessionId).toBe("session-1");

2172+

const [agentEndPayload] = agentEnd.mock.calls[0] as unknown as [

2173+

{ error?: string; messages?: Array<{ role?: string }>; success?: boolean },

2174+

unknown,

2175+

];

2176+

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

2177+

expect(agentEndPayload.error).toBe("turn start exploded");

2178+

expect(agentEndPayload.messages?.some((message) => message.role === "assistant")).toBe(true);

2179+

expect(agentEndPayload.messages?.some((message) => message.role === "user")).toBe(true);

21762180

});

2177218121782182

it("fires agent_end with success false when the codex turn is aborted", async () => {

@@ -2192,12 +2196,8 @@ describe("runCodexAppServerAttempt", () => {

21922196

const result = await run;

21932197

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

21942198

expect(agentEnd).toHaveBeenCalledTimes(1);

2195-

expect(agentEnd).toHaveBeenCalledWith(

2196-

expect.objectContaining({

2197-

success: false,

2198-

}),

2199-

expect.any(Object),

2200-

);

2199+

const [agentEndPayload] = agentEnd.mock.calls[0] as unknown as [{ success?: boolean }, unknown];

2200+

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

22012201

});

2202220222032203

it("forwards queued user input and aborts the active app-server turn", async () => {

@@ -2221,32 +2221,29 @@ describe("runCodexAppServerAttempt", () => {

2221222122222222

const result = await run;

22232223

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

2224-

expect(requests).toEqual(

2225-

expect.arrayContaining([

2226-

{

2227-

method: "thread/start",

2228-

params: expect.objectContaining({

2229-

model: "gpt-5.4-codex",

2230-

approvalPolicy: "never",

2231-

sandbox: "danger-full-access",

2232-

approvalsReviewer: "user",

2233-

developerInstructions: expect.stringContaining(CODEX_GPT5_BEHAVIOR_CONTRACT),

2234-

}),

2235-

},

2236-

{

2237-

method: "turn/steer",

2238-

params: {

2239-

threadId: "thread-1",

2240-

expectedTurnId: "turn-1",

2241-

input: [{ type: "text", text: "more context", text_elements: [] }],

2242-

},

2243-

},

2244-

{

2245-

method: "turn/interrupt",

2246-

params: { threadId: "thread-1", turnId: "turn-1" },

2247-

},

2248-

]),

2249-

);

2224+

const threadStart = requests.find((entry) => entry.method === "thread/start");

2225+

const threadStartParams = threadStart?.params as

2226+

| {

2227+

approvalPolicy?: string;

2228+

approvalsReviewer?: string;

2229+

developerInstructions?: string;

2230+

model?: string;

2231+

sandbox?: string;

2232+

}

2233+

| undefined;

2234+

expect(threadStartParams?.model).toBe("gpt-5.4-codex");

2235+

expect(threadStartParams?.approvalPolicy).toBe("never");

2236+

expect(threadStartParams?.sandbox).toBe("danger-full-access");

2237+

expect(threadStartParams?.approvalsReviewer).toBe("user");

2238+

expect(threadStartParams?.developerInstructions).toContain(CODEX_GPT5_BEHAVIOR_CONTRACT);

2239+

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

2240+

expect(steer?.params).toEqual({

2241+

threadId: "thread-1",

2242+

expectedTurnId: "turn-1",

2243+

input: [{ type: "text", text: "more context", text_elements: [] }],

2244+

});

2245+

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

2246+

expect(interrupt?.params).toEqual({ threadId: "thread-1", turnId: "turn-1" });

22502247

});

2251224822522249

it("batches default queued steering before sending turn/steer", async () => {