[BUG] Claude should not hijack the mac-os EDITOR env variable.

Open 💬 3 comments Opened Jan 20, 2026 by FergusMcMenemie-cnic

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?

Newbie. I see I am being asked to set the EDITOR env variable to allow integration with my IDE/editor (BBEDIT). However the EDITOR env variable is depended on by hundreds of utils which I would never want to use a GUI editor with, especially when I am ssh-ing into my mac for remote locations.

What Should Happen?

Please use a different variable "CLAUDE_EDITOR" and if it is not set then fall back and look for "EDITOR"

Error Messages/Logs

NONE

Steps to Reproduce

None!

Claude Model

None

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

v2.1.12

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

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