Chat history state desync after background refresh

Environment

  • Browser: Zen Browser (Pinned Tab)

  • OS: macOS (M2)

Steps to Reproduce

  1. Keep t3.chat as a pinned tab.

  2. Leave the tab in the background until it auto-refreshes upon being selected again.

  3. Issue 1: The left sidebar history is completely empty.

  4. Start a new chat.

  5. Issue 2: The new chat is added to the sidebar but hangs on a "loading" state indefinitely.

  6. Manually refresh the page.

Actual Result
After the manual refresh, the current chat is gone, the chat history returns, but the state is corrupted: the most recent previous chat is open, while the sidebar highlight/label displays the summary of the "lost" chat session.

Please authenticate to join the conversation.

Upvoters
Status

Completed

Board
🐛

Bug Reports

Subscribe to post

Get notified by email when there are changes.