[BUG] JetBrains plugin ignores --dangerously-skip-permissions and acceptEdits mode, shows diff approval dialogs
Description
When running Claude Code in a JetBrains IDE integrated terminal (RubyMine, IntelliJ, etc.) with --dangerously-skip-permissions enabled, the JetBrains plugin still opens diff approval dialogs for every file edit, requiring manual Accept/Reject.
This was previously reported as #12371, which was incorrectly closed as a duplicate of #11206. The comment closing it was wrong — this is a JetBrains plugin-specific bug, not a general auto-accept issue. #11206 is about the CLI's accept-all-edits mode not working; this bug is about the JetBrains plugin's openDiff MCP tool ignoring the CLI's permission mode entirely.
#12371 should not have been closed. It is still a bug that needs to be fixed.
Root Cause Analysis
The JetBrains plugin (claude-code-jetbrains-plugin) registers an openDiff MCP tool via DiffTools.kt that intercepts Edit tool calls and opens a diff viewer in the IDE with Accept/Reject buttons. This MCP tool operates independently of the CLI's permission mode — it does not check whether --dangerously-skip-permissions or acceptEdits is active before showing the dialog.
The plugin's PluginSettings$State class has no setting to control this behavior. The only configurable options are: claudeCommand, claudeConfigDir, enableAutoUpdates, enableOptEnterNewLine, enableWindowsDriveMapping, enableWslLocalhostMapping, skipClaudeNotFoundNotification.
Steps to Reproduce
- Configure the JetBrains plugin with
claude --dangerously-skip-permissionsas the Claude command (Settings → Tools → Claude Code) - Open a terminal in the JetBrains IDE
- Run Claude Code — confirm it shows "Bypass Permissions" mode
- Ask Claude to edit a file
- Observe: The IDE opens a diff tab with Accept/Reject buttons and the terminal shows a permission prompt, despite bypass mode being active
Expected Behavior
With --dangerously-skip-permissions active, the plugin should auto-accept edits without showing diff dialogs, matching the CLI's behavior.
Environment
- Claude Code: latest
- JetBrains plugin: 0.1.14-beta
- IDE: RubyMine 2025.3
- OS: macOS (darwin)
Related Issues
- #12371 — Original report (incorrectly closed as duplicate)
- #11206 — Unrelated general auto-accept bug (closed as Not Planned)
- #11756 — Feature request for auto-approve edits without IDE dialogs (closed as Not Planned)
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗