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

推荐订阅源

B
Blog
A
About on SuperTechFans
Microsoft Security Blog
Microsoft Security Blog
Y
Y Combinator Blog
罗磊的独立博客
J
Java Code Geeks
人人都是产品经理
人人都是产品经理
MongoDB | Blog
MongoDB | Blog
The GitHub Blog
The GitHub Blog
G
Google Developers Blog
U
Unit 42
Microsoft Azure Blog
Microsoft Azure Blog
博客园 - Franky
Jina AI
Jina AI
F
Fortinet All Blogs
H
Help Net Security
B
Blog RSS Feed
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Last Week in AI
Last Week in AI
博客园 - 司徒正美
云风的 BLOG
云风的 BLOG
M
MIT News - Artificial intelligence
C
Check Point Blog
GbyAI
GbyAI

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: stabilize Parallels plugin smoke paths · openclaw/op...
steipete · 2026-04-26 · via Recent Commits to openclaw:main

@@ -50,8 +50,6 @@ type CiaoModule = {

5050

type BonjourCycle = {

5151

responder: BonjourResponder;

5252

services: Array<{ label: string; svc: BonjourService }>;

53-

cleanupUncaughtException?: () => void;

54-

cleanupUnhandledRejection?: () => void;

5553

};

56545755

type ServiceStateTracker = {

@@ -179,6 +177,18 @@ export async function startGatewayBonjourAdvertiser(

179177

const { getResponder, Protocol } = await loadCiaoModule();

180178

const restoreConsoleLog = installCiaoConsoleNoiseFilter();

181179

let requestCiaoRecovery: ((classification: CiaoProcessErrorClassification) => void) | undefined;

180+

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

181+

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

182+

let processHandlersCleaned = false;

183+184+

function cleanupProcessHandlers() {

185+

if (processHandlersCleaned) {

186+

return;

187+

}

188+

processHandlersCleaned = true;

189+

cleanupUncaughtException?.();

190+

cleanupUnhandledRejection?.();

191+

}

182192183193

const handleCiaoProcessError = (reason: unknown): boolean => {

184194

const classification = classifyCiaoProcessError(reason);

@@ -196,6 +206,8 @@ export async function startGatewayBonjourAdvertiser(

196206

}

197207

return true;

198208

};

209+

cleanupUnhandledRejection = deps.registerUnhandledRejectionHandler?.(handleCiaoProcessError);

210+

cleanupUncaughtException = deps.registerUncaughtExceptionHandler?.(handleCiaoProcessError);

199211200212

try {

201213

const hostnameRaw = process.env.OPENCLAW_MDNS_HOSTNAME?.trim() || "openclaw";

@@ -259,16 +271,7 @@ export async function startGatewayBonjourAdvertiser(

259271

svc: gateway as unknown as BonjourService,

260272

});

261273262-

const cleanupUnhandledRejection =

263-

services.length > 0 && deps.registerUnhandledRejectionHandler

264-

? deps.registerUnhandledRejectionHandler(handleCiaoProcessError)

265-

: undefined;

266-

const cleanupUncaughtException =

267-

services.length > 0 && deps.registerUncaughtExceptionHandler

268-

? deps.registerUncaughtExceptionHandler(handleCiaoProcessError)

269-

: undefined;

270-271-

return { responder, services, cleanupUncaughtException, cleanupUnhandledRejection };

274+

return { responder, services };

272275

}

273276274277

async function stopCycle(cycle: BonjourCycle | null, opts?: { shutdownResponder?: boolean }) {

@@ -288,9 +291,6 @@ export async function startGatewayBonjourAdvertiser(

288291

}

289292

} catch {

290293

/* ignore */

291-

} finally {

292-

cycle.cleanupUncaughtException?.();

293-

cycle.cleanupUnhandledRejection?.();

294294

}

295295

}

296296

@@ -483,10 +483,12 @@ export async function startGatewayBonjourAdvertiser(

483483

}

484484

await stopCycle(cycle, { shutdownResponder: true });

485485

restoreConsoleLog();

486+

cleanupProcessHandlers();

486487

},

487488

};

488489

} catch (err) {

489490

restoreConsoleLog();

491+

cleanupProcessHandlers();

490492

throw err;

491493

}

492494

}