fix(app): preserve selection after a no-op project drag
Author: sdivyanshu90Created Oct 2, 2026Updated Oct 2, 2026
Description
Finishing a no-op project drag in a background server's list switches the active selection to that server even though the project did not move.
The drag-end handler correctly skips onMoveProject when the initial and final indices match, but still calls onSelectProject. This conflicts with the row behavior, which delays cross-server selection until a click so rearranging another server's projects does not change focus.
Steps to reproduce
- Configure two servers with projects and focus a project on the first server.
- Drag a project on the second server far enough to activate dragging.
- Release it at its original index.
The active server changes to the second server. A drag that makes no change should preserve the current selection.
Operating System
Any
Source: anomalyco/opencode