Handle heartbeat and session_sync on WS reconnect
- Ignore heartbeat events (server keep-alive pings)
- On session_sync after a reconnect: call reloadSession() to fetch
  the latest saved history so the user sees the response even if
  the agent finished while the client was disconnected
- Add chat.reloadSession(): force-reloads session from API bypassing
  the same-id guard, also restores context token metrics

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent f83886a commit 3e8f9427e69a45297ac6b6847cd3572c296c2ab4
@Eugene Sukhodolskiy Eugene Sukhodolskiy authored on 16 Apr
Showing 2 changed files
View
webclient/src/composables/useWebSocket.js
View
webclient/src/stores/chat.js