Skip to content

fix xAI realtime update chat ctx#5320

Merged
longcw merged 2 commits intomainfrom
longc/fix-xai-realtime
Apr 7, 2026
Merged

fix xAI realtime update chat ctx#5320
longcw merged 2 commits intomainfrom
longc/fix-xai-realtime

Conversation

@longcw
Copy link
Copy Markdown
Contributor

@longcw longcw commented Apr 3, 2026

this pr fixed issues

  • conversation.item.added event always has the previous_item_id as None, causing the latest item being inserted at the top
  • conversation.item.deleted event has item_id empty, causing "failed to delete item" error, in this fix we assume it's the first item in to queue
  • input audio transcript was duplicated in the rt_session's chat item's content

@chenghao-mou chenghao-mou requested a review from a team April 3, 2026 05:35
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 5 additional findings.

Open in Devin Review

@longcw longcw merged commit 442ecd7 into main Apr 7, 2026
21 of 23 checks passed
@longcw longcw deleted the longc/fix-xai-realtime branch April 7, 2026 02:44
osimhi213 added a commit to de-id/livekit-agents that referenced this pull request Apr 9, 2026
* upstream/main: (28 commits)
  feat(amd): add OTEL span and tag for AMD (livekit#5376)
  livekit-agents@1.5.2 (livekit#5391)
  fix: minimax optional dep not bumped by update_versions.py (livekit#5392)
  ci: use livekit-agents@version for release PR title (livekit#5390)
  ci: fix version read in publish workflow (livekit#5388)
  ci: fix build permissions and tag format (livekit#5386)
  require livekit-protocol>=1.1.5, implement get_framework_info (livekit#5385)
  ci: remove release label from publish workflow (livekit#5384)
  ci: fix update_versions.py invocation (livekit#5382)
  feat(rime): add mistv3 model support (livekit#5298)
  ci: fix tag checkout and discover glob (livekit#5381)
  feat: Add D-ID avatar plugin (livekit#5232)
  ci: add PyPI publish workflow with trusted publishing (livekit#5379)
  feat(core): Support multiple provider keys in extra_content serialization (livekit#5374)
  Add Murf as optional dep (livekit#5334)
  add prompt_cache_retention chat completion option to inference (livekit#5370)
  fix: say() with missing audio file hangs forever and blocks speech queue (livekit#5358)
  feat(mistral): support voxtral realtime streaming stt & modernize mistral plugin (livekit#5289)
  Fix RoomIO teardown listener cleanup (livekit#5357)
  fix xAI realtime update chat ctx (livekit#5320)
  ...
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.

2 participants