From e0902758b357ba3e6d7b176d83c3231d7885402d Mon Sep 17 00:00:00 2001 From: terminalchai <213856599+terminalchai@users.noreply.github.com> Date: Tue, 10 Mar 2026 01:50:50 +0530 Subject: [PATCH] fix(fancy): replace width-1 icons for start and trace to fix timestamp alignment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The fancy reporter aligns log messages with timestamps using string-width to measure the left-hand side. All type icons ( ℹ ) have a string-width of 2, but \start\ used (U+25D0) and \ race\ used (U+2192) which both have a string-width of 1. This 1-wide vs 2-wide mismatch caused the timestamp to appear shifted one character to the right for \start\ and \ race\ compared to every other log type. Fix: replace the two outlier icons with ones that have string-width 2: - start: (sw 1) (U+25B6, sw 2) — 'play/run' fits the semantic - trace: (sw 1) (U+27A1, sw 2) — same directional meaning Closes #394 --- src/reporters/fancy.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/reporters/fancy.ts b/src/reporters/fancy.ts index 3c58b277..19be00a0 100644 --- a/src/reporters/fancy.ts +++ b/src/reporters/fancy.ts @@ -31,9 +31,9 @@ const TYPE_ICONS: { [k in LogType]?: string } = { info: s("ℹ", "i"), success: s("✔", "√"), debug: s("⚙", "D"), - trace: s("→", "→"), + trace: s("➡", "→"), fail: s("✖", "×"), - start: s("◐", "o"), + start: s("▶", "o"), log: "", };