mirror of
https://github.com/nesquena/hermes-webui.git
synced 2026-06-07 17:30:21 +00:00
9ddf36f510
newSession() did not reset _messagesTruncated or _oldestIdx, unlike loadSession() which resets both at line 590. When a user switched from a long session (messages > _INITIAL_MSG_LIMIT) to a new session, the stale _messagesTruncated=true caused renderMessages() to show the 'Scroll up or click to load older messages' indicator on a fresh conversation with only 1 message. Add the same reset that loadSession() already performs so newSession() starts with clean pagination state.