fix(livekit-agents): require livekit-protocol>=1.1.21 for MetricsRecordingHeader.simulated#6541
Merged
Conversation
…rdingHeader.simulated #6497 writes MetricsRecordingHeader.simulated / redaction_enabled in the session-report upload, but left the dependency floor at livekit-protocol>=1.1.19, which predates those proto fields (added in 1.1.21). A non-locked install resolving to the floor crashes the entire session-report upload with 'MetricsRecordingHeader has no "simulated" field', dropping the recorded chat history. Bump the floor to the first release that defines them.
chenghao-mou
approved these changes
Jul 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
#6497 added simulation/redaction telemetry tagging:
telemetry/traces.pynow buildsMetricsRecordingHeader(..., simulated=..., redaction_enabled=...)in the session-report upload. But it left the dependency floor atlivekit-protocol>=1.1.19,<2, and those proto fields were only added inlivekit-protocol1.1.21 (proto side of livekit/protocol#1679; Go equivalent shipped inv1.50.4).As a result, any install that resolves
livekit-protocolto the floor (1.1.19 or 1.1.20 — non-locked installs, e.g.pip install livekit-agents) crashes on every session-report upload:Because the upload fails, the recorded
chat_historyis never stored, which in turn makes the simulation summarizer 404-loop fetching it.What
livekit-protocolfloor to>=1.1.21,<2— the first release that definesMetricsRecordingHeader.simulated/redaction_enabled— so the declared dependency actually guarantees the fields feat: tag simulation and redaction telemetry #6497 writes.uv lock): the resolved version was already 1.1.21, so this is a one-line specifier update with no package churn.Verified
With
livekit-protocol==1.1.21installed, alk agent simulaterun uploads the session report cleanly (uploading session report→finished uploading) and the exported run JSON retains fullfunction_call.argumentsandfunction_call_output.output(redaction is skipped for simulation sessions).