Skip to content

fix(tui): stabilize dialog mouse selection#37674

Open
opencode-agent[bot] wants to merge 1 commit into
v2from
dialog-hover-fix
Open

fix(tui): stabilize dialog mouse selection#37674
opencode-agent[bot] wants to merge 1 commit into
v2from
dialog-hover-fix

Conversation

@opencode-agent

Copy link
Copy Markdown
Contributor

Issue for this PR

Closes #37663

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Stops DialogSelect from recentering when a mouse-driven selection is mirrored back through current. That recenter moved rows beneath a stationary cursor, which generated another hover event and created the selection flicker.

Keyboard and external current changes still use the existing centering behavior.

How did you verify your code works?

  • Added a mouse-driven regression test that reproduces the current/onMove feedback loop.
  • bun test in packages/tui (267 passed, 1 skipped)
  • bun typecheck in packages/tui

Screenshots / recordings

No static visual change. The mouse-driven regression test verifies the highlight remains on the hovered row rather than oscillating as the list recenters.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Requested by: @rekram1-node (Aiden Cline via Slack)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant