Skip to content

fix(chat): refocus input after submit + force scroll on new messages#34

Merged
blove merged 1 commit into
mainfrom
claude/blissful-bartik
Apr 6, 2026
Merged

fix(chat): refocus input after submit + force scroll on new messages#34
blove merged 1 commit into
mainfrom
claude/blissful-bartik

Conversation

@blove
Copy link
Copy Markdown
Contributor

@blove blove commented Apr 6, 2026

Summary

  • Input refocus: After pressing Enter/submit, the textarea regains focus so the user can immediately type the next message without clicking
  • Force scroll on new messages: When a new message is sent or received (message count changes), instantly scroll to bottom regardless of scroll position. During streaming partial updates, only smooth-scroll if user is near bottom (<150px) to avoid interrupting reading.

Test plan

  • Chat library tests pass
  • Input refocus after submit
  • Scroll to bottom on new message
  • Don't interrupt scroll position during streaming partials

@blove blove force-pushed the claude/blissful-bartik branch from 4247a7e to 392d726 Compare April 6, 2026 21:02
@blove blove merged commit 86dbee9 into main Apr 6, 2026
13 checks passed
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