Skip to content

[BUG] Accidentally leaving the mouse over autocomplete items highlights them #8615

@JosXa

Description

@JosXa

Problem (one or two sentences)

When the autocompletions for a @ context or / command opens and the mouse cursor happens to be over one of the autocomplete items, it automatically highlights that entry instead of the topmost one - even if the mouse doesn't move.

Context (who is affected and when)

This is quite annoying as you typically click into the "Type a message..." field in order to put the cursor there, meaning the mouse will be in a bad spot and trigger the autocomplete items constantly. When you type out or paste the full name of a file, you expect the Enter key to pick the correct result (the topmost one) - but that gets messed up because the mouse has accidentally preselected a different item in the meantime.

Reproduction steps

qjHEY3WJyQ.mp4

Expected result

Mouse cursor should be ignored when it doesn't move

Actual result

Mouse highlights results immediately

Suggested Fix

Make autocompletion work like in Ctrl+P in VS Code, with a selected item state that can be changed by UpArrow and DownArrow keys, and mere hover highlighting without actually preselecting anything when only hovering over with the mouse:

Code_d8NE2sSWv7.mp4

I think people are much more like to want to use their keyboard for navigating through the selections anyway. Hovering over them with the mouse should not preselect them, causing Enter to potentially select the wrong file when you know you spelled out the full name of a file.

Variations tried (optional)

No response

App Version

v3.28.16

API Provider (optional)

None

Model Used (optional)

No response

Roo Code Task Links (optional)

No response

Relevant logs or errors (optional)

Metadata

Metadata

Assignees

Labels

Issue - In ProgressSomeone is actively working on this. Should link to a PR soon.bugSomething isn't working

Type

No type

Projects

Status

Issue [In Progress]

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions