[BUG] Jetbrains Plugin (Rider and Pycharm) Empty File causes Cancel
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?
When adding an empty file (i.e., .gitkeep) the plugin triggers approval in Jetbrains with no content. Selecting OK causes the response to trigger a cancelled by user event in claude.
Write(assets/fonts/.gitkeep)
⎿ User rejected write to assets/fonts/.gitkeep
1 (No content)
This can cause subsequent events to fail.
What Should Happen?
Claude should be able to create the .gitkeep file by either intercepting the response from JetBrains software, or apply via the cli via touch assets/fonts/.gitkeep (using the sample above), bypassing the JetBrains empty file content.
Error Messages/Logs
Write(assets/fonts/.gitkeep)
⎿ User rejected write to assets/fonts/.gitkeep
1 (No content)
Steps to Reproduce
Ask claude to create a .gitkeep file from JetBrains, when the JetBrains pane shows the changes, click OK
Claude Model
Sonnet (default)
Is this a regression?
No, this never worked
Last Working Version
_No response_
Claude Code Version
2.1.138 (Claude Code)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗