Commit cc51e30
committed
fix: gate data-streaming on live stream source, not replay
Codex P2 on PR #3221: replay rows are emitted with isStreaming=true
and streamPresentation.source="replay" while the backend rebuilds
history on reconnect. Gating data-streaming on isStreaming alone
would set the attribute and animate every block of every replayed
message — exactly what we wanted to avoid.
Compute isLiveStreaming = isStreaming && streamSource !== "replay"
and gate the data-streaming attribute on that. Completed messages
already have isStreaming=false, so the attribute is naturally absent
in their case too.
Test extended to assert all three cases: live → "true", replay → absent,
completed → absent.1 parent 94ae380 commit cc51e30
2 files changed
Lines changed: 44 additions & 17 deletions
Lines changed: 30 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
165 | 185 | | |
166 | 186 | | |
167 | | - | |
168 | | - | |
169 | | - | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
170 | 190 | | |
| 191 | + | |
171 | 192 | | |
172 | 193 | | |
173 | 194 | | |
174 | | - | |
175 | | - | |
176 | 195 | | |
177 | 196 | | |
178 | 197 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
74 | 84 | | |
75 | 85 | | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
82 | 90 | | |
83 | 91 | | |
84 | 92 | | |
| |||
0 commit comments