[BUG] Neovim launched via Claude external editor (Ctrl+G) does not receive keyboard input in WezTerm

Open 💬 0 comments Opened Jul 2, 2026 by zczsyqxl

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?

Environment

  • Windows 11
  • WezTerm 20251201
  • PowerShell 7
  • Neovim 0.11.4
  • Claude Code 2.1.198

Steps

  1. Set EDITOR=nvim.
  2. Launch Claude Code inside WezTerm.
  3. Press Ctrl+G.
  4. Neovim opens.
  5. No keyboard input works.

Observed

  • The screen renders correctly, but no keys (including Esc, i, Ctrl+C) are received by Neovim.

What Should Happen?

Expected

  • Neovim should receive keyboard input.

Error Messages/Logs

Steps to Reproduce

Steps

  1. Set EDITOR=nvim.
  2. Launch Claude Code inside WezTerm.
  3. Press Ctrl+G.
  4. Neovim opens.
  5. No keyboard input works.

Claude Model

None

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.198

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Other

Additional Information

Comparison

  • Windows Terminal: works.
  • VS Code as editor: works.
  • Codex CLI + Neovim in WezTerm: works.
  • Minimal WezTerm config: still reproduces.

View original on GitHub ↗