Skip to content

Mouse selection is very unreliable and drives me nuts (vscode terminal) #15760

@jdanbrown

Description

@jdanbrown

Description

I'm not sure exactly when this started, but it feels like it used to work better a month or two ago. When I click and drag to select text in the opencode cli output, most of the time it fails to register which results in no drag selection. So I have to do it again, and again, and again. Drives me totally bananas!

This bug happens in vscode terminal (where I like to use terminals), and when I test in iterm2 mouse selection works normally (I tried clicking a bunch back and forth between two splits in iterm2 and I couldn't get the bug to happen even once). Here's a screen recording in vscode terminal showing the bug:

Screen.Recording.2026-03-02.at.1.58.13.PM.mov

TUI config:

$ cat ~/.config/opencode/tui.jsonc
{
  "$schema": "https://opencode.ai/tui.json",
  "scroll_acceleration": {
    "enabled": true,
  },
  "diff_style": "stacked",
  "theme": "jdanbrown",
  "keybinds": {
    "leader": "ctrl+o",
    "app_exit": "ctrl+d,<leader>q",
    "session_timeline": "<leader>t",
    "session_child_cycle": "ctrl+alt+j",
    "session_child_cycle_reverse": "ctrl+alt+k",
    "messages_line_up": "ctrl+alt+y",
    "messages_line_down": "ctrl+alt+e",
    "messages_half_page_up": "ctrl+alt+u",
    "messages_half_page_down": "ctrl+alt+d",
    "messages_first": "ctrl+g",
    "messages_last": "ctrl+alt+g",
    "messages_next": "ctrl+alt+e",
    "messages_previous": "ctrl+alt+y",
    "model_list": "<leader>m,ctrl+m",
    "command_list": "ctrl+/,ctrl+_",
    "input_newline": "alt+enter,shift+enter,shift+return",
    "history_previous": "up,ctrl+p",
    "history_next": "down,ctrl+n",
  },
}

Plugins

none

OpenCode version

1.2.15

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

macOS 26.2

Terminal

vscode terminal

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentui

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions