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

推荐订阅源

让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Jina AI
Jina AI
Hugging Face - Blog
Hugging Face - Blog
博客园 - 三生石上(FineUI控件)
博客园 - 【当耐特】
大猫的无限游戏
大猫的无限游戏
IT之家
IT之家
宝玉的分享
宝玉的分享
WordPress大学
WordPress大学
有赞技术团队
有赞技术团队
Apple Machine Learning Research
Apple Machine Learning Research
酷 壳 – CoolShell
酷 壳 – CoolShell
阮一峰的网络日志
阮一峰的网络日志
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
爱范儿
爱范儿
小众软件
小众软件
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
The Cloudflare Blog
S
SegmentFault 最新的问题
博客园 - Franky
博客园_首页
T
Tailwind CSS 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(ci): restore main validation · openclaw/openclaw@0211a3a
steipete · 2026-05-31 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -572,12 +572,16 @@ describe("runCodexAppServerAttempt turn watches", () => {

572572

const harness = createStartedThreadHarness();

573573

const warn = vi.spyOn(embeddedAgentLog, "warn").mockImplementation(() => undefined);

574574

let resolveRefresh: (() => void) | undefined;

575-

vi.spyOn(authBridge, "refreshCodexAppServerAuthTokens").mockImplementation(

576-

async () =>

577-

await new Promise<void>((resolve) => {

578-

resolveRefresh = resolve;

579-

}),

580-

);

575+

vi.spyOn(authBridge, "refreshCodexAppServerAuthTokens").mockImplementation(async () => {

576+

await new Promise<void>((resolve) => {

577+

resolveRefresh = resolve;

578+

});

579+

return {

580+

accessToken: "access-token",

581+

chatgptAccountId: "account-id",

582+

chatgptPlanType: null,

583+

};

584+

});

581585

const params = createParams(

582586

path.join(tempDir, "session.jsonl"),

583587

path.join(tempDir, "workspace"),

Original file line numberDiff line numberDiff line change

@@ -4,7 +4,6 @@ import path from "node:path";

44

import { beforeEach, describe, expect, it, vi } from "vitest";

55

import { resolveOAuthDir } from "../config/paths.js";

66

import { MAX_DATE_TIMESTAMP_MS } from "../shared/number-coercion.js";

7-

import { legacyOAuthSidecarTestUtils } from "./auth-profiles/legacy-oauth-sidecar.js";

87

import { resolveAuthStatePath, resolveAuthStorePath } from "./auth-profiles/paths.js";

98

import { getRuntimeAuthProfileStoreSnapshot } from "./auth-profiles/runtime-snapshots.js";

109

import {

Original file line numberDiff line numberDiff line change

@@ -326,10 +326,12 @@ export function createOAuthManager(adapter: OAuthManagerAdapter) {

326326

allowKeychainPrompt: false,

327327

});

328328

const mainCred = mainStore.profiles[params.profileId];

329-

const mainExpires = asDateTimestampMs(mainCred?.expires);

329+

if (mainCred?.type !== "oauth") {

330+

return null;

331+

}

332+

const mainExpires = asDateTimestampMs(mainCred.expires);

330333

const localExpires = asDateTimestampMs(params.credential.expires);

331334

if (

332-

mainCred?.type === "oauth" &&

333335

mainCred.provider === params.credential.provider &&

334336

hasUsableOAuthCredential(mainCred) &&

335337

mainExpires !== undefined &&

Original file line numberDiff line numberDiff line change

@@ -1076,7 +1076,7 @@ describe("markAuthProfileFailure — WHAM-aware Codex cooldowns", () => {

10761076
10771077

await markCodexFailureAt({ store, now: MAX_DATE_TIMESTAMP_MS, reason: "unknown" });

10781078
1079-

expect(store.usageStats?.["openai-codex:default"]?.cooldownUntil).toBe(MAX_DATE_TIMESTAMP_MS);

1079+

expect(store.usageStats?.["openai:default"]?.cooldownUntil).toBe(MAX_DATE_TIMESTAMP_MS);

10801080

});

10811081
10821082

it.each([

Original file line numberDiff line numberDiff line change

@@ -221,7 +221,7 @@ describe("bundled channel entry shape guards", () => {

221221

);

222222

realBundledSourceTreeProbe = {

223223

hasAccountInspect: bundled.hasBundledChannelEntryFeature("slack", "accountInspect"),

224-

pluginIds: bundled.listBundledChannelPluginIds(),

224+

pluginIds: [...bundled.listBundledChannelPluginIds()],

225225

};

226226

});

227227
Original file line numberDiff line numberDiff line change

@@ -154,10 +154,11 @@ function buildExpiry(

154154

remainingMs: number | undefined,

155155

expiresAt: number | undefined,

156156

): ModelAuthExpiry | undefined {

157-

if (asDateTimestampMs(expiresAt) === undefined || typeof remainingMs !== "number") {

157+

const validExpiresAt = asDateTimestampMs(expiresAt);

158+

if (validExpiresAt === undefined || typeof remainingMs !== "number") {

158159

return undefined;

159160

}

160-

return { at: expiresAt, remainingMs, label: formatRemainingShort(remainingMs) };

161+

return { at: validExpiresAt, remainingMs, label: formatRemainingShort(remainingMs) };

161162

}

162163
163164

function providerDisplayName(provider: string): string {

Original file line numberDiff line numberDiff line change

@@ -226,9 +226,9 @@ describe("gateway device.token.rotate/revoke ownership guard (IDOR)", () => {

226226

pairedBAfterRevokeRevokedAtMs: pairedBAfterRevoke?.tokens?.operator?.revokedAtMs,

227227

pairedBToken: pairedB?.tokens?.operator?.token,

228228

revokeMessage: revoke.error?.message,

229-

revokeOk: revoke.ok === true,

229+

revokeOk: revoke.ok,

230230

rotateMessage: rotate.error?.message,

231-

rotateOk: rotate.ok === true,

231+

rotateOk: rotate.ok,

232232

token: deviceB.pairingToken,

233233

};

234234

} finally {

Original file line numberDiff line numberDiff line change

@@ -185,7 +185,7 @@ describe("gateway shared auth rotation", () => {

185185

const res = await sendSharedTokenRotationPatch(ws);

186186

sharedTokenRotationCase = {

187187

closed: await closed,

188-

ok: res.ok === true,

188+

ok: res.ok,

189189

};

190190

} finally {

191191

await closeWsAndWait(ws);

Original file line numberDiff line numberDiff line change

@@ -65,7 +65,7 @@ beforeAll(async () => {

6565

});

6666

configSetRotationCase = {

6767

closed: await closed,

68-

setOk: setRes.ok === true,

68+

setOk: setRes.ok,

6969

};

7070

} finally {

7171

ws.close();

Original file line numberDiff line numberDiff line change

@@ -1,4 +1,5 @@

11

import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";

2+

import { resolveTimerTimeoutMs } from "../shared/number-coercion.js";

23

import { MAX_SAFE_TIMEOUT_DELAY_MS } from "../utils/timer-delay.js";

34

import { resolveRetryConfig, retryAsync } from "./retry.js";

45

@@ -205,11 +206,12 @@ describe("retryAsync", () => {

205206

vi.useFakeTimers();

206207

const timeoutSpy = vi.spyOn(globalThis, "setTimeout");

207208

const fn = vi.fn().mockRejectedValueOnce(new Error("boom")).mockResolvedValueOnce("ok");

209+

const scheduledDelayMs = resolveTimerTimeoutMs(MAX_SAFE_TIMEOUT_DELAY_MS, 0, 0);

208210

try {

209211

const promise = retryAsync(fn, 2, 3_000_000_000);

210212

await vi.advanceTimersByTimeAsync(MAX_SAFE_TIMEOUT_DELAY_MS);

211213

await expect(promise).resolves.toBe("ok");

212-

expect(timeoutSpy).toHaveBeenCalledWith(expect.any(Function), MAX_SAFE_TIMEOUT_DELAY_MS);

214+

expect(timeoutSpy).toHaveBeenCalledWith(expect.any(Function), scheduledDelayMs);

213215

} finally {

214216

timeoutSpy.mockRestore();

215217

vi.clearAllTimers();

@@ -226,21 +228,14 @@ describe("retryAsync", () => {

226228

.mockRejectedValueOnce(new Error("boom-1"))

227229

.mockRejectedValueOnce(new Error("boom-2"))

228230

.mockResolvedValueOnce("ok");

231+

const scheduledDelayMs = resolveTimerTimeoutMs(MAX_SAFE_TIMEOUT_DELAY_MS, 0, 0);

229232

try {

230233

const promise = retryAsync(fn, 3, Number.MAX_VALUE);

231234

await vi.advanceTimersByTimeAsync(MAX_SAFE_TIMEOUT_DELAY_MS);

232235

await vi.advanceTimersByTimeAsync(MAX_SAFE_TIMEOUT_DELAY_MS);

233236

await expect(promise).resolves.toBe("ok");

234-

expect(timeoutSpy).toHaveBeenNthCalledWith(

235-

1,

236-

expect.any(Function),

237-

MAX_SAFE_TIMEOUT_DELAY_MS,

238-

);

239-

expect(timeoutSpy).toHaveBeenNthCalledWith(

240-

2,

241-

expect.any(Function),

242-

MAX_SAFE_TIMEOUT_DELAY_MS,

243-

);

237+

expect(timeoutSpy).toHaveBeenNthCalledWith(1, expect.any(Function), scheduledDelayMs);

238+

expect(timeoutSpy).toHaveBeenNthCalledWith(2, expect.any(Function), scheduledDelayMs);

244239

} finally {

245240

timeoutSpy.mockRestore();

246241

vi.clearAllTimers();