Fix reloadSession race that orphans streamingMsg
reloadSession checked streaming.value at entry but api.getSession is
async. While awaiting, onStreamStart could set streaming=true and push
the assistant message into messages.value. When reloadSession resumed it
replaced messages.value with the stale server snapshot, evicting the live
streaming message. All subsequent deltas and tool cards went to the orphan
and were invisible.

Fix: re-check streaming.value after the await before mutating messages.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 5a93b2b commit 87c7a87635f175cf695eff6b98e1d9f644c28fb1
@Eugene Sukhodolskiy Eugene Sukhodolskiy authored on 26 May
Showing 4 changed files
View
webclient/dist/assets/index-Bk39ZCxU.js 100644 → 0
Not supported
View
webclient/dist/assets/index-DzKfGOq8.js 0 → 100644
Not supported
View
webclient/dist/index.html
View
webclient/src/stores/chat.js