$EDITOR keystrokes/redraw lag #3026

Closed
opened 2026-02-16 17:38:17 -05:00 by yindo · 4 comments
Owner

Originally created by @svens on GitHub (Nov 21, 2025).

Originally assigned to: @kommander on GitHub.

Description

When invoking $EDITOR with "ctrl-x e", editor has significant lag between keystroke and character draw. Often keystrokes are completely ignored.

Tried under MacOS and Linux with vim, vim without plugins, nano -- all have same issue.

First saw issue with 1.0.80, did not notice with earlier installed version (1.0.75), did not try other versions between 1.0.76..1.0.80

OpenCode version

1.0.85

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

iTerm2 / TERM=xterm-256color

Originally created by @svens on GitHub (Nov 21, 2025). Originally assigned to: @kommander on GitHub. ### Description When invoking $EDITOR with "ctrl-x e", editor has significant lag between keystroke and character draw. Often keystrokes are completely ignored. Tried under MacOS and Linux with vim, vim without plugins, nano -- all have same issue. First saw issue with 1.0.80, did not notice with earlier installed version (1.0.75), did not try other versions between 1.0.76..1.0.80 ### OpenCode version 1.0.85 ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System _No response_ ### Terminal iTerm2 / TERM=xterm-256color
yindo added the opentuibug labels 2026-02-16 17:38:17 -05:00
yindo closed this issue 2026-02-16 17:38:17 -05:00
Author
Owner

@gkapfham commented on GitHub (Nov 21, 2025):

Hi, I can confirm that I see this bug on NixOS in Kitty terminal windows with Neovim as the text editor. I can also confirm that this happens with the most recently release mentioned in the issue but does not occur with prior versions. I happened to switch to OpenCode 1.0.64 and did not notice any lag in the Neovim text editor, although it is very noticeable in OpenCode 1.0.85. Thanks for all of your work on OpenCode, it is really awesome!

@gkapfham commented on GitHub (Nov 21, 2025): Hi, I can confirm that I see this bug on NixOS in Kitty terminal windows with Neovim as the text editor. I can also confirm that this happens with the most recently release mentioned in the issue but does not occur with prior versions. I happened to switch to OpenCode 1.0.64 and did not notice any lag in the Neovim text editor, although it is very noticeable in OpenCode 1.0.85. Thanks for all of your work on OpenCode, it is really awesome!
Author
Owner

@fnumatic commented on GitHub (Nov 21, 2025):

might be a duplicate of existing issue #4209

@fnumatic commented on GitHub (Nov 21, 2025): might be a duplicate of existing issue #4209
Author
Owner

@bowmanjd commented on GitHub (Nov 21, 2025):

If fixing it in opentui makes sense, then great, but I did create https://github.com/sst/opencode/pull/4595 in case it just makes the most sense to escape raw input mode during the editor session.

@bowmanjd commented on GitHub (Nov 21, 2025): If fixing it in opentui makes sense, then great, but I did create https://github.com/sst/opencode/pull/4595 in case it just makes the most sense to escape raw input mode during the editor session.
Author
Owner

@rekram1-node commented on GitHub (Nov 21, 2025):

I think I will close in favor of #4209 I think they are heavily related

@rekram1-node commented on GitHub (Nov 21, 2025): I think I will close in favor of #4209 I think they are heavily related
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3026