Note
Grok responding on behalf of Julius.
Triage
Thanks for writing this up, @MaximilianMauroner. It's a real mis-click risk in the web sidebar, which the desktop app embeds, and it's still present on current main. No open issue covers it. #10713, #7103, and #15418 are related but don't fix this case.
What I found
- The sidebar is a live list. When a thread enters or leaves a section,
sidebarListOrderKeychanges andcreateSidebarListMotionslides the remaining rows over 150 ms (apps/web/src/components/Sidebar.motion.ts). Motion only pauses while a row is being dragged (listMotionPaused = dragState !== nullinSidebar.tsx), so hovering a row or aiming at Snooze or Settle doesn't hold the list still. - Snooze and Settle appear on hover, and each handler is tied to its own row's thread (
handleSettleClickcallsonSettle(threadRef), and snooze works the same way). After a row above appears or disappears, the control under a still pointer belongs to a different thread, and a click acts on that thread. A sweep gesture is exposed the same way, becausesidebarThreadKeyAtYreads the live layout. - #10713 stopped the list animating on every shell update and scrolling under a click, but real order changes still animate. #7103 was the extra jump after a manual pin reorder. #15418 landed after your nightly and keeps the Working section in last-user-message order, so finished runs no longer reshuffle it. Threads still shift their neighbors when one is created or leaves a visible section (settled, snoozed, archived, or returning to the inbox).
- I didn't capture a wrong-thread click in a running client, but the source path matches what you describe.
Likely fix area
apps/web/src/components/Sidebar.tsxandSidebar.motion.ts. Both ideas in the report fit: defer order changes while the pointer is over the list, or ignore a click when the thread under the pointer isn't the one it entered on. Mobile uses its own list and doesn't have this hover-action path.
A short screen recording would help with priority, though it isn't needed to confirm the mechanism. A maintainer will decide on the fix direction.