[Feature Request] Setting to hide Edit/Write diff and content previews in the transcript

Status Open
Maintainer reply None cached
Activity 0 comments · opened Jul 28, 2026

Feature description

Edit and Write tool calls in the interactive TUI render a multi-line preview of the change: a few lines of diff context with the changed line highlighted (Update(file) ⎿ Added 1 line + ~6 context lines), or a content preview for Write (Wrote 21 lines to … + first ~10 lines + … +N lines).

For users who never read these previews (e.g. designers / non-coders who drive Claude Code and review changes elsewhere), this is pure noise: it multiplies the text to scroll through and buries the assistant's prose between tool calls. The default collapsed view still shows the previews, and Ctrl+O (verbose transcript) only goes in the opposite direction — more detail, never less.

Proposal

A settings.json key to suppress tool-result previews and keep only the one-line summary, e.g.:

{ "toolResultPreviewLines": 0 }

or a boolean "showToolResultPreviews": false. With it set, an edit renders as just:

Update(~/path/file.md) — Added 1 line
Write(~/path/new.md) — Wrote 21 lines

Related

#76487 asks for collapsed-by-default tool blocks in general (mobile-app-style one-line rendering). This request is the narrower, settings-based variant focused specifically on Edit/Write diff/content previews — useful even if the general collapsed mode lands, as a persistent default rather than a per-session toggle.

Environment

  • Platform: macOS
  • Claude Code v2.1.x (current)

🤖 Generated with Claude Code on behalf of the user

View original on GitHub ↗