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

推荐订阅源

让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
MyScale Blog
MyScale Blog
U
Unit 42
M
MIT News - Artificial intelligence
小众软件
小众软件
P
Proofpoint News Feed
雷峰网
雷峰网
L
LangChain Blog
S
SegmentFault 最新的问题
腾讯CDC
F
Fortinet All Blogs
A
About on SuperTechFans
WordPress大学
WordPress大学
Vercel News
Vercel News
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
G
Google Developers Blog
大猫的无限游戏
大猫的无限游戏
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
D
Docker
N
Netflix TechBlog - Medium
Apple Machine Learning Research
Apple Machine Learning Research
Recent Announcements
Recent Announcements
D
DataBreaches.Net
Stack Overflow Blog
Stack Overflow 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
fix(codex): await computer use elicitation bridge (#85117...
kevinslin · 2026-05-22 · via Recent Commits to openclaw:main

@@ -3822,6 +3822,85 @@ describe("runCodexAppServerAttempt", () => {

38223822

expect(result.promptError).toBeNull();

38233823

});

382438243825+

it("keeps turn request activity active until elicitation handling resolves", async () => {

3826+

const harness = createStartedThreadHarness();

3827+

const bridgedResponse = {

3828+

action: "accept",

3829+

content: null,

3830+

_meta: null,

3831+

} as const;

3832+

let resolveBridge!: (value: typeof bridgedResponse) => void;

3833+

const bridgePromise = new Promise<typeof bridgedResponse>((resolve) => {

3834+

resolveBridge = resolve;

3835+

});

3836+

vi.spyOn(elicitationBridge, "handleCodexAppServerElicitationRequest").mockImplementation(

3837+

async () => await bridgePromise,

3838+

);

3839+

const params = createParams(

3840+

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

3841+

path.join(tempDir, "workspace"),

3842+

);

3843+

params.timeoutMs = 500;

3844+

const onRunProgress = vi.fn();

3845+

params.onRunProgress = onRunProgress;

3846+3847+

const run = runCodexAppServerAttempt(params, {

3848+

turnCompletionIdleTimeoutMs: 1_000,

3849+

turnAssistantCompletionIdleTimeoutMs: 1_000,

3850+

turnTerminalIdleTimeoutMs: 1_000,

3851+

});

3852+

await harness.waitForMethod("turn/start");

3853+3854+

const response = harness.handleServerRequest({

3855+

id: "request-pending-elicitation",

3856+

method: "mcpServer/elicitation/request",

3857+

params: {

3858+

threadId: "thread-1",

3859+

turnId: "turn-1",

3860+

mode: "form",

3861+

message: "Approve?",

3862+

requestedSchema: { type: "object", properties: {} },

3863+

serverName: "server-1",

3864+

_meta: null,

3865+

},

3866+

});

3867+

await vi.waitFor(

3868+

() =>

3869+

expect(onRunProgress).toHaveBeenCalledWith(

3870+

expect.objectContaining({

3871+

reason: "request:mcpServer/elicitation/request:start",

3872+

}),

3873+

),

3874+

fastWait,

3875+

);

3876+

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

3877+

expect(

3878+

onRunProgress.mock.calls.some(

3879+

([event]) =>

3880+

(event as { reason?: string }).reason ===

3881+

"request:mcpServer/elicitation/request:response",

3882+

),

3883+

).toBe(false);

3884+3885+

resolveBridge(bridgedResponse);

3886+

await expect(response).resolves.toEqual(bridgedResponse);

3887+

await vi.waitFor(

3888+

() =>

3889+

expect(onRunProgress).toHaveBeenCalledWith(

3890+

expect.objectContaining({

3891+

reason: "request:mcpServer/elicitation/request:response",

3892+

}),

3893+

),

3894+

fastWait,

3895+

);

3896+

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

3897+3898+

const result = await run;

3899+

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

3900+

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

3901+

expect(result.promptError).toBeNull();

3902+

});

3903+38253904

it("counts pending user input requests as turn attempt progress", async () => {

38263905

const harness = createStartedThreadHarness();

38273906

const params = createParams(