You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Mouse whell changes the input area to subagents views? #51511
Even if the mouse is "disabled" you can still use the wheel to change the input area content or switch it to the sub-agents view but it is not possible to scroll the text... Not to mention that the sub agents view is lets say useless because it is not possible to observe global working status.
Plugins
None, V2 messed up current plugis so I uninstalled everything.
OpenCode version
2.0.18
Steps to reproduce
Use mouse wheel scroll after disabling mouse in options.
Not a duplicate per se but more as an addition. It would be better to go back to previous default behavior of V1 in terms of switching to subagents and probably the mouse interaction.
What you're seeing comes from how the terminal handles the wheel once OpenCode stops capturing the mouse. With "mouse": false, OpenCode no longer gets mouse events. Windows Terminal (like many terminals) then sends each wheel movement in full-screen apps as Up/Down arrow key presses. In OpenCode, Up/Down by default go through prompt history and open or close the subagent picker (session.child.first is Down, session.parent is Up). So the wheel ends up changing the input or switching views, and the transcript can't scroll because wheel scrolling needs mouse capture.
The app is working as designed here, so I'm treating this as a feature request: with mouse capture off, the wheel shouldn't trigger arrow-key actions, and ideally you could scroll without full mouse capture. Your point about the subagents view not showing overall progress is noted too. Maintainers will consider both.
For now, a possible workaround is to move these actions off the arrow keys under keybinds in your TUI config, e.g. set session.child.first, session.parent, prompt.history.previous and prompt.history.next to other keys or "none". Some terminals also let you turn off the setting that sends the wheel as arrow keys (often called "alternate scroll mode"), but I'm not sure Windows Terminal has that option.
Activity
github-actions commentedon Sep 26, 2026
This issue might be a duplicate of an existing issue. Please check:
mouse: false, the mouse wheel is routed to the prompt editor instead of scrolling the chat viewport.digital-spinner commentedon Sep 27, 2026
Not a duplicate per se but more as an addition. It would be better to go back to previous default behavior of V1 in terms of switching to subagents and probably the mouse interaction.
opencodejr commentedon Oct 28, 2026
Thanks for the report, @digital-spinner!
What you're seeing comes from how the terminal handles the wheel once OpenCode stops capturing the mouse. With
"mouse": false, OpenCode no longer gets mouse events. Windows Terminal (like many terminals) then sends each wheel movement in full-screen apps as Up/Down arrow key presses. In OpenCode, Up/Down by default go through prompt history and open or close the subagent picker (session.child.firstis Down,session.parentis Up). So the wheel ends up changing the input or switching views, and the transcript can't scroll because wheel scrolling needs mouse capture.The app is working as designed here, so I'm treating this as a feature request: with mouse capture off, the wheel shouldn't trigger arrow-key actions, and ideally you could scroll without full mouse capture. Your point about the subagents view not showing overall progress is noted too. Maintainers will consider both.
For now, a possible workaround is to move these actions off the arrow keys under
keybindsin your TUI config, e.g. setsession.child.first,session.parent,prompt.history.previousandprompt.history.nextto other keys or"none". Some terminals also let you turn off the setting that sends the wheel as arrow keys (often called "alternate scroll mode"), but I'm not sure Windows Terminal has that option.Related issues:
mousesettings (e.g. scroll on, selection off), which would cover your setup