Log the type of every server-sent event the client receives, in order, for one failing request.

Check whether an error event appears in the stream, especially after long pauses in generation.

Repeat the request with a direct connection and no proxy, gateway, or serverless timeout in between.

Raise or disable response buffering and idle timeouts on any proxy in the path so the stream can run to completion.

Make the client treat stream close as a terminal state too: finalize with the content received and record that message_stop was absent, rather than hanging.

Retry the original failing prompt and confirm the full sequence including message_stop on the healthy path.