Files
pipelines/internal
alan 243e5e7b7b Chat subscribe: queue the live-turn marker as the client attaches
TestChatFanoutToSeveralClients flaked (tablet frame 0 = step, want text):
chat_subscribe decided whether to replay a `step started` marker only after
writing its reply and attaching the stream, then sent it. A turn another
client started in between was already being fanned out live to the new
subscriber, so the marker arrived after that turn's user frame, and could
even arrive after its `step ended`, leaving the client showing a turn that
had finished. The marker is now decided and queued in the same critical
section that makes the client a fan-out target, and the new subscriber's
writer starts only after the subscribe reply is written, so the reply comes
first and the marker precedes every live frame of the turn it stands for.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 00:51:03 +00:00
..