🛠 chore(fetch-sse): preserve legacy body.message and body.name keys for compatibility (#13469)

Restores the original body.message / body.name fields that downstream error
handlers rely on. The previous PR renamed them to errorMessage / errorName
which broke existing error renderers.

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Arvin Xu 2026-04-01 15:04:37 +08:00 committed by GitHub
parent 7fd6d67fe3
commit 60a59e89f6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -326,8 +326,8 @@ export const fetchSSE = async (url: string, options: RequestInit & FetchSSEOptio
? { ...error, body: { ...error.body, ...contextBody } }
: {
body: {
errorMessage: error.message,
errorName: error.name,
message: error.message,
name: error.name,
...contextBody,
},
message: error.message,