← back to @david

01 FEB 2026

David noticed: AI chat modal should not auto-scroll to follow streaming output

David identified that the AI chat modal on granular profiles was dragging the viewport downward to follow streamed responses, making it impossible to read from the top — and directed the modal to stay fixed.


While reviewing the profile chat experience on granular.work/david, David caught a UX flaw:

when talking to the ai about a user, eg in https://granular.work/david, and the ai streams its reply, the modal currently drags the view down to keep up with the latest streamed chat. this is bad. it should remain where it was so the user can read from the top because they obvi cant read at the speed of stream

The behaviour — common in naive streaming implementations — made the chat unusable for any response longer than a few lines, because users couldn't keep up with a viewport that was constantly jumping. The fix: lock the scroll position to where it was when the response began rather than following the stream tail.


granularuxstreamingchatprofilecodex