mirror of
https://github.com/livekit/livekit.git
synced 2026-11-23 02:29:22 +00:00
* config: count lk. participant attributes against their own size limit LiveKit services set participant attributes with the lk. prefix. These attributes now count against a new max_lk_attributes_size limit (default 1024 bytes), so they do not use up the customer's max_attributes_size budget. All attribute size checks enforce both limits and keep the existing error types. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * rtc: check attribute limits against the merged participant attributes UpdateMetadata checked only the attributes in the update, but SetAttributes merges them into the stored attributes. Sequential updates could each pass and leave the participant above either limit. The check now runs on the attributes that the update would store. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * service: return invalid argument when merged attributes exceed a limit The admin API checks only the attributes in the request. The participant checks them merged with the attributes it already has, so a request can pass the first check and fail the second. That error reached the caller as unknown. Return InvalidArgument for it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>