mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-11-16 13:00:55 +00:00
* refactor: Move the Subagent Transcript Into @librechat/chat Behind a Subagents Host SubagentActivity, its scroll surface, content, status and guidance history move into @librechat/chat/components, and ScrollToBottom moves into the package with them. A new SubagentsHost carries what still lives in the app: the content-parts and steer renderers, the animated jump-to-latest control, and the read of a shortened guidance receipt, which stays an app query. The prompt preview reuses renderMarkdown with a new codeExecution flag, and the task content scope becomes a plain package context. * refactor: Draw Content Parts Through the Message Parts Host renderContentParts moves from SubagentsHost onto MessagePartsHost as the one content slot, typed as ContentPartsSlotProps: the transcript fields plus the optional row fields message rows pass. The app fills it through a registered renderer, so the host module does not import the content stack, and omitted row fields keep an assistant reply's defaults. * refactor: Let the Content Parts Slot Carry Sparse Content Main message rows keep holes at streaming and parallel indexes, and part indexes depend on those positions, so the slot's content keeps undefined entries as ContentParts already accepts them. * test: Exercise the Real App Renderers in the Host Registration Spec The transcript host test now renders the app's ContentParts and SteerPart under the providers they read, so the registered content renderer and steer slot are proven against the real components; only the receipt request stays mocked. |
||
|---|---|---|
| .. | ||
| hosts.test.tsx | ||
| loadingCanvas.spec.ts | ||