Skip to content

fix(ui): anchor each chat turn at its question - #343

Merged
vishr merged 1 commit into
mainfrom
fix/chat-scroll-anchor
Oct 18, 2026
Merged

vishr merged 1 commit into
mainfrom
fix/chat-scroll-anchor

Conversation

@vishr

@vishr vishr commented Oct 18, 2026 •

Copy link
Copy Markdown
Member

Summary

  • The chat pane followed its bottom; answers arrive in one piece, so it jumped to the last line of a long answer.
  • Sending a message places it at the top of the pane; evidence and the answer fill in below without the pane chasing them. Growth above the anchor keeps it in place; wheel, touch, drag and scrolling keys release it; Jump to latest appears when newer content is below the fold and keeps keyboard focus in the conversation. Reopening a thread shows its last question at the top.
  • The stick-to-bottom paths are removed.

Verification

  • UI unit tests including regressions for the anchor, reader release, keyboard paths and the jump control; just ui, just ui-check.
  • Browser: smoke and accessibility, 50 passed.
  • Codex adversarial review; both keyboard findings fixed.
  • just check in the pre-push hook.

The chat pane followed its bottom while content grew. Answers arrive in
one piece, so the pane jumped to the last line of a long answer and the
reader scrolled back up to start reading.

Sending a message now places it at the top of the pane, and the
evidence and answer fill in below without the pane chasing them. Growth
above the anchor keeps it in place; wheel, touch, drag and scrolling
keys release it; and a "Jump to latest" control appears when newer
content is below the fold, keeping keyboard focus in the conversation.
Reopening a thread shows its last question at the top.

Claude-Session: https://claude.ai/code/session_018HfyEXHyGD1utmKF4CQtyQ
@vishr
vishr force-pushed the fix/chat-scroll-anchor branch from 4773d36 to 7c3f4bd Compare October 18, 2026 02:35
@vishr
vishr merged commit bd9f875 into main Oct 18, 2026
16 checks passed
@vishr
vishr deleted the fix/chat-scroll-anchor branch October 18, 2026 02:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant