[BUG] Ctrl+G "Open in editor" fails with "Open exited with code 1"

Resolved 💬 4 comments Opened Apr 16, 2026 by moonclock Closed Jun 6, 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?

Title:
Ctrl+G "Open in editor" fails with "Open exited with code 1"

Body:

Environment

  • Claude Code: 2.1.110
  • macOS: 26.4.1 (Darwin 25.4.0, Build 25E253)
  • Shell: zsh
  • Editor: Sublime Text (installed at /Applications/Sublime Text.app)

EDITOR environment variable

Set in ~/.zshrc:

export EDITOR="open -a 'Sublime Text' -W"






### What Should Happen?



Expected Behavior

Sublime Text opens with the current buffer content for editing.

Additional Notes

This worked in a previous version of Claude Code. No changes were made to the system or EDITOR configuration between the working and broken states.

### Error Messages/Logs

```shell

Steps to Reproduce

Steps to Reproduce

  1. Configure EDITOR as above
  2. Open Claude Code in any project
  3. Press Ctrl+G to open the current input in an external editor

Actual Behavior

Status line immediately shows:

Open exited with code 1

The editor never opens.

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

2.1.109

Claude Code Version

2.1.110

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

iTerm2

Additional Information

_No response_

View original on GitHub ↗

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