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

推荐订阅源

V
Visual Studio Blog
I
InfoQ
H
Help Net Security
GbyAI
GbyAI
博客园 - 叶小钗
Recent Announcements
Recent Announcements
Engineering at Meta
Engineering at Meta
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
爱范儿
爱范儿
Y
Y Combinator Blog
L
LangChain Blog
腾讯CDC
酷 壳 – CoolShell
酷 壳 – CoolShell
WordPress大学
WordPress大学
Stack Overflow Blog
Stack Overflow Blog
F
Fortinet All Blogs
G
Google Developers Blog
Apple Machine Learning Research
Apple Machine Learning Research
The GitHub Blog
The GitHub Blog
T
The Blog of Author Tim Ferriss
博客园 - Franky
D
Docker
Jina AI
Jina AI
罗磊的独立博客

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(release): keep ClawHub verification bodies timed · op...
vincentkoc · 2026-06-19 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -42,6 +42,11 @@ export type NpmViewFields = {

4242

tarball?: string;

4343

};

4444
45+

type FetchWithRetryResult = {

46+

response: Response;

47+

signal: AbortSignal;

48+

};

49+
4550

type WorkflowRunSummary = {

4651

id: string;

4752

label: string;

@@ -262,16 +267,17 @@ async function fetchWithRetry(

262267

url: string,

263268

options: RequestInit,

264269

attempts: number,

265-

): Promise<Response> {

270+

): Promise<FetchWithRetryResult> {

266271

let lastError: unknown;

267272

for (let attempt = 1; attempt <= attempts; attempt += 1) {

268273

try {

274+

const signal = AbortSignal.timeout(CLAWHUB_REQUEST_TIMEOUT_MS);

269275

const response = await fetch(url, {

270276

...options,

271-

signal: AbortSignal.timeout(CLAWHUB_REQUEST_TIMEOUT_MS),

277+

signal,

272278

});

273279

if (response.status !== 429 && response.status < 500) {

274-

return response;

280+

return { response, signal };

275281

}

276282

lastError = new Error(`HTTP ${response.status}`);

277283

} catch (error) {

@@ -288,23 +294,28 @@ async function fetchWithRetry(

288294

}

289295
290296

async function fetchJsonWithRetry(url: string): Promise<unknown> {

291-

const response = await fetchWithRetry(url, { headers: { accept: "application/json" } }, 5);

297+

const { response, signal } = await fetchWithRetry(

298+

url,

299+

{ headers: { accept: "application/json" } },

300+

5,

301+

);

292302

if (!response.ok) {

293303

throw new Error(`${url} returned HTTP ${response.status}.`);

294304

}

295-

return await readBoundedJsonResponse(response, url);

305+

return await readBoundedJsonResponse(response, url, undefined, { signal });

296306

}

297307
298308

export async function readBoundedJsonResponse(

299309

response: Response,

300310

label: string,

301311

maxBytes = CLAWHUB_RESPONSE_BODY_MAX_BYTES,

312+

options: { signal?: AbortSignal } = {},

302313

): Promise<unknown> {

303-

return parseJson(await readBoundedResponseText(response, label, maxBytes), label);

314+

return parseJson(await readBoundedResponseText(response, label, maxBytes, options), label);

304315

}

305316
306317

async function fetchStatusWithRetry(url: string, method: "GET" | "HEAD"): Promise<number> {

307-

const response = await fetchWithRetry(url, { method, redirect: "manual" }, 5);

318+

const { response } = await fetchWithRetry(url, { method, redirect: "manual" }, 5);

308319

return response.status;

309320

}

310321