🥧 refactor: Show Failed Call Fractions and Preview Age (#16468)

* 🥧 fix: Show Failed Call Fractions and Preview Age

* 🗑️ chore: Remove Unused Failure Labels

* 🕒 test: Verify Live Failure Close Times

* 🧵 fix: Select Accessible Badge Labels Without Nested Ternaries

* 🪆 fix: Show One Failure Pill for Live Phase Groups

---------

Co-authored-by: Lia <lia@librechat.ai>
This commit is contained in:
lia-by-librechat[bot] 2026-09-28 20:55:35 -04:00 • committed by GitHub
parent 46f81b651e
commit 7e786baa22
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 358 additions and 65 deletions

View file

@ -9,6 +9,7 @@ const {
ErrorTypes,
UsageEvents,
getRunStepDurationMs,
getRunStepCloseMetadata,
} = require('librechat-data-provider');
const {
GraphEvents,
@ -595,6 +596,7 @@ function getDefaultHandlers({
const part = typeof index === 'number' ? contentParts[index] : undefined;
if (part?.type === ContentTypes.TOOL_CALL && part.tool_call) {
part.tool_call.runStepStatus = data.status;
Object.assign(part.tool_call, getRunStepCloseMetadata(data));
/**
* The raw derivable duration, left unset rather than zeroed when
* the event cannot support a trustworthy one — no `created_at`,