mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-11-18 14:08:21 +00:00
* refactor: lift text and reasoning step transitions into pure reducers Move the content-part primitives (updateContent, content index and edit prefix resolution, step metadata, reasoning label reset) out of useStepHandler into hooks/SSE/steps, and add pure reducers for message, reasoning, agent update and summary events. The hook keeps its refs, message lookup, buffering and cache writes and calls the reducers; its public signature is unchanged. Tool call events follow in the next change. * test: cover reasoning order and live compaction with e2e scenarios * fix: tolerate a message step without message_creation details The inline handler read the phase through optional chaining; keep that in applyMessageDelta so a bare MESSAGE_CREATION step still streams. * test: assert the reset reasoning part without an untyped cast |
||
|---|---|---|
| .. | ||
| deployed | ||
| mock | ||
| real | ||
| a11y.spec.ts | ||
| keys.spec.ts | ||
| landing.spec.ts | ||
| messages.spec.ts | ||
| nav.spec.ts | ||
| popup.spec.ts | ||
| settings.spec.ts | ||