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

推荐订阅源

V
V2EX
aimingoo的专栏
aimingoo的专栏
S
SegmentFault 最新的问题
博客园_首页
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
IT之家
IT之家
博客园 - 【当耐特】
月光博客
月光博客
C
Check Point Blog
T
The Blog of Author Tim Ferriss
罗磊的独立博客
博客园 - Franky
MongoDB | Blog
MongoDB | Blog
H
Help Net Security
Microsoft Security Blog
Microsoft Security Blog
B
Blog
阮一峰的网络日志
阮一峰的网络日志
腾讯CDC
美团技术团队
N
Netflix TechBlog - Medium
Stack Overflow Blog
Stack Overflow Blog
Y
Y Combinator Blog
L
LangChain Blog
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
test(release): tolerate unavailable live agent turns · op...
steipete · 2026-05-03 · via Recent Commits to openclaw:main

@@ -19,8 +19,8 @@ import {

1919

import { installOpenAiResponsesMock } from "./test-helpers.openai-mock.js";

2020

import { buildMockOpenAiResponsesProvider } from "./test-openai-responses-model.js";

212122-

let writeConfigFile: typeof import("../config/config.js").writeConfigFile;

2322

let resolveConfigPath: typeof import("../config/config.js").resolveConfigPath;

23+

let createConfigIO: typeof import("../config/config.js").createConfigIO;

2424

const GATEWAY_E2E_TIMEOUT_MS = 90_000;

2525

let gatewayTestSeq = 0;

2626

const GATEWAY_TEST_ENV_KEYS = [

@@ -137,7 +137,7 @@ describe("gateway e2e", () => {

137137

});

138138139139

beforeAll(async () => {

140-

({ writeConfigFile, resolveConfigPath } = await import("../config/config.js"));

140+

({ createConfigIO, resolveConfigPath } = await import("../config/config.js"));

141141

});

142142143143

it(

@@ -342,11 +342,14 @@ module.exports = {

342342

delete process.env.OPENCLAW_GATEWAY_TOKEN;

343343344344

const tempHome = await fs.mkdtemp(path.join(os.tmpdir(), "openclaw-wizard-home-"));

345+

const configPath = path.join(tempHome, ".openclaw", "openclaw.json");

345346

process.env.HOME = tempHome;

347+

process.env.OPENCLAW_STATE_DIR = path.join(tempHome, ".openclaw");

348+

process.env.OPENCLAW_CONFIG_PATH = configPath;

346349

process.env.OPENCLAW_BUNDLED_PLUGINS_DIR = await createEmptyBundledPluginsDir(tempHome);

347350

process.env.OPENCLAW_DISABLE_BUNDLED_PLUGINS = "1";

348-

delete process.env.OPENCLAW_STATE_DIR;

349-

delete process.env.OPENCLAW_CONFIG_PATH;

351+

clearRuntimeConfigSnapshot();

352+

clearConfigCache();

350353351354

const wizardToken = nextGatewayId("wiz-token");

352355

const port = await getFreeGatewayPort();

@@ -358,7 +361,7 @@ module.exports = {

358361

await prompter.intro("Wizard E2E");

359362

await prompter.note("write token");

360363

const token = await prompter.text({ message: "token" });

361-

await writeConfigFile({

364+

await createConfigIO({ configPath }).writeConfigFile({

362365

gateway: { auth: { mode: "token", token } },

363366

});

364367

await prompter.outro("ok");

@@ -413,11 +416,18 @@ module.exports = {

413416

);

414417

expect(next.status).toBe("done");

415418416-

const parsed = JSON.parse(await fs.readFile(resolveConfigPath(), "utf8"));

417-

const token = (parsed as Record<string, unknown>)?.gateway as

418-

| Record<string, unknown>

419-

| undefined;

420-

expect((token?.auth as { token?: string } | undefined)?.token).toBe(wizardToken);

419+

await expect

420+

.poll(

421+

async () => {

422+

const parsed = JSON.parse(await fs.readFile(configPath, "utf8"));

423+

const token = (parsed as Record<string, unknown>)?.gateway as

424+

| Record<string, unknown>

425+

| undefined;

426+

return (token?.auth as { token?: string } | undefined)?.token;

427+

},

428+

{ timeout: 5_000 },

429+

)

430+

.toBe(wizardToken);

421431

} finally {

422432

await disconnectGatewayClient(client);

423433

await server.close({ reason: "wizard e2e complete" });