[Bug] Text input lag and garbled output when switching between Claude Code and Neovim

Status Fixed / completed
Maintainer reply None cached
Activity 10 comments · opened Nov 4, 2025 · closed Dec 2, 2025

Bug Description
After updating to the latest v2.0.32, in general text input in nvim is slow. Likely this is because inputs are processed in claude-code when I'm switching from it. This occurs as well when I press shortcut keys.

Related issue #10735 #10375

Then, after I return to claude-code by exiting nvim, sometimes there are some garbled text that's likely coming from nvim.

How to reproduce

I'm using nvim + LazyVim

Environment Info

  • Platform: darwin
  • Terminal: ghostty
  • Version: 2.0.32
  • Feedback ID: 8f44f24a-0cc6-4351-bcdb-5b02a22a54bd

View original on GitHub ↗

10 Comments

github-actions[bot] · 10 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/10375
  2. https://github.com/anthropics/claude-code/issues/10735
  3. https://github.com/anthropics/claude-code/issues/9494

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

jessearmand · 10 months ago

Here's some of the sample outputs when I exit :q nvim instead of save and quit :wq

 ?2027;1$y]11;rgb:2828/2c2c/3434i[I<34;15;19M<34;16;19M?62;22;52c[I
 ?2027;1$y[48;53;172;2014;3440tP1+r4D73=5C455D35323B25703125733B25703225735C303037ppm th???>?62;22;52c[I

It does seem the issue isn't specific to v2.0.32, I can still observe the lag compared to if I just open nvim directly, without using ctrl+g. I have disabled blink.cmp on markdown files if it's related, but the lag is still there.

amzyang · 10 months ago

the lag was gone when i switched to non-native installation

jessearmand · 10 months ago
the lag was gone when i switched to non-native installation

That's an interesting finding. I found the local installation tend to be more stable than the native

dimfeld · 9 months ago
the lag was gone when i switched to non-native installation

Same experience here. When starting neovim via ctrl-g from the native installation, it's not just laggy but completely misses a lot of keystrokes. When installing via pnpm I don't have this problem.

Using wezterm on MacOS 26.0.1

dimfeld · 9 months ago

Bun 1.3 fixed some issues that look similar to this (https://github.com/oven-sh/bun/issues/10694), where Bun would not correctly release a readline instance and so it would continue to grab characters from stdin even when other things (i.e. the nvim subprocess) are also reading input.

Not sure which Bun version Claude Code native is using, or if this is actually the problem, but potentially this could be fixed by updating the native build to use 1.3.

jessearmand · 9 months ago

@dimfeld Do you still observe the same issue in 2.0.53? Looks like it's fixed

synapticvoid · 9 months ago

I had the same issue. Tested again on v2.0.55, and it seems to be fixed.

dimfeld · 9 months ago

Just reinstalled the native build to try it out, and it's fixed on my end too :)

github-actions[bot] · 8 months ago

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.