fix(core): preserve the first terminal failure (#37705)

This commit is contained in:
Kit Langton 2026-07-19 00:00:23 -04:00 committed by GitHub
commit ba0bbdafaa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 35 additions and 39 deletions

View file

@ -642,8 +642,6 @@ function streamPartEvents(
id: event.toolCallId,
name: event.toolName,
raw: event.input,
message: error.reason.message,
providerMetadata: providerMetadata(event.providerMetadata),
}),
]),
),