From 214809c48f0263d965c591331689ccf9208de23a Mon Sep 17 00:00:00 2001 From: Lyon <88232613+pikasTech@users.noreply.github.com> Date: Wed, 24 Jun 2026 00:10:17 +0800 Subject: [PATCH] fix(web-probe): widen long session DOM samples (#760) Co-authored-by: Codex --- scripts/src/hwlab-node-web-observe-runner-source.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/src/hwlab-node-web-observe-runner-source.ts b/scripts/src/hwlab-node-web-observe-runner-source.ts index 11bf900b..c50ceef5 100644 --- a/scripts/src/hwlab-node-web-observe-runner-source.ts +++ b/scripts/src/hwlab-node-web-observe-runner-source.ts @@ -1670,7 +1670,7 @@ async function sampleOnePage(targetPage, { reason, groupSeq, pageRole, targetPag const messageSelector = 'article.message-card, .message-card[data-message-id], article[data-message-id]'; const traceSelector = '[data-testid*="trace" i], [class*="trace" i], [data-trace-id], [data-testid*="event" i]'; const diagnosticSelector = '.api-error-diagnostic, [class*="api-error-diagnostic" i], [class*="message-diagnostic" i], [class*="projection-diagnostic" i], [data-testid="api-error-diagnostic" i], [data-testid="error-diagnostic" i], [data-testid*="diagnostic" i], [role="alert"], [aria-live="assertive"]'; - const messages = summarizeMessages(messageSelector, 20); + const messages = summarizeMessages(messageSelector, 80); const traceRows = summarize(traceSelector, 30); const loadings = collectLoadingNodes(); const sessionRail = collectSessionRailTitles(); @@ -1724,7 +1724,7 @@ async function sampleOnePage(targetPage, { reason, groupSeq, pageRole, targetPag text, rect: { x: Math.round(rect.x), y: Math.round(rect.y), width: Math.round(rect.width), height: Math.round(rect.height) }, }; - }).slice(-20); + }).slice(-80); const active = document.activeElement; return { url,