Просмотр исходного кода

fix(tui): disable table header styling instead of bold

Bold is invisible with RGB colors in Ink; use empty style so headers
inherit the parent WARM_REPLY color like body cells.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
fanghanjun 7 месяцев назад
Родитель
Сommit
38c7cd56f9
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      packages/cli/src/tui/markdown.ts

+ 2 - 2
packages/cli/src/tui/markdown.ts

@@ -11,8 +11,8 @@ marked.use(markedTerminal({
   // so reflowText won't split ANSI codes across lines. Post-process converts them.
   listitem: (text: string) => text,
   strong: (text: string) => `**${text}**`,
-  // cli-table3 defaults table headers to red; override to bold only
-  tableOptions: { style: { head: ["bold"] } },
+  // cli-table3 defaults table headers to red; disable to inherit parent color
+  tableOptions: { style: { head: [] } },
 }) as never);
 
 const BOLD_ON = "\x1b[1m";