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
Empty SSE Events Leak Through Opencode Stream Processor #2840
Summary: The shared SSE client in opencode/packages/sdk/js/src/gen/core/serverSentEvents.gen.ts emits an event for every data: stanza, even if the
payload is empty/whitespace. Downstream code receives meaningless events, forcing consumers (e.g., the Gemini plugin) to filter them manually.
Impact: Plugins/tools that listen to streamed deltas must implement custom guards to avoid processing blank events. This leads to duplicated logic,
brittle handling of real "" payloads, and wasted work for every SSE consumer.
This is visible when working with Gemini CLI OAauth
Activity
rekram1-node commentedon Sep 28, 2025
@shantur do u know which event types are being sent as blank strings?
shantur commentedon Sep 28, 2025
@rekram1-node : heartbeat was one for sure