CodeWhale icon indicating copy to clipboard operation
CodeWhale copied to clipboard

Make the transcript scrollbar draggable with mouse capture enabled

Open Oliver-ZPLiu opened this issue 6 months ago • 2 comments

Summary

I really like the updated color scheme in 0.8.16. It feels easier to read and less overly dark than before. While trying it out, I noticed one small interaction point that could make long transcript navigation smoother.

The main transcript view already renders a right-side scrollbar when the transcript is longer than the visible viewport, but the scrollbar is currently visual-only. With mouse capture enabled, clicking or dragging it does not move the transcript viewport.

Screenshot

Image

Proposed behavior

  • Left-clicking the main transcript scrollbar enters scrollbar drag mode instead of starting transcript text selection.
  • Dragging the mouse on the scrollbar maps the mouse row to the transcript scroll position.
  • Releasing the left mouse button exits scrollbar drag mode.
  • Existing mouse wheel scrolling, transcript text selection, right-click menu, and jump-to-latest behavior remain unchanged.

Scope

  • Only support the main transcript scrollbar.
  • Do not change sidebar, pager, model picker, or other scrollable surfaces.
  • Do not change theme, layout, or scrollbar rendering.

Why

Users may reasonably expect the visible scrollbar to be draggable when mouse capture is enabled.

This would make it easier to navigate long transcripts, especially when the model has been running a complex task for a while and produced a very long reasoning trace.

Oliver-ZPLiu avatar May 07 '26 14:05 Oliver-ZPLiu

Quick status: PR #1076 implements this and its CI checks are green. I am not merging it into the v0.8.17 release tag because that release is already in final verification/publish flow, but this looks like one of the better small UX candidates immediately after v0.8.17.

Before merge I want one focused local check on mouse capture / scroll math so we do not regress keyboard scrolling or transcript selection. If that holds, this should be closable via #1076.

Hmbown avatar May 07 '26 19:05 Hmbown

Included in draft release PR #1094 via the harvested #1076 implementation, plus stale-drag cleanup on resize/new left-click. Focused scrollbar tests passed: 2 passed, 0 failed.

Hmbown avatar May 07 '26 20:05 Hmbown