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

推荐订阅源

WordPress大学
WordPress大学
L
LangChain Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
罗磊的独立博客
J
Java Code Geeks
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园 - 叶小钗
小众软件
小众软件
博客园 - Franky
D
Docker
Google DeepMind News
Google DeepMind News
Microsoft Azure Blog
Microsoft Azure Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
U
Unit 42
宝玉的分享
宝玉的分享
C
Check Point Blog
B
Blog
V
V2EX
博客园 - 三生石上(FineUI控件)
MyScale Blog
MyScale Blog
The Cloudflare Blog
博客园 - 聂微东
博客园_首页
Engineering at Meta
Engineering at Meta

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(ui): cap responsiveness event logs · openclaw/opencla...
vincentkoc · 2026-05-04 · via Recent Commits to openclaw:main

@@ -22,6 +22,7 @@ export type ControlUiRefreshRun = {

2222

const EVENT_LOG_LIMIT = 250;

2323

const SLOW_RPC_MS = 1_000;

2424

const RESPONSIVENESS_ENTRY_MS = 50;

25+

const RESPONSIVENESS_EVENT_LOG_LIMIT = 50;

25262627

type ControlUiResponsivenessObserver = {

2728

disconnect: () => void;

@@ -86,11 +87,19 @@ export function recordControlUiPerformanceEvent(

8687

host: ControlUiPerformanceHost,

8788

event: string,

8889

payload: Record<string, unknown>,

89-

opts?: { warn?: boolean; console?: boolean },

90+

opts?: { warn?: boolean; console?: boolean; maxBufferedEventsForType?: number },

9091

) {

9192

const entry: EventLogEntry = { ts: Date.now(), event, payload };

9293

if (Array.isArray(host.eventLogBuffer)) {

93-

host.eventLogBuffer = [entry, ...host.eventLogBuffer].slice(0, EVENT_LOG_LIMIT);

94+

const existingBuffer =

95+

typeof opts?.maxBufferedEventsForType === "number"

96+

? keepLatestBufferedEventsForType(

97+

host.eventLogBuffer,

98+

event,

99+

Math.max(0, opts.maxBufferedEventsForType - 1),

100+

)

101+

: host.eventLogBuffer;

102+

host.eventLogBuffer = [entry, ...existingBuffer].slice(0, EVENT_LOG_LIMIT);

94103

if (host.tab === "debug" || host.tab === "overview") {

95104

host.eventLog = host.eventLogBuffer;

96105

}

@@ -101,6 +110,26 @@ export function recordControlUiPerformanceEvent(

101110

logPerformanceEvent(event, payload, opts?.warn === true);

102111

}

103112113+

function keepLatestBufferedEventsForType(

114+

entries: unknown[],

115+

event: string,

116+

maxExistingForType: number,

117+

): unknown[] {

118+

let keptForType = 0;

119+

return entries.filter((entry) => {

120+

if (

121+

!entry ||

122+

typeof entry !== "object" ||

123+

!("event" in entry) ||

124+

(entry as { event?: unknown }).event !== event

125+

) {

126+

return true;

127+

}

128+

keptForType += 1;

129+

return keptForType <= maxExistingForType;

130+

});

131+

}

132+104133

export function scheduleControlUiTabVisibleTiming(

105134

host: ControlUiPerformanceHost,

106135

previousTab: Tab,

@@ -256,7 +285,7 @@ function recordResponsivenessEntry(

256285

scriptCount: Array.isArray(entry.scripts) ? entry.scripts.length : undefined,

257286

topScript: getTopLongAnimationFrameScript(entry.scripts),

258287

},

259-

{ warn: true },

288+

{ warn: true, maxBufferedEventsForType: RESPONSIVENESS_EVENT_LOG_LIMIT },

260289

);

261290

}

262291