mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-10 04:20:44 +02:00
A chat created in place (new chat -> first message) keeps chatIdProp undefined because the URL is swapped via history.replaceState without a remount, so none of the chatIdProp-gated updateLastReadAt paths fire and the chat is never persisted with a last_read_at. Starting another new chat via initNewChat reset $chatId without marking the outgoing chat read, so on refresh updated_at > last_read_at (NULL) and the chat shows as unread in the sidebar. Mark the outgoing chat read in initNewChat, mirroring navigateHandler. Fixes #25108 Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>