FIX: Final summary sometimes missing
This PR fixes an issue where the summary updater sometimes doesn't show the last update. Due to some timing issues with the summary updater and the component this seems to happen. By explicitly calling set raw after the cooked, we ensure the final summary will always be set. No tests as this timing issue is difficult to test.
This commit is contained in:
parent
9505a8976c
commit
943aa7468d
|
@ -113,6 +113,10 @@ export async function applyProgress(status, updater) {
|
|||
if (status.cooked) {
|
||||
await updater.setCooked(status.cooked);
|
||||
}
|
||||
// Ensure the final summary is set
|
||||
if (status.raw !== undefined) {
|
||||
await updater.setRaw(status.raw, true);
|
||||
}
|
||||
updater.streaming = false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue