Commit 1a880fd
committed
fix(webapp): hardcode v2 for session-streams wait race-check
The race-check in api.v1.runs.$runFriendlyId.session-streams.wait was
selecting the realtime stream instance via run.realtimeStreamsVersion,
but session streams are always v2 (S2) — the writer (appendPartToSessionStream)
and the SSE subscribe both hardcode v2. For a v1 run the race-check
silently fell back to a non-S2 instance, the instanceof check missed,
and the optimization was skipped. Hardcode v2 for parity with the rest
of the session surface.1 parent faf7888 commit 1a880fd
1 file changed
Lines changed: 6 additions & 4 deletions
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
130 | 132 | | |
131 | 133 | | |
132 | 134 | | |
| |||
0 commit comments