[Bug]: Live sidebar updates move row action targets under the pointer #15572
Before submitting#
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area#
apps/desktop
Steps to reproduce#
Reported by Max during normal use; the timing-dependent interaction has not been independently reproduced by the filing agent.
- Open T3 Code with several threads visible in the left sidebar.
- Move the pointer toward an action on a particular thread row, such as Snooze or Settle.
- While preparing to click, let a new thread appear or an existing thread leave the visible list.
- Observe the remaining rows shift. An action for another thread can now occupy the position the pointer was targeting.
The affected action examples above are illustrative; no specific wrong-thread mutation was independently verified.
Expected behavior#
Live updates should preserve the intended action target during interaction. A row changing position should not cause an action intended for one thread to apply to another.
Possible approaches include deferring row movement during interaction or canceling a click when its target changes. These are suggestions, not a prescribed implementation.
Actual behavior#
Max still sees threads move when new threads arrive or existing threads leave the sidebar. This creates a risk of clicking an action on a different thread than intended.
Impact#
Interaction reliability issue: live list movement can change the target of a thread action.
Version or commit#
0.0.46-nightly.20261004.2644 Release commit: 737993303d36e10674c54b95e5bd3826682c99c7
Environment#
T3 Code desktop on macOS.
Related work#
- #10713, merged and included in this nightly, fixes unnecessary animations and focus-scroll shifts on click.
- #7103, merged and included in this nightly, fixes an extra animation after manually reordering pinned threads.
The reported movement still occurs with those fixes present. This report concerns live insertion/removal changing action targets.
Screenshots, recordings, or supporting files#
No public capture of the timing-dependent interaction is attached; the supplied screenshot shows the sidebar layout but does not demonstrate the movement.
Workaround#
No verified workaround.
Opened on behalf of Max by GPT-6.1 Sol using Codex in T3 Code.
juliusmarminge added labelsbug
juliusmarminge added labelsvia-triage
Reproduced in the Linux Chromium web client on main b5a226e49c. With three synthetic threads, I kept the pointer over Beta’s Snooze action at (164, 202), then settled Gamma above it through a second paired client. Beta moved up and Alpha’s Snooze occupied the original pointer position. No wrong-thread mutation was attempted. The earlier attempt with copied stopped threads showed the same movement. macOS Electron was not checked.
Recording: stationary Snooze target changes from Beta to Alpha. The pointer is over Beta from the start; Gamma is settled at roughly 1 second. No duplicate found among 950 open issues (19 pages).
I’m experiencing the same issue when using the sidebar to show only threads that need my attention, with Working and Snoozed collapsed.
When a thread finishes working or wakes from snooze, it can reappear at the top of the active list and push the existing rows down. If I’m about to click a thread or one of its actions, the target shifts and I can accidentally click something else.
I’d like to keep this attention-focused workflow while making the list predictable during interaction. A few possible solutions:
- Defer automatic list changes while the pointer is over the sidebar. Apply pending insertions and reordering once the pointer leaves. Explicit user actions, such as manually settling a thread, could still take effect immediately.
- Append returning threads to the bottom of the active list (more like a queue instead of a stack). This would preserve the positions of the threads already visible. A setting could let users choose whether returning threads appear at the top or bottom.
- Block clicks when the target changes beneath a stationary pointer, as proposed in #23444. This would protect against accidental actions, even if the list continues to move.
My main concern is interaction reliability and accessibility: background state changes should not unexpectedly replace the target I’m about to click.
juliusmarminge closed this
Sign in to join this conversation.
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#
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.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.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.