mirror of
https://github.com/livekit/livekit.git
synced 2026-12-04 21:18:19 +00:00
An agent can name the participant it is sending on behalf of in data_stream_on_behalf_of_identity instead of participant_identity. The SFU copies it into an empty participant_identity before the per-payload checks, so it is validated the same way (agent only; text stream header, chat message or encrypted packet), and the data_stream_* fields are still recomputed by the SFU. participant_identity wins if both are set. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>