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

推荐订阅源

F
Fortinet All Blogs
爱范儿
爱范儿
P
Proofpoint News Feed
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
T
Tailwind CSS Blog
J
Java Code Geeks
宝玉的分享
宝玉的分享
Jina AI
Jina AI
B
Blog
N
Netflix TechBlog - Medium
Recent Announcements
Recent Announcements
aimingoo的专栏
aimingoo的专栏
腾讯CDC
C
Check Point Blog
The Cloudflare Blog
阮一峰的网络日志
阮一峰的网络日志
博客园 - Franky
罗磊的独立博客
B
Blog RSS Feed
WordPress大学
WordPress大学
小众软件
小众软件
博客园 - 叶小钗
M
MIT News - Artificial intelligence
GbyAI
GbyAI

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: make codex app-server timeout progress-aware · openc...
2026-05-16 · via Recent Commits to openclaw:main

@@ -1060,6 +1060,9 @@ export async function runCodexAppServerAttempt(

10601060

let turnAssistantCompletionIdleWatchArmed = false;

10611061

let turnAssistantCompletionLastActivityAt = Date.now();

10621062

let turnAssistantCompletionLastActivityDetails: Record<string, unknown> | undefined;

1063+

const turnAttemptIdleTimeoutMs = Math.max(100, Math.floor(params.timeoutMs));

1064+

let turnAttemptIdleTimer: ReturnType<typeof setTimeout> | undefined;

1065+

let turnAttemptIdleWatchArmed = false;

10631066

let turnTerminalIdleTimer: ReturnType<typeof setTimeout> | undefined;

10641067

let turnTerminalIdleWatchArmed = false;

10651068

let turnCompletionLastActivityAt = Date.now();

@@ -1091,6 +1094,13 @@ export async function runCodexAppServerAttempt(

10911094

}

10921095

};

109310961097+

const clearTurnAttemptIdleTimer = () => {

1098+

if (turnAttemptIdleTimer) {

1099+

clearTimeout(turnAttemptIdleTimer);

1100+

turnAttemptIdleTimer = undefined;

1101+

}

1102+

};

1103+10941104

const fireTurnAssistantCompletionIdleRelease = () => {

10951105

if (completed || runAbortController.signal.aborted || !turnAssistantCompletionIdleWatchArmed) {

10961106

return;

@@ -1135,6 +1145,44 @@ export async function runCodexAppServerAttempt(

11351145

resolveCompletion?.();

11361146

};

113711471148+

const fireTurnAttemptIdleTimeout = () => {

1149+

if (

1150+

completed ||

1151+

runAbortController.signal.aborted ||

1152+

!turnAttemptIdleWatchArmed ||

1153+

activeAppServerTurnRequests > 0

1154+

) {

1155+

return;

1156+

}

1157+

const idleMs = Math.max(0, Date.now() - turnCompletionLastActivityAt);

1158+

if (idleMs < turnAttemptIdleTimeoutMs) {

1159+

scheduleTurnAttemptIdleWatch();

1160+

return;

1161+

}

1162+

timedOut = true;

1163+

turnCompletionIdleTimedOut = true;

1164+

turnCompletionIdleTimeoutMessage =

1165+

"codex app-server turn idle timed out waiting for turn/completed";

1166+

projector?.markTimedOut();

1167+

trajectoryRecorder?.recordEvent("turn.progress_idle_timeout", {

1168+

threadId: thread.threadId,

1169+

turnId,

1170+

idleMs,

1171+

timeoutMs: turnAttemptIdleTimeoutMs,

1172+

lastActivityReason: turnCompletionLastActivityReason,

1173+

...turnCompletionLastActivityDetails,

1174+

});

1175+

embeddedAgentLog.warn("codex app-server turn idle timed out waiting for progress", {

1176+

threadId: thread.threadId,

1177+

turnId,

1178+

idleMs,

1179+

timeoutMs: turnAttemptIdleTimeoutMs,

1180+

lastActivityReason: turnCompletionLastActivityReason,

1181+

...turnCompletionLastActivityDetails,

1182+

});

1183+

runAbortController.abort("turn_progress_idle_timeout");

1184+

};

1185+11381186

const fireTurnCompletionIdleTimeout = () => {

11391187

if (

11401188

completed ||

@@ -1238,6 +1286,22 @@ export async function runCodexAppServerAttempt(

12381286

turnAssistantCompletionIdleTimer.unref?.();

12391287

}

124012881289+

function scheduleTurnAttemptIdleWatch() {

1290+

clearTurnAttemptIdleTimer();

1291+

if (

1292+

completed ||

1293+

runAbortController.signal.aborted ||

1294+

!turnAttemptIdleWatchArmed ||

1295+

activeAppServerTurnRequests > 0

1296+

) {

1297+

return;

1298+

}

1299+

const elapsedMs = Math.max(0, Date.now() - turnCompletionLastActivityAt);

1300+

const delayMs = Math.max(1, turnAttemptIdleTimeoutMs - elapsedMs);

1301+

turnAttemptIdleTimer = setTimeout(fireTurnAttemptIdleTimeout, delayMs);

1302+

turnAttemptIdleTimer.unref?.();

1303+

}

1304+12411305

function scheduleTurnTerminalIdleWatch() {

12421306

clearTurnTerminalIdleTimer();

12431307

if (

@@ -1272,6 +1336,7 @@ export async function runCodexAppServerAttempt(

12721336

turnCompletionIdleWatchArmed = true;

12731337

turnCompletionIdleWatchPinnedByTerminalError = false;

12741338

}

1339+

scheduleTurnAttemptIdleWatch();

12751340

scheduleTurnCompletionIdleWatch();

12761341

scheduleTurnTerminalIdleWatch();

12771342

};

@@ -1932,15 +1997,9 @@ export async function runCodexAppServerAttempt(

19321997

abort: () => runAbortController.abort("aborted"),

19331998

};

19341999

setActiveEmbeddedRun(params.sessionId, handle, params.sessionKey);

1935-1936-

const timeout = setTimeout(

1937-

() => {

1938-

timedOut = true;

1939-

projector?.markTimedOut();

1940-

runAbortController.abort("timeout");

1941-

},

1942-

Math.max(100, params.timeoutMs),

1943-

);

2000+

turnAttemptIdleWatchArmed = true;

2001+

turnTerminalIdleWatchArmed = true;

2002+

touchTurnCompletionActivity("turn:start", { arm: true });

1944200319452004

const abortListener = () => {

19462005

const shouldRetireClient = timedOut;

@@ -2127,7 +2186,7 @@ export async function runCodexAppServerAttempt(

21272186

await steeringQueue?.flushPending();

21282187

}

21292188

userInputBridge?.cancelPending();

2130-

clearTimeout(timeout);

2189+

clearTurnAttemptIdleTimer();

21312190

clearTurnCompletionIdleTimer();

21322191

clearTurnAssistantCompletionIdleTimer();

21332192

clearTurnTerminalIdleTimer();