claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[BUG] Diff tool selection is not remembered

Open AlexSkrypnyk opened this issue 7 months ago • 5 comments

Environment

  • Platform (select one):
    • [x] Anthropic API
    • [ ] AWS Bedrock
    • [ ] Google Vertex AI
    • [ ] Other:
  • Claude CLI version: 1.0.3
  • Operating System: macOS 15.4.1
  • Terminal: PHPStorm's terminal, iTerm2

Bug Description

Diff tool selection on a project level is not remembered between sessions. I have to use /config and select the diff tool every time.

Steps to Reproduce

  1. claude
  2. /config -> change diff tool from auto to terminal
  3. exit
  4. claude
  5. /config
  6. Observe that diff tool is set to auto

Expected Behavior

The selection of the diff tool is preserved.

Actual Behavior

The diff tool is reset to auto

Additional Context

This is extremely annoying and disruptive, because Claude keeps opening files in IDE interrupting my flow.

Maybe there is already a config/setting somewhere, but I could not find any docs about this.

AlexSkrypnyk avatar May 27 '25 23:05 AlexSkrypnyk

Taking a look at this now!

hackyon-anthropic avatar May 28 '25 01:05 hackyon-anthropic

I think I found the issue, should have a fix soon!

hackyon-anthropic avatar May 28 '25 01:05 hackyon-anthropic

hey @AlexSkrypnyk - the fix should be out, please let us know if you encounter this issue again!

hackyon-anthropic avatar Jun 13 '25 14:06 hackyon-anthropic

@hackyon-anthropic Ever since this was pushed I can't seem to get diff-view to work in the IDE at all now. Can you (or anyone) confirm that the IDE diff view on MacOS is working for them as expected?

jdehorty avatar Jun 24 '25 22:06 jdehorty

@jdehorty thanks for the report.

What is the error you're seeing, and what is your dev environment (are you using VSCode or JetBrains)?

Are you seeing the Diff tool option in /config?

hackyon-anthropic avatar Jun 30 '25 14:06 hackyon-anthropic

@hackyon-anthropic I don't see the option "Diff tool" in my Claude code :(

dinhanhthi avatar Jul 29 '25 08:07 dinhanhthi

@hackyon-anthropic I don't see the option "Diff tool" in my Claude code :(

Same, on Ubuntu.

chen-tamarin avatar Sep 12 '25 17:09 chen-tamarin

You need to connect to the IDE first using /ide before the tool shows up. Alternatively, run claude in the built-in terminal in your IDE!

hackyon-anthropic avatar Oct 13 '25 19:10 hackyon-anthropic

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

github-actions[bot] avatar Oct 21 '25 14:10 github-actions[bot]