Commit bccbdc9
fix: reset currentEvent on unknown SSE event type
Set currentEvent to null when event type is not in VALID_EVENTS,
and skip data lines when currentEvent is null to prevent emitting
events with a stale type.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent e6db246 commit bccbdc9
1 file changed
+3
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | | - | |
| 175 | + | |
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
182 | | - | |
183 | | - | |
184 | | - | |
| 182 | + | |
185 | 183 | | |
| 184 | + | |
186 | 185 | | |
187 | 186 | | |
188 | 187 | | |
| |||
0 commit comments