mirror of https://github.com/buster-so/buster.git
Update modify-reports-transform-helper to display elapsed time only when all edits are complete, ensuring accurate reporting during the editing process.
This commit is contained in:
parent
65260104c1
commit
60d7bd67d1
|
@ -66,9 +66,16 @@ export function createModifyReportsReasoningEntry(
|
|||
}
|
||||
}
|
||||
|
||||
// Calculate elapsed time when complete
|
||||
// Only show elapsed time when all edits are complete (not during streaming)
|
||||
// Check if all edits have a final status (completed or failed), not just 'loading'
|
||||
const allEditsComplete = state.edits?.every(
|
||||
(edit) => edit.status === 'completed' || edit.status === 'failed'
|
||||
) ?? false;
|
||||
|
||||
if (allEditsComplete) {
|
||||
secondaryTitle = formatElapsedTime(state.startTime);
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
id: toolCallId,
|
||||
|
|
Loading…
Reference in New Issue