For AI agents: the complete documentation index is available at /en/llms.txt, the full documentation bundle is available at /en/llms-full.txt, and this page is available as Markdown at /en/changelog/tool-diff-display.md.
  • English

  • description: New diff_display option for tool diffs: full_line / content / text / summary control the coloring scope and whether hunk rows render in the main view; summary still shows the full diff via Ctrl+T

    Configurable tool diff coloring and display

    • Date: 2026-08-15
    • Commit: feat(tui): make tool diff coloring and display modes configurable
    • Version cue: 0.12.1-alpha.4

    Previously, diffs shown in tool activity had a single rendering style — foreground plus full-line background plus inline emphasis — with no way to adjust it. This change adds a diff_display option with four levels that control the diff's coloring scope and summarization, from "full-line coloring" to "header-only summary in the main view", so you can pick what fits how you read.

    What changed

    1. New diff_display option (under [tui]), four levels

      • full_line (default): foreground + full-line background across the widget width + inline emphasis, same visual as before
      • content: background only on the gutter and cells that have text; trailing whitespace is not colored; inline emphasis retained
      • text: no background or reversal; Insert/Delete lines still use line-level foreground color; emphasized segments are bold only
      • summary: the main view keeps only the header's +N/−M counts and no longer renders hunk rows
    2. summary doesn't block full inspection
      The Ctrl+T overlay and the debug detailed view still render the full diff as full_line; the summary level only compresses tool activity in the main view.

    3. Config validation updated
      Parsing and startup error messages support the new field; invalid values produce a clear error at startup.

    Notes