LibreChat/client
Danny Avila 3bff323ac8
🧘 fix: Settle Stale Response Parts (#15743)
* 🕰️ fix: Settle Parts the Response Has Moved Past

Two live treatments outlived what they were reporting on: a reasoning block
kept shimmering with its thought peek scrolling, and a question group kept
reading "Asking 1 question", both long after the response moved on.

**Reasoning.** Activity phases split one response into several bodies, and
`PartWithContext` handed `Part` the per-body `isLastPart` as `isLast` — while
`showCursor` was correctly the body-level `isLast` AND'd with it. So every
settled phase's trailing part claimed to be the live one, and `Reasoning`
shimmers on `isSubmitting && isLast`. Both props now carry the same verdict:
the part holds the message's cursor. Grouped and parallel-lane paths already
AND'd the two, so only the phase path changes; `ToolCallGroup`'s own `isLast`
gets the same treatment for consistency.

**Questions.** `ask_user_question` writes no output onto its `tool_call` part
until the turn finalizes, so `allCompleted` stayed false and the header held
the present tense for the rest of the turn. Position cannot settle this one:
a LIVE pause appends its interactive card AFTER the group, so the group is
not the message's last part exactly while the question is open — the three
label tests that failed when I tried it that way are what caught it. The
answer itself is the signal, read through the same locally-recorded fallback
the durable record card uses, because the streaming handler's message copy
can overwrite the optimistic output stamp mid-stream.

Both regression tests were verified to fail with their fix reverted.

* 🫥 fix: Settle the Group Glyph With Its Label

The header's glyph and stacked icons pulsed on their own
`!allCompleted && isSubmitting`, so an answered question group would read
"Asked 1 question" while still pulsing beside it. Label, glyph and icon
animation now read one `isGroupLive` verdict — they are a single control.

Found by auditing the rest of the class rather than stopping at the two
reported symptoms. The other live treatments in message content are gated on
a per-part signal that does settle: `Summary` on its own `summarizing` flag,
the interim skill cards on `hasRealContent`, `SubagentCall` on its progress
status, and every tool card on `resolveToolCallPhase`, whose whole-message
`isSubmitting` fallback only applies where no `runStepStatus` was emitted.
2026-09-08 11:43:38 -04:00
..
public 🍋 feat: Add AMD Lemonade Provider Recognition and Branding (#15664) 2026-09-06 20:46:08 +02:00
src 🧘 fix: Settle Stale Response Parts (#15743) 2026-09-08 11:43:38 -04:00
sw
test 🎨 feat: Theme-Adaptive SVG Support for Custom MCP and Group Icons (#13817) 2026-09-04 10:49:43 -04:00
babel.config.cjs
check_updates.sh
index.html 🔭 feat: Tag Browser Diagnostics With Client Build IDs (#15656) 2026-09-06 12:47:34 -04:00
jest.config.cjs ✨ feat: add morphing state icons across the client (#14697) 2026-09-04 03:27:14 +02:00
jest.resolver.cjs
nginx.conf
package.json 🖼️ fix: Precache PWA Icons and Let Them Refresh (#15654) 2026-09-06 11:32:09 -04:00
postcss.config.cjs
tailwind.config.cjs ✨ feat: Context Gauge Hover Reveal and Breakdown Motion Polish (#15038) 2026-08-21 11:34:36 -04:00
tsconfig.json
vite.config.ts 🖼️ fix: Precache PWA Icons and Let Them Refresh (#15654) 2026-09-06 11:32:09 -04:00