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

推荐订阅源

WordPress大学
WordPress大学
酷 壳 – CoolShell
酷 壳 – CoolShell
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
腾讯CDC
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Jina AI
Jina AI
N
Netflix TechBlog - Medium
有赞技术团队
有赞技术团队
博客园 - 【当耐特】
MongoDB | Blog
MongoDB | Blog
P
Proofpoint News Feed
L
LangChain Blog
aimingoo的专栏
aimingoo的专栏
GbyAI
GbyAI
B
Blog
F
Fortinet All Blogs
T
Tailwind CSS Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
G
Google Developers Blog
A
About on SuperTechFans
C
Check Point Blog
Microsoft Security Blog
Microsoft Security Blog
MyScale Blog
MyScale Blog
B
Blog RSS Feed

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: reduce idle liveness warning noise · openclaw/opencl...
steipete · 2026-05-02 · via Recent Commits to openclaw:main

@@ -112,6 +112,7 @@ let diagnosticLivenessMonitor: EventLoopDelayMonitor | null = null;

112112

let lastDiagnosticLivenessWallAt = 0;

113113

let lastDiagnosticLivenessCpuUsage: CpuUsage | null = null;

114114

let lastDiagnosticLivenessEventLoopUtilization: EventLoopUtilization | null = null;

115+

let lastDiagnosticLivenessEventAt = 0;

115116

let lastDiagnosticLivenessWarnAt = 0;

116117117118

function loadCommandPollBackoffRuntime() {

@@ -179,6 +180,7 @@ function startDiagnosticLivenessSampler(): void {

179180

lastDiagnosticLivenessWallAt = Date.now();

180181

lastDiagnosticLivenessCpuUsage = process.cpuUsage();

181182

lastDiagnosticLivenessEventLoopUtilization = performance.eventLoopUtilization();

183+

lastDiagnosticLivenessEventAt = 0;

182184

lastDiagnosticLivenessWarnAt = 0;

183185184186

if (diagnosticLivenessMonitor) {

@@ -202,6 +204,7 @@ function stopDiagnosticLivenessSampler(): void {

202204

lastDiagnosticLivenessWallAt = 0;

203205

lastDiagnosticLivenessCpuUsage = null;

204206

lastDiagnosticLivenessEventLoopUtilization = null;

207+

lastDiagnosticLivenessEventAt = 0;

205208

lastDiagnosticLivenessWarnAt = 0;

206209

}

207210

@@ -266,7 +269,21 @@ function sampleDiagnosticLiveness(now: number): DiagnosticLivenessSample | null

266269

};

267270

}

268271269-

function shouldEmitDiagnosticLivenessWarning(now: number): boolean {

272+

function shouldEmitDiagnosticLivenessEvent(now: number): boolean {

273+

if (

274+

lastDiagnosticLivenessEventAt > 0 &&

275+

now - lastDiagnosticLivenessEventAt < DEFAULT_LIVENESS_WARN_COOLDOWN_MS

276+

) {

277+

return false;

278+

}

279+

lastDiagnosticLivenessEventAt = now;

280+

return true;

281+

}

282+283+

function shouldEmitDiagnosticLivenessWarning(now: number, work: DiagnosticWorkSnapshot): boolean {

284+

if (!hasOpenDiagnosticWork(work)) {

285+

return false;

286+

}

270287

if (

271288

lastDiagnosticLivenessWarnAt > 0 &&

272289

now - lastDiagnosticLivenessWarnAt < DEFAULT_LIVENESS_WARN_COOLDOWN_MS

@@ -281,19 +298,22 @@ function emitDiagnosticLivenessWarning(

281298

sample: DiagnosticLivenessSample,

282299

work: DiagnosticWorkSnapshot,

283300

): void {

284-

diag.warn(

285-

`liveness warning: reasons=${sample.reasons.join(",")} interval=${Math.round(

286-

sample.intervalMs / 1000,

287-

)}s eventLoopDelayP99Ms=${formatOptionalDiagnosticMetric(

288-

sample.eventLoopDelayP99Ms,

289-

)} eventLoopDelayMaxMs=${formatOptionalDiagnosticMetric(

290-

sample.eventLoopDelayMaxMs,

291-

)} eventLoopUtilization=${formatOptionalDiagnosticMetric(

292-

sample.eventLoopUtilization,

293-

)} cpuCoreRatio=${formatOptionalDiagnosticMetric(sample.cpuCoreRatio)} active=${

294-

work.activeCount

295-

} waiting=${work.waitingCount} queued=${work.queuedCount}`,

296-

);

301+

const message = `liveness warning: reasons=${sample.reasons.join(",")} interval=${Math.round(

302+

sample.intervalMs / 1000,

303+

)}s eventLoopDelayP99Ms=${formatOptionalDiagnosticMetric(

304+

sample.eventLoopDelayP99Ms,

305+

)} eventLoopDelayMaxMs=${formatOptionalDiagnosticMetric(

306+

sample.eventLoopDelayMaxMs,

307+

)} eventLoopUtilization=${formatOptionalDiagnosticMetric(

308+

sample.eventLoopUtilization,

309+

)} cpuCoreRatio=${formatOptionalDiagnosticMetric(sample.cpuCoreRatio)} active=${

310+

work.activeCount

311+

} waiting=${work.waitingCount} queued=${work.queuedCount}`;

312+

if (hasOpenDiagnosticWork(work)) {

313+

diag.warn(message);

314+

} else {

315+

diag.debug(message);

316+

}

297317

emitDiagnosticEvent({

298318

type: "diagnostic.liveness.warning",

299319

reasons: sample.reasons,

@@ -735,10 +755,13 @@ export function startDiagnosticHeartbeat(

735755

pruneDiagnosticSessionStates(now, true);

736756

const work = getDiagnosticWorkSnapshot();

737757

const livenessSample = (opts?.sampleLiveness ?? sampleDiagnosticLiveness)(now, work);

758+

const shouldEmitLivenessEvent =

759+

livenessSample !== null && shouldEmitDiagnosticLivenessEvent(now);

738760

const shouldEmitLivenessWarning =

739-

livenessSample !== null && shouldEmitDiagnosticLivenessWarning(now);

761+

livenessSample !== null && shouldEmitDiagnosticLivenessWarning(now, work);

762+

const shouldEmitLivenessReport = shouldEmitLivenessEvent || shouldEmitLivenessWarning;

740763

const shouldRecordMemorySample =

741-

shouldEmitLivenessWarning || hasRecentDiagnosticActivity(now) || hasOpenDiagnosticWork(work);

764+

shouldEmitLivenessReport || hasRecentDiagnosticActivity(now) || hasOpenDiagnosticWork(work);

742765

(opts?.emitMemorySample ?? emitDiagnosticMemorySample)({

743766

emitSample: shouldRecordMemorySample,

744767

});

@@ -747,7 +770,7 @@ export function startDiagnosticHeartbeat(

747770

return;

748771

}

749772750-

if (shouldEmitLivenessWarning && livenessSample) {

773+

if (shouldEmitLivenessReport && livenessSample) {

751774

emitDiagnosticLivenessWarning(livenessSample, work);

752775

}

753776