Fix streaming message orphaning and duplicate message keys
chat.js:
- reloadSession: during an active stream, replace the last built assistant
  message with the live streamingMsg instead of discarding it on text match.
  This fixes the root cause of invisible first messages and flickering tool
  cards when session_sync arrives mid-stream.
- buildMessageList: remove assistantCounter and use firstIdx as the message id
  to avoid duplicate Vue keys (e.g. user h_0 and assistant h_0).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 5e88cf9 commit 3ef005d08c7bc94a2c8e1ad562b511be161fdf7e
@Eugene Sukhodolskiy Eugene Sukhodolskiy authored on 25 May
Showing 3 changed files
View
webclient/dist/assets/index-CbPtHzZw.js 100644 → 0
Not supported
View
webclient/dist/index.html
View
webclient/src/stores/chat.js