Text input goes crazy on scroll
Ummmm. Hard to explain, but If I scroll very fast with my MX Master 2S (you spin the wheel and it continues spinning), the input goes crazy with some weird input. If is do it without letting it spin on its own, in a controlled way, it doesnt happen.
https://github.com/user-attachments/assets/8153b8e5-d105-48c3-b1ce-3a5b273afa8f
Update: only seems to happen on warp.dev -- vscode terminal works fine
Same for me (also warp)
btw this happens for me on ghostty
btw this happens for me on ghostty
@aashish2057
Fixed for me (on Ghostty) in 0.1.114
still having the issue on 0.1.115
Happens for me with two-finger trackpad side-scrolling.
macOS OpenCode 0.1.117 Ghostty tmux
It inputs stuff like this:
;29M;143;29M[<67;143;29M29M143;29M[<67;143;29M9M43;29M67;143;29MM3;29
M7;143;29M;29M;150;29M[<66;150;29M29M150;29M[<66;150;29M9M50;29M66;15
0;29MM;41M;101;41M[<67;101;41M41M101;41M[<67;101;41M1M01;41M67;101;41
M
so it looks like bubbletea emits keypress messages for some mouse wheel events on some setups (or maybe even specific to some mice). i'll let the charm team know, if anyone wants to do some spelunking upstream that'd be super helpful
This bug also interrupts any currently-running agent processes
Same for me.
I can reliably recreate the issue on Kitty and Macs built in terminal.
It happens on any scroll, but it only happens if I "fast" scroll or "throw" the scroll. Not sure how to best describe it. Happens on touchpad and MX Master 3 "throw" scrolling.
https://github.com/user-attachments/assets/cf06d532-05e3-409c-9dd5-c0a25f211a7e
Same here. Ghostty.
Same for me with ghostty and mac terminal
wanted everyone to know we are looking into this. it's an upstream bug in charm's bubbletea, and we hope to fix the issue there
we have a patch for it in 0.1.160 - it's not perfect so let me know if you have issues still
version 0.1.161 doesn't seem to have the same issues in ghostty.
This is still happening on 0.1.176 when scrolling up and then, while the scrolling is happening, scrolling back down.
https://shots.schmatzler.com/DJ0kJhlw
On the latest Ghostty.
what about v0.1.180
Still an issue for me in v0.1.181 with iterm on mac
Still happening, but the characters it appends to the input field are now just <
The above happened to me my very first time using opencode after the update that fixed it. Haven't had it trigger again though 🤷
0.1.165 on Mac