-
Notifications
You must be signed in to change notification settings - Fork 775
Description
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
- [BUG] Diff panel toggle doesn't hide the diff panel #931
- [bug] I can't close the View diff sidepanel? #935
- fix: diff panel unclosable after retainSearchParams middleware #937
- fix(web): fully clear diff route state when closing panel #953
- Diff Panel Toggle Button in Header overlaps on top of PR Button #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.