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

推荐订阅源

D
DataBreaches.Net
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Google DeepMind News
Google DeepMind News
博客园 - 聂微东
Microsoft Azure Blog
Microsoft Azure Blog
V
Visual Studio Blog
IT之家
IT之家
博客园 - 【当耐特】
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
B
Blog
爱范儿
爱范儿
阮一峰的网络日志
阮一峰的网络日志
云风的 BLOG
云风的 BLOG
Vercel News
Vercel News
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
H
Hackread – Cybersecurity News, Data Breaches, AI and More
H
Help Net Security
J
Java Code Geeks
aimingoo的专栏
aimingoo的专栏
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
B
Blog RSS Feed
Blog — PlanetScale
Blog — PlanetScale
S
SegmentFault 最新的问题
Apple Machine Learning Research
Apple Machine Learning Research

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): release quiet app-server turns · openclaw/ope...
steipete · 2026-04-30 · via Recent Commits to openclaw:main

@@ -370,6 +370,79 @@ describe("runCodexAppServerAttempt", () => {

370370

expect(onTimeout).toHaveBeenCalledTimes(1);

371371

});

372372373+

it("releases the session when Codex never completes after a dynamic tool response", async () => {

374+

let handleRequest:

375+

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

376+

| undefined;

377+

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

378+

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

379+

return threadStartResult("thread-1");

380+

}

381+

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

382+

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

383+

}

384+

return {};

385+

});

386+

__testing.setCodexAppServerClientFactoryForTests(

387+

async () =>

388+

({

389+

request,

390+

addNotificationHandler: () => () => undefined,

391+

addRequestHandler: (

392+

handler: (request: {

393+

id: string;

394+

method: string;

395+

params?: unknown;

396+

}) => Promise<unknown>,

397+

) => {

398+

handleRequest = handler;

399+

return () => undefined;

400+

},

401+

}) as never,

402+

);

403+

const params = createParams(

404+

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

405+

path.join(tempDir, "workspace"),

406+

);

407+

params.timeoutMs = 60_000;

408+409+

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

410+

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

411+412+

await expect(

413+

handleRequest?.({

414+

id: "request-tool-1",

415+

method: "item/tool/call",

416+

params: {

417+

threadId: "thread-1",

418+

turnId: "turn-1",

419+

callId: "call-1",

420+

namespace: null,

421+

tool: "message",

422+

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

423+

},

424+

}),

425+

).resolves.toMatchObject({

426+

success: false,

427+

contentItems: [{ type: "inputText", text: "Unknown OpenClaw tool: message" }],

428+

});

429+430+

await expect(run).resolves.toMatchObject({

431+

aborted: true,

432+

timedOut: true,

433+

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

434+

});

435+

await vi.waitFor(

436+

() =>

437+

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

438+

threadId: "thread-1",

439+

turnId: "turn-1",

440+

}),

441+

{ interval: 1 },

442+

);

443+

expect(queueAgentHarnessMessage("session-1", "after timeout")).toBe(false);

444+

});

445+373446

it("applies before_prompt_build to Codex developer instructions and turn input", async () => {

374447

const beforePromptBuild = vi.fn(async () => ({

375448

systemPrompt: "custom codex system",