[Question] Edit tool: Diff view only opens for single-line edits, not multi-line - is this by design?

Resolved 💬 8 comments Opened Nov 9, 2025 by elfenlieds7 Closed Jan 19, 2026

Environment

  • Claude Code Version: VSCode Extension (latest)
  • Platform: Windows
  • IDE: VSCode

Observed Behavior

When using the Edit tool, I've noticed inconsistent behavior in how file changes are presented:

Single-line edits:

  • Opens VSCode's built-in diff editor
  • Shows side-by-side comparison (red/green highlighting)
  • Requires approval in the diff view

Multi-line edits:

  • Does NOT open the diff editor
  • Only shows an approval dialog with text diff
  • No visual side-by-side comparison in the editor

Example

Single-line change (opens diff editor):

old: version = "0.5.3"
new: version = "0.5.4"

Multi-line change (no diff editor, only dialog):

old: 
target-version = "py311"
line-length = 100

new:
target-version = "py312"
line-length = 120

Question

Is this behavior by design or is there a configuration option to control it?

Expected behavior: I would expect all Edit tool operations to open the diff editor view for consistency, regardless of the number of lines changed.

Current behavior: Only single-line edits open the diff editor; multi-line edits bypass it.

Configuration Checked

I've reviewed my .claude/settings.local.json (only contains permissions config) and couldn't find any settings related to diff view behavior. The official documentation doesn't mention this either.

Is there a setting I'm missing, or is this the intended UX design?

Thank you!

View original on GitHub ↗

This issue has 8 comments on GitHub. Read the full discussion on GitHub ↗