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
Streaming content duplication during LLM streaming in desktop/web UI #14822
During LLM streaming in the desktop UI (and web app), text content appears duplicated/repeated. After quit+reopen, content displays correctly (loaded from DB).
Steps to Reproduce
Open the opencode desktop app or web UI
Send a message to trigger LLM streaming
Observe the streaming text output — content appears repeated/duplicated
Quit and reopen the app — content now displays correctly
Expected Behavior
Streaming text should appear incrementally without duplication.
Actual Behavior
Text content is duplicated during streaming. For example, instead of showing Hello world, the UI shows Hello worldHello world.
Root Cause
In global-sdk.tsx, SSE events are batched in 16ms windows with coalescing. When message.part.updated events coalesce within a single batch (text-end replaces text-start at the same queue index), stale message.part.delta events remain in the queue and get applied on top of the authoritative full text.
Environment
Platform: macOS (desktop app via Tauri), also affects web UI
Please check if your issue is already covered by one of the above. If so, consider closing this one and adding any new details to the existing issue instead.
Activity
github-actions commentedon Feb 23, 2026
This issue might be a duplicate of existing issues. Please check:
Please check if your issue is already covered by one of the above. If so, consider closing this one and adding any new details to the existing issue instead.
github-actions commentedon Apr 25, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.