LibreChat/client
Marco Beretta 1c5e8ee7bf
🧮 refactor: Pure Step Reducer Behind useStepHandler (#16289)
* 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
2026-09-24 17:36:34 +02:00
..
public 🧩 feat: MCP Apps support (#13831) 2026-09-23 21:24:50 -04:00
src 🧮 refactor: Pure Step Reducer Behind useStepHandler (#16289) 2026-09-24 17:36:34 +02: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: MCP Apps support (#13831) 2026-09-23 21:24:50 -04:00
jest.resolver.cjs
nginx.conf
package.json 🧩 feat: MCP Apps support (#13831) 2026-09-23 21:24:50 -04:00
postcss.config.cjs 🌊 refactor: Upgrade the Client to Tailwind v4 (#15996) 2026-09-23 13:19:32 -04:00
tailwind.config.cjs 🎨 feat: Check Color Tokens and Class Existence (#16041) 2026-09-23 21:34:14 +02:00
tsconfig.json
vite.config.ts 🖼️ fix: Precache PWA Icons and Let Them Refresh (#15654) 2026-09-06 11:32:09 -04:00