CodeWhale icon indicating copy to clipboard operation
CodeWhale copied to clipboard

When selecting text with the mouse, the selection area crosses the sidebar and also selects content in the right sidebar. No isolation is implemented, which is not expected behavior.

Open anyiba opened this issue 6 months ago • 5 comments

Description

When selecting text with the mouse, the selection area crosses the sidebar and also selects content in the right sidebar. No isolation is implemented, which is not expected behavior.

Steps to reproduce

  1. Launch the DeepSeek CLI.
  2. Enter an interface that contains a sidebar (e.g., the conversation interface).
  3. Drag with the left mouse button to select text starting from the main area on the left.
  4. Continue dragging to the right and observe whether the right sidebar is also selected.

Expected behavior

When selecting text, the main area and the sidebar should be isolated from each other. The selection should be limited to the current area and should not cross over to select content in the other area.

Actual behavior

The selection crosses the sidebar, and content in the right sidebar is also selected. No isolation is applied.

Environment

  • OS: Windows 11
  • DeepSeek CLI version: 0.8.20
  • Model: v4-pro
  • Shell: PowerShell

Logs or screenshots

Image

anyiba avatar May 08 '26 07:05 anyiba

这个问题应该是deepseek-tui 在 Windows 上,设置了mouse_capture 默认关闭。试一下用 deepseek --mouse-capture 在终端打开就能解决了。在这个模式下,主界面右侧出现的滚动条也能用鼠标上下拖动。

Oliver-ZPLiu avatar May 08 '26 07:05 Oliver-ZPLiu

Thanks! This solution is very useful. Shouldn’t it be enabled by default? Users who want to disable it can just turn it off via the config.

anyiba avatar May 08 '26 08:05 anyiba

Thanks, I agree it would be nicer UX-wise.

I kept this PR docs-only because Windows mouse capture is currently default-off intentionally due to prior terminal compatibility issues (#878 / #898), where mouse escape sequences could leak into the input stream.

Enabling it by default on Windows seems better handled as a separate behavior-change discussion/PR with maintainer approval.

Oliver-ZPLiu avatar May 08 '26 08:05 Oliver-ZPLiu

yes! thank you guys. it should be enabled by default, 100%.

Hmbown avatar May 08 '26 16:05 Hmbown

Fixed in v0.8.26.

Please update with one of:

  • npm: npm install -g deepseek-tui@latest
  • brew: brew upgrade deepseek-tui
  • cargo: cargo install --force deepseek-tui-cli

Reopen if the issue persists after upgrading. Thanks for the report!

Hmbown avatar May 10 '26 14:05 Hmbown