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

推荐订阅源

Jina AI
Jina AI
云风的 BLOG
云风的 BLOG
人人都是产品经理
人人都是产品经理
T
The Blog of Author Tim Ferriss
阮一峰的网络日志
阮一峰的网络日志
罗磊的独立博客
J
Java Code Geeks
博客园 - 聂微东
B
Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
WordPress大学
WordPress大学
腾讯CDC
L
LangChain Blog
Apple Machine Learning Research
Apple Machine Learning Research
Microsoft Azure Blog
Microsoft Azure Blog
D
DataBreaches.Net
The GitHub Blog
The GitHub Blog
美团技术团队
博客园 - Franky
Google DeepMind News
Google DeepMind News
V
V2EX
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
月光博客
月光博客
The Cloudflare 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: make codex harness live test portable · openclaw/ope...
steipete · 2026-05-13 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -11,6 +11,7 @@ Docs: https://docs.openclaw.ai

1111

- Telegram: detect polling stalls from `getUpdates` liveness only, so outbound API calls no longer mask dead inbound polling; log polling-cycle starts after transport rebuilds. Fixes #78473.

1212

- fix(plugins): scan installed dependency runtime code [AI]. (#81066) Thanks @pgondhi987.

1313

- Inherit tool restrictions for delegated sessions [AI]. (#80979) Thanks @pgondhi987.

14+

- Codex harness: make the live test wrapper portable to Windows and defer locked temp cleanup so native Windows and WSL2 live runs complete.

1415

- Telegram: discard legacy long-poll update offsets that cannot be tied to the current bot token, so token rotation no longer leaves bots silently skipping new messages. (#80671) Thanks @sxxtony.

1516

- browser: enforce navigation checks for act interactions [AI]. (#81070) Thanks @pgondhi987.

1617

- Validate node exec event provenance [AI]. (#81071) Thanks @pgondhi987.

Original file line numberDiff line numberDiff line change

@@ -1643,7 +1643,7 @@

16431643

"test:install:smoke": "bash scripts/test-install-sh-docker.sh",

16441644

"test:live": "node scripts/test-live.mjs",

16451645

"test:live:cache": "node --import tsx scripts/check-live-cache.ts",

1646-

"test:live:codex-harness": "OPENCLAW_LIVE_CODEX_HARNESS=1 node scripts/test-live.mjs -- src/gateway/gateway-codex-harness.live.test.ts",

1646+

"test:live:codex-harness": "node scripts/test-live.mjs --codex-harness -- src/gateway/gateway-codex-harness.live.test.ts",

16471647

"test:live:crestodian-rescue-channel": "OPENCLAW_LIVE_CRESTODIAN_RESCUE_CHANNEL=1 node scripts/test-live.mjs -- src/crestodian/rescue-channel.live.test.ts",

16481648

"test:live:gateway-profiles": "node scripts/test-live.mjs -- src/gateway/gateway-models.profiles.live.test.ts",

16491649

"test:live:media": "node --import tsx scripts/test-live-media.ts",

Original file line numberDiff line numberDiff line change

@@ -2,11 +2,16 @@ import { spawnPnpmRunner } from "./pnpm-runner.mjs";

22
33

const forwardedArgs = [];

44

let quietOverride;

5+

let forceCodexHarness = false;

56
67

for (const arg of process.argv.slice(2)) {

78

if (arg === "--") {

89

continue;

910

}

11+

if (arg === "--codex-harness") {

12+

forceCodexHarness = true;

13+

continue;

14+

}

1015

if (arg === "--quiet" || arg === "--quiet-live") {

1116

quietOverride = "1";

1217

continue;

@@ -25,6 +30,7 @@ const env = {

2530

pnpm_config_verify_deps_before_run: process.env.pnpm_config_verify_deps_before_run || "false",

2631

OPENCLAW_LIVE_TEST: process.env.OPENCLAW_LIVE_TEST || "1",

2732

OPENCLAW_LIVE_TEST_QUIET: quietOverride ?? process.env.OPENCLAW_LIVE_TEST_QUIET ?? "1",

33+

...(forceCodexHarness ? { OPENCLAW_LIVE_CODEX_HARNESS: "1" } : {}),

2834

};

2935
3036

function parsePositiveInt(value, fallback) {

Original file line numberDiff line numberDiff line change

@@ -162,6 +162,31 @@ async function createLiveWorkspace(tempDir: string): Promise<string> {

162162

return workspace;

163163

}

164164
165+

async function removeLiveTempDir(dir: string): Promise<void> {

166+

let lastError: unknown;

167+

for (let attempt = 0; attempt < 100; attempt += 1) {

168+

try {

169+

await fs.rm(dir, { recursive: true, force: true });

170+

return;

171+

} catch (error) {

172+

lastError = error;

173+

const code = (error as { code?: unknown } | null)?.code;

174+

if (code !== "EBUSY" && code !== "ENOTEMPTY" && code !== "EPERM" && code !== "EACCES") {

175+

throw error;

176+

}

177+

await delay(100);

178+

}

179+

}

180+

if (process.platform === "win32") {

181+

logCodexLiveStep("temp-cleanup-deferred", {

182+

dir,

183+

error: lastError instanceof Error ? lastError.message : String(lastError),

184+

});

185+

return;

186+

}

187+

await fs.rm(dir, { recursive: true, force: true });

188+

}

189+
165190

function parseModelKey(modelKey: string): { provider: string; modelId: string } {

166191

const [provider, ...modelParts] = modelKey.split("/");

167192

const modelId = modelParts.join("/");

@@ -935,8 +960,15 @@ describeLive("gateway live (Codex harness)", () => {

935960

clearRuntimeConfigSnapshot();

936961

await client.stopAndWait();

937962

await server.close();

963+

const [{ resetTaskRegistryForTests }, { resetTaskFlowRegistryForTests }] =

964+

await Promise.all([

965+

import("../tasks/runtime-internal.js"),

966+

import("../tasks/task-flow-runtime-internal.js"),

967+

]);

968+

resetTaskRegistryForTests({ persist: false });

969+

resetTaskFlowRegistryForTests({ persist: false });

938970

restoreEnv(previousEnv);

939-

await fs.rm(tempDir, { recursive: true, force: true, maxRetries: 5, retryDelay: 100 });

971+

await removeLiveTempDir(tempDir);

940972

}

941973

},

942974

CODEX_HARNESS_TIMEOUT_MS,