Skip to content

fix(aws): recover Nova Sonic system instability errors - #6042

Merged
tinalenguyen merged 1 commit into
livekit:mainfrom
nightcityblade:fix/issue-6010
Jun 10, 2026
Merged

fix(aws): recover Nova Sonic system instability errors#6042
tinalenguyen merged 1 commit into
livekit:mainfrom
nightcityblade:fix/issue-6010

Conversation

@nightcityblade

Copy link
Copy Markdown
Contributor

Summary

  • treat Nova Sonic “System instability detected. Please retry your request.” ValidationException responses as recoverable stream failures
  • route those errors through the existing realtime session restart path instead of emitting a fatal non-recoverable error
  • add regression coverage for recoverable vs non-recoverable validation messages

Fixes #6010

Testing

  • uv run --python 3.12 ruff check livekit-plugins/livekit-plugins-aws/livekit/plugins/aws/experimental/realtime/realtime_model.py livekit-plugins/livekit-plugins-aws/tests/test_realtime_validation_errors.py
  • uv run --python 3.12 --package livekit-plugins-aws --extra realtime pytest livekit-plugins/livekit-plugins-aws/tests/test_realtime_validation_errors.py

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


nightcityblade seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

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

Copy link
Copy Markdown
Contributor

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

@tinalenguyen tinalenguyen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

thanks for the pr!

@tinalenguyen
tinalenguyen merged commit 852bcc7 into livekit:main Jun 10, 2026
16 of 17 checks passed
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.

[plugins-aws] Nova Sonic 2: generic ValidationException ("System instability detected") is treated as fatal / non-recoverable and kills the session

3 participants