LibreChat/client
Marco Beretta 07bbbc0d4d 📜 refactor: Declare the Chat Context Contract (#16288)
* refactor: declare the chat context contract

Replace the inferred ReturnType<typeof useChatHelpers> context type with an
explicit ChatContract grouped by responsibility, and move the added-chat
context shape to AddedChatContract. useChatHelpers and useAddedResponse
annotate their memoized value with the contract, and contract.check.ts
asserts two-way equality against the hooks each member is forwarded from.

* test: cover the chat context behaviors with e2e scenarios

* refactor: derive newConversation options from NewConversationParams

useNewConvo now takes the contract's NewConversationOptions instead of
restating the shared params inline, so there is one definition.

* test: skip the added pane scenario where the control is hidden

* refactor: type contract setters as React dispatchers

Keep the chat contract free of Recoil types, and tighten the regenerate
and stop scenarios to assert the regenerated sibling's content and that
the stopped reply stays partial after reload.

(cherry picked from commit 0d4627b387)

Original-PR: https://github.com/LibreChat-AI/LibreChat/pull/16288
2026-10-01 03:46:17 +00:00
..
public 🧩 feat: MCP Apps support (#13831) 2026-10-01 03:46:16 +00:00
src 📜 refactor: Declare the Chat Context Contract (#16288) 2026-10-01 03:46:17 +00: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 🗄️ fix: Fall Back to In-Memory Storage When Web Storage Is Denied (#16431) 2026-09-28 12:28:52 +02:00
jest.config.cjs 🧩 feat: MCP Apps support (#13831) 2026-10-01 03:46:16 +00:00
jest.resolver.cjs
nginx.conf
package.json 🧩 feat: MCP Apps support (#13831) 2026-10-01 03:46:16 +00:00
postcss.config.cjs 🌊 refactor: Upgrade the Client to Tailwind v4 (#15996) 2026-10-01 03:46:16 +00:00
tailwind.config.cjs 🎨 feat: Check Color Tokens and Class Existence (#16041) 2026-10-01 03:46:16 +00:00
tsconfig.json
vite.config.ts 🖼️ fix: Precache PWA Icons and Let Them Refresh (#15654) 2026-09-06 11:32:09 -04:00