From 01ad090ec988c93153478cf65cca508a6e527ba3 Mon Sep 17 00:00:00 2001 From: Codex Date: Fri, 26 Jun 2026 19:51:43 +0000 Subject: [PATCH] fix(web-probe): preserve taskBody/report fields in compactProjectManagementSample MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The analyzer compact function dropped taskBodyVisible, taskBody, reportLinkCount, reportPreviewVisible, reportPreview and reportFullscreenVisible from project-management samples, causing false mdtodo-task-body-not-visible and mdtodo-report-preview-missing red findings even when the latest sample had taskBodyVisible=true. Closes the analyzer/runner field mismatch surfaced by HWLAB#2216验收. --- scripts/src/hwlab-node-web-observe-analyzer-source.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/src/hwlab-node-web-observe-analyzer-source.ts b/scripts/src/hwlab-node-web-observe-analyzer-source.ts index 200784d5..b5ab6d14 100644 --- a/scripts/src/hwlab-node-web-observe-analyzer-source.ts +++ b/scripts/src/hwlab-node-web-observe-analyzer-source.ts @@ -784,6 +784,12 @@ function compactProjectManagementSample(value) { fileSelectVisible: value.fileSelectVisible === true, sourceConfigVisible: value.sourceConfigVisible === true, taskEditorVisible: value.taskEditorVisible === true, + taskBodyVisible: value.taskBodyVisible === true, + taskBody: value.taskBody ?? null, + reportLinkCount: value.reportLinkCount ?? 0, + reportPreviewVisible: value.reportPreviewVisible === true, + reportPreview: value.reportPreview ?? null, + reportFullscreenVisible: value.reportFullscreenVisible === true, newTaskDraftVisible: value.newTaskDraftVisible === true, taskStatusCounts: value.taskStatusCounts && typeof value.taskStatusCounts === "object" ? value.taskStatusCounts : {}, launchButtonVisible: value.launchButtonVisible === true,