Mouse Issue again #612

Closed
opened 2026-02-16 17:27:35 -05:00 by yindo · 11 comments
Owner

Originally created by @astray-heavy-arms on GitHub (Jul 10, 2025).

Originally assigned to: @adamdotdevin on GitHub.

When in build mode and I get a long response if I click the message box and scroll up and down in the "chat" mouse scroll chars are rendered in the chat box.

This is pretty dangerous as it then makes it impossible to ESC and you cannot type /exit. 0.2.23

Originally created by @astray-heavy-arms on GitHub (Jul 10, 2025). Originally assigned to: @adamdotdevin on GitHub. When in build mode and I get a long response if I click the message box and scroll up and down in the "chat" mouse scroll chars are rendered in the chat box. This is pretty dangerous as it then makes it impossible to ESC and you cannot type /exit. 0.2.23
yindo closed this issue 2026-02-16 17:27:35 -05:00
Author
Owner

@mitsuhiko commented on GitHub (Jul 15, 2025):

Can confirm I have this. It does scroll sometimes but it renders escape sequences into the chatbox at times. Looks like this:

Image
@mitsuhiko commented on GitHub (Jul 15, 2025): Can confirm I have this. It does scroll sometimes but it renders escape sequences into the chatbox at times. Looks like this: <img width="764" height="165" alt="Image" src="https://github.com/user-attachments/assets/7874fc11-d016-4859-af0b-781fb273dbe5" />
Author
Owner

@adamdotdevin commented on GitHub (Jul 15, 2025):

yeah, i'll address this today. i had a fix and then introduced a regression when trying to improve performance.

@adamdotdevin commented on GitHub (Jul 15, 2025): yeah, i'll address this today. i had a fix and then introduced a regression when trying to improve performance.
Author
Owner

@adamdotdevin commented on GitHub (Jul 15, 2025):

i think i've resolved the ansi leaking and perf issues during momentum scroll, can someone confirm in https://github.com/sst/opencode/releases/tag/v0.3.10

@adamdotdevin commented on GitHub (Jul 15, 2025): i think i've resolved the ansi leaking and perf issues during momentum scroll, can someone confirm in https://github.com/sst/opencode/releases/tag/v0.3.10
Author
Owner

@nandcello commented on GitHub (Jul 16, 2025):

Hey @adamdotdevin I'm still experiencing this issue in v0.3.13 (even in v0.3.17)

Image

what's worse is that if opencode is working; this issue interrupts and stops the work. Only happens in BUILD MODE.

@nandcello commented on GitHub (Jul 16, 2025): Hey @adamdotdevin I'm still experiencing this issue in v0.3.13 (even in v0.3.17) <img width="880" height="185" alt="Image" src="https://github.com/user-attachments/assets/0fce7862-ac7d-450a-9cbd-c49ca01f9490" /> what's worse is that if opencode is _working_; this issue interrupts and stops the work. Only happens in BUILD MODE.
Author
Owner

@adamdotdevin commented on GitHub (Jul 17, 2025):

Hey @adamdotdevin I'm still experiencing this issue in v0.3.13 (even in v0.3.17)

Image

what's worse is that if opencode is working; this issue interrupts and stops the work. Only happens in BUILD MODE.

what kind of mouse are you using? and OS?

@adamdotdevin commented on GitHub (Jul 17, 2025): > Hey @adamdotdevin I'm still experiencing this issue in v0.3.13 (even in v0.3.17) > > <img width="880" height="185" alt="Image" src="https://github.com/user-attachments/assets/0fce7862-ac7d-450a-9cbd-c49ca01f9490" /> > > what's worse is that if opencode is _working_; this issue interrupts and stops the work. Only happens in BUILD MODE. what kind of mouse are you using? and OS?
Author
Owner

@nandcello commented on GitHub (Jul 17, 2025):

what kind of mouse are you using? and OS?

Logitech MX Master 3S (scroll setting default is ratchet and then goes to free wheel when scrolling fast which is what triggers the issue for me).

MacOS Sequoia 15.5

@nandcello commented on GitHub (Jul 17, 2025): > > what kind of mouse are you using? and OS? Logitech MX Master 3S (scroll setting default is ratchet and then goes to free wheel when scrolling fast which is what triggers the issue for me). MacOS Sequoia 15.5
Author
Owner

@mitsuhiko commented on GitHub (Jul 19, 2025):

For me it happens with the internal and external Apple touchpad on Sequoia.

@mitsuhiko commented on GitHub (Jul 19, 2025): For me it happens with the internal and external Apple touchpad on Sequoia.
Author
Owner

@adamdotdevin commented on GitHub (Jul 19, 2025):

will do some more work here; i know i've lessened it, and i know the performance of momentum based scrolls has improved, but i've also still seen the characters creeping in if i try hard enough on my trackpad. will figure it out.

@adamdotdevin commented on GitHub (Jul 19, 2025): will do some more work here; i know i've lessened it, and i know the performance of momentum based scrolls has improved, but i've also still seen the characters creeping in if i try hard enough on my trackpad. will figure it out.
Author
Owner

@Hyvok commented on GitHub (Sep 11, 2025):

I had this happen today on OpenCode 0.7.1. Mouse scrolling just produced chars in the textbox, writing anything did not work, only way I could exit OpenCode was to close the terminal/kill.

@Hyvok commented on GitHub (Sep 11, 2025): I had this happen today on OpenCode 0.7.1. Mouse scrolling just produced chars in the textbox, writing anything did not work, only way I could exit OpenCode was to close the terminal/kill.
Author
Owner

@nandcello commented on GitHub (Sep 11, 2025):

prolly just wait for the opentui port to come through then hopefully this issue will be solved.

@nandcello commented on GitHub (Sep 11, 2025): prolly just wait for the opentui port to come through then hopefully this issue will be solved.
Author
Owner

@rekram1-node commented on GitHub (Sep 11, 2025):

yep^^

@rekram1-node commented on GitHub (Sep 11, 2025): yep^^
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#612