You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(desktop): do not replay streamed text after returning to a conversation #2895
If an assistant response is still streaming, leaving the conversation and returning later can replay text that was already shown.
The replay appears after the last settled message and uses the compact streaming layout. The conversation keeps running, but the message view remains wrong until the animation catches up.
Returning to a conversation should show existing text immediately. Only new text should animate.
How to reproduce
Start a Desktop conversation.
Wait until the assistant has produced some visible text, but the turn is still running.
Open another Maka section or another conversation.
Wait while more output accumulates.
Return to the original conversation before the turn finishes.
The current response starts animating again from the beginning. A longer wait usually produces a longer replay.
Environment
Maka commit: 0b20a6713
OS: macOS 26.5.2 (Build 25F84)
Surface: Desktop
Node.js: v24.18.1
Logs, screenshots, or additional context
The problem is in the lifetime of the streaming presentation state.
Leaving the sessions section unmounts ChatMessageSurface, while the accumulated LiveTurnProjection remains in the session UI state. When the view mounts again, StreamingAssistantBubble receives the existing text with streaming=true. Astryx useStreamingText initializes its display cursor to 0, so it plays the whole buffer again.
The different spacing comes from the same path: StreamingAssistantBubble explicitly uses the compact streaming Markdown components.
This does not appear to be transcript or event duplication. Runtime Host seeds use absolute offsets, and applyLiveTurnEvent removes overlapping text from replayed deltas. The focused live-turn projection tests, including the resubscription seed case, pass.
Streaming presentation progress should follow the stream identity rather than a mounted component. Remounting an existing stream should show its current buffer immediately, then animate only new text.
Disclosure: OpenAI Codex assisted with the diagnosis, focused verification, and drafting. The human contributor reviewed the report before submission.
I plan to track presentation progress by stream identity (turnId, messageId, and content kind). This keeps the state in the renderer without putting animation details into Runtime Host or the durable transcript.
The regression test will cover a new stream, remounting the same stream, new text arriving after remount, navigation between sections and conversations, and cleanup when the stream finishes.
Disclosure: Drafted with OpenAI Codex assistance and reviewed by the human contributor before posting.
Activity
Astro-Han commentedon Aug 12, 2026
I'll take this.
I plan to track presentation progress by stream identity (
turnId,messageId, and content kind). This keeps the state in the renderer without putting animation details into Runtime Host or the durable transcript.The regression test will cover a new stream, remounting the same stream, new text arriving after remount, navigation between sections and conversations, and cleanup when the stream finishes.
Disclosure: Drafted with OpenAI Codex assistance and reviewed by the human contributor before posting.