You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Sending a new thread's first message scrolls the sidebar to the Working shelf #37558
I searched existing issues and did not find a duplicate.
I included enough detail to reproduce or investigate the problem.
Area
apps/web
Steps to reproduce
Have enough threads that the sidebar list scrolls.
Scroll the sidebar to the top.
Start a new thread and send its first message.
Expected behavior
The sidebar stays where it was. The new thread shows up in the Working shelf without moving the list.
Actual behavior
The sidebar scrolls down to the Working shelf so the new thread's row is in view. Messages sent in a thread that already exists don't move the sidebar.
Cause: a draft route names no thread until its first send promotes it. The sidebar's route reveal (useActiveRowReveal in apps/web/src/components/sidebar/routeReveal.ts) treats that first thread key as a navigation and calls scrollIntoView on the new row, which mounts in the Working shelf.
Activity