[BUG] JetBrains plugin: diff approval doesn't register when the diff is empty (Write/Edit falsely reported as rejected)

Status Open
Reported on v2.1.228
Maintainer reply None cached
Activity 0 comments · opened Aug 21, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Approving a Write/Edit via the JetBrains plugin's diff-approval UI silently fails to register when the diff is empty — e.g. creating a new empty file, or an edit with no visible line changes. The CLI reports "The user doesn't want to proceed with this tool use. The tool use was rejected" despite clicking Approve. The same operation via the plain terminal prompt succeeds immediately, and the plugin's approval flow works normally for non-empty diffs.

What Should Happen?

Approving an empty diff should work the same as approving a non-empty one.

Error Messages/Logs

Steps to Reproduce

  1. In an IntelliJ-family IDE with the Claude Code plugin active, start a session in a git repo.
  2. Ask Claude to create a new empty file via Write.
  3. When the plugin opens the (empty) diff view, click Approve/Accept.
  4. Tool call still comes back rejected.

Claude Model

Sonnet (default)

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.228

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

IntelliJ IDEA terminal

Additional Information

_No response_

View original on GitHub ↗