Diff sidebar resize rail steals chat scroll/drag interactions at the chat boundary
Summary
When the diff panel is open in the inline desktop layout, dragging/scrolling near the right edge of the chat history can hit the diff sidebar resize rail instead of the chat viewport. The result is that chat history is not reliably draggable/scrollable at that boundary because the pointer is captured by the resize handle (tooltip: Drag to resize sidebar).
This appears distinct from the existing diff-panel close/toggle bugs.
Repro
- Open a thread on a desktop-width layout so diff renders as the inline right sidebar, not the sheet.
- Open the diff panel.
- Move the pointer to the boundary between the chat history and the diff panel.
- Try to drag/scroll the chat history from that area.
Actual
- The resize rail for the diff sidebar captures the pointer.
- The
Drag to resize sidebaraffordance appears. - Chat scrolling/dragging in that edge area does not work reliably because the interaction starts resizing instead.
Expected
- Chat history should remain scrollable/draggable right up to its visible edge.
- The diff resize handle should not steal pointer interactions intended for the chat scroll area.
- If a resize rail is kept, its hit target should stay fully inside the diff panel or otherwise avoid overlapping the chat viewport.
Notes
I checked the current web implementation locally:
- the inline diff panel is mounted as a right
Sidebarinapps/web/src/routes/_chat.$threadId.tsx - the resize control is
SidebarRailfromapps/web/src/components/ui/sidebar.tsx SidebarRailrenders as an absolutely positioned full-heightw-4button with titleDrag to resize sidebar
That matches the behavior in the screenshot: the resize rail is large enough to sit on top of the chat boundary and intercept pointer input.
Related
- #931
- #935
- #937
- #953
- #806
Those are related diff-panel issues, but this report is specifically about the resize-handle hit area blocking chat interaction rather than open/close state.
the related bugs seems to be mostly closed is this still happening for you @copypasteitworks ?? also can you paste screenshots etc. in that case !!
@shivamhwp still an issue, can't grab the scrollbar in the chat area when diff sidebarrail is expanded, cause the resize grab area covers too far left.
I "fixed" a similar style issue in my PR for making the plan sidebar resizable
https://github.com/user-attachments/assets/60468dba-d892-4d6e-a063-1a6784ef078e
The diff sidebar and resize rail were replaced by the unified right panel with isolated resize handling, removing the chat-boundary overlay described here.
This was closed as part of a large repo-wide maintenance sweep. If you think it's still relevant, please reopen.