[GH-ISSUE #15996] app/ui: chat shows loading flash when switching between conversations #87873

Open
opened 2026-05-10 06:29:31 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @matteocelani on GitHub (May 6, 2026).
Original GitHub issue: https://github.com/ollama/ollama/issues/15996

What is the issue?

When switching from one chat to another, there's a brief "Loading chat..." flash before the messages appear. This happens every time, even if the chat data was already fetched.

Why it happens
The route loader for the chat page fires off a data prefetch but doesn't wait for it to complete. The component mounts immediately, finds no data in the cache yet, and renders the loading state for a split second until the data arrives.

Expected behavior
The router should wait for the chat data to be ready before mounting the component, so the user sees the messages instantly without any loading flash.

Relevant log output


OS

macOS

GPU

Apple

CPU

Apple

Ollama version

No response

Originally created by @matteocelani on GitHub (May 6, 2026). Original GitHub issue: https://github.com/ollama/ollama/issues/15996 ### What is the issue? When switching from one chat to another, there's a brief "Loading chat..." flash before the messages appear. This happens every time, even if the chat data was already fetched. **Why it happens** The route loader for the chat page fires off a data prefetch but doesn't wait for it to complete. The component mounts immediately, finds no data in the cache yet, and renders the loading state for a split second until the data arrives. **Expected behavior** The router should wait for the chat data to be ready before mounting the component, so the user sees the messages instantly without any loading flash. ### Relevant log output ```shell ``` ### OS macOS ### GPU Apple ### CPU Apple ### Ollama version _No response_
GiteaMirror added the bug label 2026-05-10 06:29:31 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#87873