Skip to content

TUI not responding and mapping mouse as keyboard in the console #46216

Closed as not planned

Description

@lamioIsNew

Description

It suddenly started to map my mouse as a keyboard, each movement is converted into a number and printed in the console.

Plugins

None

OpenCode version

1.18.25

Steps to reproduce

This thing happen very often and produces very randomly, I've not found a solution to reproduce it. This happen very often when you uses it for large tasks

Screenshot and/or share link

No response

Operating System

Windows 11

Terminal

Powershell, Windows CMD.

Activity

  1. github-actions commented on Aug 30, 2026

    @github-actions
    Contributor

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

    The root cause described in #34940 is that the TUI fails to restore terminal state (release mouse capture, exit raw mode) on crash or unclean exit, causing mouse movements to be printed as escape sequences. Your issue appears to describe the same underlying behavior.

  2. thdxr commented on Oct 11, 2026

    @thdxr
    Member

    Thanks for the report! OpenCode 2.0 is now out and development is focused on V2, so we're closing issues filed against OpenCode 1. Please upgrade (opencode upgrade --major, details: https://anoma.ly/notes/opencode-2-0), and if this is still relevant on 2.0, reopen this issue or open a new one with your 2.0 version.

    — from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

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