Преглед изворни кода

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 месеци
родитељ
комит
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.
   // so reflowText won't split ANSI codes across lines. Post-process converts them.
   listitem: (text: string) => text,
   listitem: (text: string) => text,
   strong: (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);
 }) as never);
 
 
 const BOLD_ON = "\x1b[1m";
 const BOLD_ON = "\x1b[1m";