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

推荐订阅源

T
The Blog of Author Tim Ferriss
罗磊的独立博客
月光博客
月光博客
GbyAI
GbyAI
腾讯CDC
G
Google Developers Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
U
Unit 42
Engineering at Meta
Engineering at Meta
A
About on SuperTechFans
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
aimingoo的专栏
aimingoo的专栏
C
Check Point Blog
Y
Y Combinator Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Microsoft Azure Blog
Microsoft Azure Blog
I
InfoQ
雷峰网
雷峰网
B
Blog RSS Feed
美团技术团队
M
MIT News - Artificial intelligence
有赞技术团队
有赞技术团队
D
Docker

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(release): stabilize validation contracts · openclaw/...
vincentkoc · 2026-06-21 · via Recent Commits to openclaw:main

@@ -3,7 +3,7 @@ import fs from "node:fs/promises";

33

import os from "node:os";

44

import path from "node:path";

55

import {

6-

abortAgentHarnessRun,

6+

abortAndDrainAgentHarnessRun,

77

type EmbeddedRunAttemptParams,

88

} from "openclaw/plugin-sdk/agent-harness";

99

import { AUTH_PROFILE_RUNTIME_CONTRACT } from "openclaw/plugin-sdk/agent-runtime-test-contracts";

@@ -65,10 +65,9 @@ const DISABLED_CODEX_WEB_SEARCH_THREAD_CONFIG_FINGERPRINT = JSON.stringify({

6565

"features.standalone_web_search": false,

6666

web_search: "disabled",

6767

});

68+

const APP_SERVER_START_WAIT = { interval: 1, timeout: 5_000 } as const;

686969-

function writeCodexAppServerBinding(

70-

...args: Parameters<typeof writeRawCodexAppServerBinding>

71-

) {

70+

function writeCodexAppServerBinding(...args: Parameters<typeof writeRawCodexAppServerBinding>) {

7271

const [sessionFile, binding, lookup] = args;

7372

return writeRawCodexAppServerBinding(

7473

sessionFile,

@@ -176,7 +175,7 @@ function createCodexAuthProfileHarness(params: { startMethod: "thread/start" | "

176175

seenAgentDirs,

177176

async waitForMethod(method: string) {

178177

await vi.waitFor(() => expect(requests.map((entry) => entry.method)).toContain(method), {

179-

interval: 1,

178+

...APP_SERVER_START_WAIT,

180179

});

181180

},

182181

async completeTurn() {

@@ -202,7 +201,13 @@ describe("Auth profile runtime contract - Codex app-server adapter", () => {

202201203202

afterEach(async () => {

204203

vi.useRealTimers();

205-

abortAgentHarnessRun(AUTH_PROFILE_RUNTIME_CONTRACT.sessionId);

204+

await abortAndDrainAgentHarnessRun({

205+

sessionId: AUTH_PROFILE_RUNTIME_CONTRACT.sessionId,

206+

sessionKey: AUTH_PROFILE_RUNTIME_CONTRACT.sessionKey,

207+

settleMs: 1_000,

208+

forceClear: true,

209+

reason: "test_cleanup",

210+

});

206211

resetCodexAppServerClientFactoryForTest();

207212

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

208213

});

@@ -220,7 +225,7 @@ describe("Auth profile runtime contract - Codex app-server adapter", () => {

220225

expect(harness.seenAuthProfileIds).toEqual([

221226

AUTH_PROFILE_RUNTIME_CONTRACT.openAiCodexProfileId,

222227

]),

223-

{ interval: 1 },

228+

APP_SERVER_START_WAIT,

224229

);

225230

expect(harness.seenAgentDirs).toEqual([tmpDir]);

226231

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

@@ -246,7 +251,7 @@ describe("Auth profile runtime contract - Codex app-server adapter", () => {

246251

expect(harness.seenAuthProfileIds).toEqual([

247252

AUTH_PROFILE_RUNTIME_CONTRACT.openAiCodexProfileId,

248253

]),

249-

{ interval: 1 },

254+

APP_SERVER_START_WAIT,

250255

);

251256

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

252257

await harness.completeTurn();

@@ -271,7 +276,7 @@ describe("Auth profile runtime contract - Codex app-server adapter", () => {

271276

expect(harness.seenAuthProfileIds).toEqual([

272277

AUTH_PROFILE_RUNTIME_CONTRACT.openAiCodexProfileId,

273278

]),

274-

{ interval: 1 },

279+

APP_SERVER_START_WAIT,

275280

);

276281

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

277282

await harness.completeTurn();