Skip to content

Feature/messages scroll persistence - #178

Open
stippi wants to merge 2 commits into
mainfrom
feature/messages-scroll-persistence
Open

Feature/messages scroll persistence#178
stippi wants to merge 2 commits into
mainfrom
feature/messages-scroll-persistence

Conversation

@stippi

@stippi stippi commented Aug 1, 2026

Copy link
Copy Markdown
Owner

No description provided.

stippi added 2 commits August 1, 2026 13:26
Add SavedScroll state and messages_reset_for_session to MessagesView so
that switching sessions saves/restores the logical scroll anchor and
follow-tail flag, and a same-session resync freezes the visible offset
instead of jumping to the bottom.
Route notify_messages_reset and remove_empty_containers through
MessagesView::messages_reset_for_session with the current session id, so
that:
 - switching sessions restores each session's remembered scroll position
   and follow-tail state,
 - a same-session resync (stream lag, file-watcher refresh, structural
   edit) freezes the visible offset instead of snapping to the bottom.

Session deletion forgets the remembered scroll for that session.
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