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

推荐订阅源

Jina AI
Jina AI
S
SegmentFault 最新的问题
D
DataBreaches.Net
H
Help Net Security
有赞技术团队
有赞技术团队
M
MIT News - Artificial intelligence
Martin Fowler
Martin Fowler
IT之家
IT之家
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
腾讯CDC
罗磊的独立博客
Y
Y Combinator Blog
阮一峰的网络日志
阮一峰的网络日志
云风的 BLOG
云风的 BLOG
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
WordPress大学
WordPress大学
Microsoft Security Blog
Microsoft Security Blog
J
Java Code Geeks
Vercel News
Vercel News
Hugging Face - Blog
Hugging Face - Blog
aimingoo的专栏
aimingoo的专栏
Stack Overflow Blog
Stack Overflow Blog
Recent Announcements
Recent Announcements
博客园 - 三生石上(FineUI控件)

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(gateway): fail strict codex subagent timeouts · open...
vincentkoc · 2026-06-01 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -2,11 +2,28 @@ import { describe, expect, it } from "vitest";

22

import {

33

EXPECTED_CODEX_MODELS_COMMAND_TEXT,

44

EXPECTED_CODEX_STATUS_COMMAND_TEXT,

5+

isRetryableCodexHarnessLiveError,

56

isExpectedCodexModelsCommandText,

67

isExpectedCodexStatusCommandText,

8+

shouldSkipRetryableCodexHarnessLiveError,

79

} from "./gateway-codex-harness.live-helpers.js";

810
911

describe("gateway codex harness live helpers", () => {

12+

it("does not skip sessions.list timeouts when the Codex subagent probe is enabled", () => {

13+

const error = new Error("gateway request timeout for sessions.list");

14+
15+

expect(isRetryableCodexHarnessLiveError(error)).toBe(true);

16+

expect(shouldSkipRetryableCodexHarnessLiveError(error, { subagentProbe: false })).toBe(true);

17+

expect(shouldSkipRetryableCodexHarnessLiveError(error, { subagentProbe: true })).toBe(false);

18+

});

19+
20+

it("does not classify unrelated live Codex errors as retryable gateway timeouts", () => {

21+

const error = new Error("subagent child did not emit lifecycle event");

22+
23+

expect(isRetryableCodexHarnessLiveError(error)).toBe(false);

24+

expect(shouldSkipRetryableCodexHarnessLiveError(error, { subagentProbe: false })).toBe(false);

25+

});

26+
1027

it("accepts the current codex status prose from the live harness", () => {

1128

const text =

1229

"OpenClaw is running on `openai/gpt-5.5` with low reasoning/text settings. Context is at `22k/272k` tokens, no compactions, and the current session is `agent:dev:live-codex-harness`.";

Original file line numberDiff line numberDiff line change

@@ -272,3 +272,17 @@ export function isExpectedCodexModelsCommandText(text: string): boolean {

272272

isInteractiveTuiSummary

273273

);

274274

}

275+
276+

export function isRetryableCodexHarnessLiveError(error: unknown): boolean {

277+

if (!(error instanceof Error)) {

278+

return false;

279+

}

280+

return error.message.includes("gateway request timeout for sessions.list");

281+

}

282+
283+

export function shouldSkipRetryableCodexHarnessLiveError(

284+

error: unknown,

285+

params: { subagentProbe: boolean },

286+

): boolean {

287+

return isRetryableCodexHarnessLiveError(error) && !params.subagentProbe;

288+

}

Original file line numberDiff line numberDiff line change

@@ -26,6 +26,7 @@ import {

2626

EXPECTED_CODEX_STATUS_COMMAND_TEXT,

2727

isExpectedCodexModelsCommandText,

2828

isExpectedCodexStatusCommandText,

29+

shouldSkipRetryableCodexHarnessLiveError,

2930

} from "./gateway-codex-harness.live-helpers.js";

3031

import {

3132

assertCronJobMatches,

@@ -105,13 +106,6 @@ function isCodexAccountTokenError(error: unknown): boolean {

105106

return error instanceof Error && error.message.includes("Failed to extract accountId from token");

106107

}

107108
108-

function isRetryableCodexHarnessLiveError(error: unknown): boolean {

109-

if (!(error instanceof Error)) {

110-

return false;

111-

}

112-

return error.message.includes("gateway request timeout for sessions.list");

113-

}

114-
115109

function asRecord(value: unknown): Record<string, unknown> | undefined {

116110

return value && typeof value === "object" ? (value as Record<string, unknown>) : undefined;

117111

}

@@ -1189,7 +1183,11 @@ describeLive("gateway live (Codex harness)", () => {

11891183

console.error(

11901184

"SKIP: Codex auth cannot extract accountId from the available token; skipping live Codex harness assertions.",

11911185

);

1192-

} else if (isRetryableCodexHarnessLiveError(error)) {

1186+

} else if (

1187+

shouldSkipRetryableCodexHarnessLiveError(error, {

1188+

subagentProbe: CODEX_HARNESS_SUBAGENT_PROBE,

1189+

})

1190+

) {

11931191

console.error(

11941192

`SKIP: Codex harness live backend hit a retryable gateway timeout; skipping live Codex harness assertions. ${error instanceof Error ? error.message : String(error)}`,

11951193

);