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
-
New
diff_displayoption (under[tui]), four levelsfull_line(default): foreground + full-line background across the widget width + inline emphasis, same visual as beforecontent: background only on the gutter and cells that have text; trailing whitespace is not colored; inline emphasis retainedtext: no background or reversal; Insert/Delete lines still use line-level foreground color; emphasized segments are bold onlysummary: the main view keeps only the header's+N/−Mcounts and no longer renders hunk rows
-
summarydoesn't block full inspection
TheCtrl+Toverlay and the debug detailed view still render the full diff asfull_line; the summary level only compresses tool activity in the main view. -
Config validation updated
Parsing and startup error messages support the new field; invalid values produce a clear error at startup.
Notes
- See config.toml,
[tui]section, for the setting. - Continues Inline diff highlighting: inline emphasis and line-level styles are driven by the same diff rendering.