MiMo-Code icon indicating copy to clipboard operation
MiMo-Code copied to clipboard

MiMo closes on double-click with mouse in Windows Terminal

Open 737777 opened this issue 5 months ago • 0 comments

Description

When running MiMo Code TUI (mimo) in Windows Terminal, double-clicking anywhere on the screen with the mouse causes the application to exit/close immediately.

Steps to Reproduce

  1. Open Windows Terminal
  2. Run mimo
  3. Double-click anywhere on the screen with the mouse

Expected Behavior

Double-click should either:

  • Select text (default Windows Terminal behavior) without affecting the app, or MiMo Code exits immediately on double-click.

Environment

  • OS: Windows 11
  • Terminal: Windows Terminal
  • Install method: mimocode-windows-x64.zip

Possible Cause

Windows Terminal sends mouse escape sequences (SGR mouse mode) to the application on double-click. The Ink/SolidJS TUI framework may interpret this as an unhandled input event that triggers an exit condition, similar to receiving Ctrl+C or Esc. This does not happen with single clicks — only double-click triggers the exit.

Additional Context

The issue makes the TUI unusable with a mouse, which is a significant UX problem since accidental double-clicks are common during normal usage.

Plugins

No response

MiMoCode version

v0.1.3

Steps to reproduce

  1. Open Windows Terminal
  2. Run mimo
  3. Double-click anywhere on the screen with the mouse

Screenshot and/or share link

No response

Operating System

Windows 11

Terminal

Windows Terminal, WezTerm, MiMo.exe

737777 avatar Jun 29 '26 11:06 737777