Skip to content

Mouse whell changes the input area to subagents views? #51511

Open

Description

@digital-spinner

Description

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.

Image

Screenshot and/or share link

No response

Operating System

Windows 11

Terminal

Windows Terminal

Activity

  1. github-actions commented on Sep 26, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of an existing issue. Please check:

    • #35295: Reports that with mouse: false, the mouse wheel is routed to the prompt editor instead of scrolling the chat viewport.
  2. digital-spinner commented on Sep 27, 2026

    @digital-spinner
    Author

    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.

  3. opencodejr commented on Oct 28, 2026

    @opencodejr
    Contributor

    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.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.

    Related issues:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions