Skip to content

Conversation

wangxm345566462
Copy link

Normalize message.root.id to int for SSE compatibility

Some non-compliant SSE servers may return numeric IDs as strings, even when the client originally sent them as integers. This can lead to issues where the response ID no longer matches the original request ID, causing callbacks to fail and the client to hang indefinitely.

This change ensures that message.root.id is coerced to an integer when appropriate, maintaining type consistency and restoring proper request-response matching.

…lity


Some non-standard SSE servers may return numeric IDs as strings,
even when the original request used an integer. This change ensures
that message.root.id is always an integer to maintain consistency
and avoid type issues in downstream processing.
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