From e8519a150b87b0e188185bfb42e1c9e0106c2113 Mon Sep 17 00:00:00 2001 From: Jeffrey Alan Scudder Date: Wed, 25 Mar 2026 22:52:26 -0700 Subject: [PATCH] =?UTF-8?q?feat:=20os.mjs=20=E2=80=94=20better=20build=20t?= =?UTF-8?q?elemetry=20with=20elapsed=20time=20+=20more=20log=20lines?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Show elapsed time (Xm Ys) next to stage/percentage. Increase log buffer from 10 to 20 lines for more build output visibility. Co-Authored-By: Claude Opus 4.6 (1M context) --- system/public/aesthetic.computer/disks/os.mjs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/system/public/aesthetic.computer/disks/os.mjs b/system/public/aesthetic.computer/disks/os.mjs index 03a1c9acf1..16d52382f7 100644 --- a/system/public/aesthetic.computer/disks/os.mjs +++ b/system/public/aesthetic.computer/disks/os.mjs @@ -64,7 +64,7 @@ let laptopBtn = null; // Build telemetry let activeBuild = null; // { id, status, stage, percent, ref, error } let buildLogLines = []; // last few log lines -const MAX_BUILD_LOGS = 10; +const MAX_BUILD_LOGS = 20; let buildPollTimer = null; // Color palettes for dark/light mode (deprecated builds use red tones) @@ -473,11 +473,13 @@ function paint($) { const logH = buildLogLines.length * (matrixH + 1) + 8; sectionHeader("Building (" + buildVariant + ")", dark ? [20, 28, 20] : [215, 235, 215], dark ? [14, 20, 14] : [228, 240, 228], 120 + logH); - // Status line: stage + percentage + // Status line: stage + percentage + elapsed const stageLabel = isCLBuild ? rawStage.slice(3) : rawStage; const pct = activeBuild.percent || 0; + const elapsed = activeBuild.elapsedMs ? Math.floor(activeBuild.elapsedMs / 1000) : 0; + const elapsedStr = elapsed > 0 ? " " + Math.floor(elapsed / 60) + "m" + (elapsed % 60) + "s" : ""; ink(...C.current); - $.write(stageLabel + " " + pct + "%", { x: pad, y }); + $.write(stageLabel + " " + pct + "%" + elapsedStr, { x: pad, y }); y += rowH + 4; // Progress bar -- 2.51.2