What happened
The Habr article describes an internal analytics chat at BIGPLAY, an esports platform. A user can ask questions such as how many matches were played yesterday by discipline. The backend writes and executes SQL, then streams a response containing text, a table and chart data. It stores conversation history by session ID, while the frontend sends only the new message. Before the work described, the frontend maintained its own server-sent events parser and roughly 100 lines of stream-handling logic for cancellation, status, chunk assembly and errors. The author wanted to use useChat from vue-llm without changing the backend, which another developer maintained.
The existing createSSEProvider and its mapEvent function could already translate backend events into text, reasoning and tool-use chunks. The article says five missing pieces were added across versions. In vue-llm 1.6, message-metadata gave non-text information about a whole response—such as SQL and chart configuration—a place on message.metadata. The component can render a chart from that metadata, and the article says it is also available to onFinish and saved with history.
Versions 1.7 added a way to use the backend's message ID rather than a client-generated ID. A start event can supply it; mapEvent can also inspect the response headers, including X-Message-Id. The library also identifies why a request was made with a trigger value: submit, regenerate or continue. During regeneration, the frontend sends the ID of the answer being replaced. The backend can then remove the old answer before saving the new one, instead of retaining both in the conversation history.
The other 1.7 change lets the chat ID be a reactive reference. When the selected session changes, the current response stops and the new session's history loads through storage callbacks. If users switch sessions quickly, a late response for the earlier selection is ignored so it cannot overwrite the newer session. In 1.8, data parts made it possible to place backend-sent progress or chart data at a specific point in a streamed message. Reusing the same part name and id updates that part in place. The article distinguishes these UI data parts from tools called by the model: the backend sends the parts, and they are not sent back to the model.
The author's implementation uses a mapEvent function of roughly 20 lines plus custom message components. The article says cancellation, statuses, errors and a Vue DevTools tab come from useChat; a retryMiddleware adds retries after network failures. It reports compatibility with Vue 2.7. The author links documentation for custom backends and sessions, and for data parts, alongside the library documentation and GitHub repository.
What the archive adds
We have not covered this before; it opens a new thread.
Trend signal
This supports Model answers become task interfaces: the chat response here is not limited to generated prose. Server-provided metadata and positioned data parts let an application assemble a response with charts and progress in context. The example is about one Vue library integration, not evidence that this approach is becoming a general convention across products.
Why it matters
A chat frontend connected to a service that owns its own history has to reconcile two state machines: the UI's messages and the backend's sessions, identifiers and stream events. The article's practical point is that this boundary can be made explicit. Stable server IDs make actions such as linking to, exporting or deleting a response less dependent on client-side guesses. Sending the ID of the answer being regenerated gives the backend enough context to replace it rather than accumulating duplicate history.
For teams, separating whole-response metadata from in-stream UI parts also clarifies what belongs in the conversation shown to a person and what should go back to the model. Progress can update in place; chart data can be rendered by a named component; and a backend can retain control of its own history. This is a useful integration design when replacing a bespoke parser is more realistic than replacing a working backend.
Limits and uncertainty
The article is an account by the library's author of one internal BIGPLAY integration. It does not report comparative measurements of performance, reliability or development time, and it does not independently establish how the library behaves across different backends or production loads. The roughly 100-line parser and 20-line mapping function are estimates from this implementation, not a controlled benchmark. The article describes version numbers and capabilities but does not give release dates, pricing or adoption figures. Teams should test session switching, retries and regeneration against their own backend's event format and history semantics before relying on them.
Skill to build now
If your backend owns chat history, sketch its event contract before wiring up a frontend: identify where session IDs and message IDs arrive, how a regeneration identifies the answer to replace, and which streamed values are for display only. Then map one response end to end, including a late session load and a repeated progress update. This makes mismatches in state ownership visible before they turn into duplicate history or stale UI.
Reader takeaway
The reusable lesson is to represent backend-owned chat state directly in the client integration: preserve server message IDs, tell the backend why a request is being sent, and model UI-only data separately from model-facing content. In this Vue case, those boundaries let a small event-mapping function replace much of a bespoke stream parser without requiring a backend rewrite.