Skip to content

server : reject non-object session updates - #31714

Merged
angt merged 1 commit into
ggml-org:masterfrom
angt:server-reject-non-object-session-updates
Nov 5, 2026
Merged

angt merged 1 commit into
ggml-org:masterfrom
angt:server-reject-non-object-session-updates

Conversation

@angt

@angt angt commented Nov 5, 2026

Copy link
Copy Markdown
Member

Overview

Prevent malformed realtime session updates from throwing an uncaught exception and terminating the server

Additional information

Requirements

Prevent malformed realtime session updates from throwing an uncaught
exception and terminating the server

Signed-off-by: Adrien Gallouët <angt@huggingface.co>
@angt
angt requested a review from a team as a code owner November 5, 2026 07:28
@github-actions github-actions Bot added the server label Nov 5, 2026

@ServeurpersoCom ServeurpersoCom 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.

LGTM! Since #31632 the reader thread already catches this, so this PR turns a raw json exception into a proper client error rather than fixing a crash.

Nit: "audio" has the same issue a few lines below, {"session": {"audio": 1}} still reaches audio.value("input", ...) and throws, you could guard it the same way.

@angt
angt merged commit c55b094 into ggml-org:master Nov 5, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants