From 6182159f6d29723ff5ec03e79fb1dff05fd6dee9 Mon Sep 17 00:00:00 2001 From: Tito Date: Thu, 12 Mar 2026 23:46:56 +1300 Subject: [PATCH] fix(cli): prevent yargs from stripping logo whitespace in --help --- packages/opencode/src/cli/ui.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/opencode/src/cli/ui.ts b/packages/opencode/src/cli/ui.ts index 39396997c65..329eb0a4661 100644 --- a/packages/opencode/src/cli/ui.ts +++ b/packages/opencode/src/cli/ui.ts @@ -70,7 +70,7 @@ export namespace UI { continue } if (char === " ") { - parts.push(" ") + parts.push("\u00A0") continue } parts.push(fg, char, reset) @@ -79,6 +79,7 @@ export namespace UI { } glyphs.left.forEach((row, index) => { if (pad) result.push(pad) + if (index === 0) result.push(left.fg) result.push(draw(row, left.fg, left.shadow, left.bg)) result.push(gap) const other = glyphs.right[index] ?? ""