[object Object]

← back to Answer Cockpit

TK-11793: strip box-drawing glyphs from narrow-pane question text

393a954bae84162b9728ad2d680389a28f1243bf · 2026-09-15 19:34:56 -0700 · Steve Abrams

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

Files touched

Diff

commit 393a954bae84162b9728ad2d680389a28f1243bf
Author: Steve Abrams <steve@designerwallcoverings.com>
Date:   Tue Sep 15 19:34:56 2026 -0700

    TK-11793: strip box-drawing glyphs from narrow-pane question text
    
    Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
---
 lib/transcript.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/transcript.js b/lib/transcript.js
index e144ee8..2ad94f9 100644
--- a/lib/transcript.js
+++ b/lib/transcript.js
@@ -321,7 +321,8 @@ function parsePane(text) {
         if (!SYNTHETIC_OPT_RE.test(label)) opts.push({ n: parseInt(m[1], 10), label, description: '' });
         continue;
       }
-      if (!seenOpt) { const t = l.trim(); if (t) qLines.push(t); }
+      // narrow panes wrap the question inside a box — strip the box-drawing glyphs
+      if (!seenOpt) { const t = l.replace(/[│┃║]/g, ' ').trim(); if (t) qLines.push(t); }
       else if (opts.length && /^\s{3,}\S/.test(l)) opts[opts.length - 1].description = (opts[opts.length - 1].description + ' ' + l.trim()).trim();
     }
     const hasCursor = region.some((l) => /^\s*❯\s*\d{1,2}[.)]/.test(l));

← 90a2183 TK-11793: README — E2E proof recorded (ANSWER_RECEIVED=Bravo  ·  back to Answer Cockpit  ·  TK-11793: Cody FIX-FIRST — multi-select menus refuse typed a 490a399 →