Skip to content

[codex] Handle non-JSON session report values#5673

Open
jayeshp19 wants to merge 1 commit intolivekit:mainfrom
jayeshp19:codex/console-recording-report-json
Open

[codex] Handle non-JSON session report values#5673
jayeshp19 wants to merge 1 commit intolivekit:mainfrom
jayeshp19:codex/console-recording-report-json

Conversation

@jayeshp19
Copy link
Copy Markdown
Contributor

Summary

  • make local console session report serialization tolerate non-JSON event values
  • add a regression test covering recorded events with arbitrary runtime objects

Root cause

console --record writes session_report.json with json.dumps(report.to_dict()). Some recorded events can include SDK runtime objects, such as an adaptive interruption detector instance, which are not JSON serializable and caused the report save to fail at session shutdown.

Validation

  • uv run ruff check livekit-agents/livekit/agents/job.py tests/test_recording.py
  • uv run pytest tests/test_recording.py

@jayeshp19 jayeshp19 marked this pull request as ready for review May 7, 2026 14:24
Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 1 additional finding.

Open in Devin Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant