* refactor: Move the Messages View Provider Into @librechat/chat
* refactor: Render the Package Message List by Default in ChatScreen
* fix: Drop the Rail's IntersectionObserver Guard for a Package Spec Stub
Nothing renders the rail without a browser: its observer starts in an effect, which never runs in a server render. The guard existed only because jsdom lacks the API, so jsdom now gets inert observers and matchMedia from the package's jest setup, and the spec's own stubs, which no longer matched the DOM lib's IntersectionObserver type, are gone.
* test: Scroll a Sidebar Row Into View Before Dragging It
A row under the fold has no pixel the mouse can press, so the drag selected text instead. Whether a run hit it depended on which earlier specs shared its shard and left chats in the Running and Finished sections.
* test: Give the Client Specs an Inert IntersectionObserver
With the rail's guard gone, a client spec that renders the message list reaches the observer jsdom lacks. The shared setup provides an inert one, as the package's jest setup does, and the child-thread spec's partial client mock gains the rem scale hook the rail reads.
* chore: Retest Against Current Dev
* test: Give the Test Messages Host the Row Hook Members
The messages host gained the assistant, added-conversation, streamed-attachment and feedback hooks when the row hooks moved into the package, so the shared test host supplies them too.
* refactor: Move Leaf Content Parts Into the Chat Package
Container, ToolAuthWarning, ToolPreparation, the failed-reveal pill, the fold
rail, the background task guidance keys, MemoryInfo, PendingSkillCall,
ResumeAuthorHeader, DialogImage and ToolCallLimitNotice move from
client/src/components/Chat/Messages/Content to packages/chat/src/components/parts
and export from @librechat/chat/components. Their specs move with them.
Client importers and mocks point at the package entry. Design-lint
suppressions follow the moved files.
* fix: Ship the Tool Row Type Scale With the Component Library
The progress-text rules move from the SPA stylesheet to packages/client/src/theme/parts.css, which ThemeProvider loads into @librechat/client/style.css, so the package's PendingSkillCall row keeps its type size without the app's CSS. The two class names join the no-unknown-classes allow list, and PendingSkillCall needs no suppression.
* test: Check the Tool Row Label Keeps the Chat Type Scale
* test: Find the Tool Row Label Around Its Toggle
* test: Capture the Staged Skill Row in Its Loading State
* fix: End the Tool Row Type Chain in a Length for Standalone Consumers
--font-size-base and --markdown-font-size are declared only in the app's
stylesheet, so the .progress-text-wrapper font-size and line-height were invalid
for a consumer that loads the published theme alone. The chain now ends in
var(--font-size-base, 1rem), and the consumer spec reads the published
stylesheet for it.
* test: Cover the Memory Limit Alert in Both Themes and Modes
* 💬 feat: Show Ask-User Questions Inline in the Chat Instead of Over the Composer
A live ask_user_question pause now starts in its chat card, in thread order and at the thread's width, instead of a popover over the composer that covered most of the screen on phones. The card's chevron still moves a question into the composer popover, and the popover's chevron moves it back.
The shared atom flips from the questions moved to the chat (collapsedAskActionsAtom) to the questions moved to the composer (expandedAskActionsAtom), so the card is the default surface.
* 🔁 fix: Restore Saved Ask Answers in the Inline Card and Focus a Batch Only on Screen
A pending single question's answer is saved under its own draft key, which autosave restores only into the composer. With the chat card as the default surface, a reload showed an empty answer there; the card now reads that saved draft when no in-memory answer exists.
A batch arriving below a reader who has scrolled up took focus on a control out of view. Arrival focus now waits for the step to be on screen (re-measured against the viewport and scroll containers on each IntersectionObserver notification), and still only takes focus when focus is idle. The visibility measurement moves from Thinking.tsx to utils/viewport.ts so both share it.
* 🧷 fix: Keep a Restored Ask Answer When Draft Saving Is Turned Off
The answer restored from a pending question's saved draft lived only in the render-time fallback, so turning Save drafts off while the card was open recomputed it to empty and cleared the visible answer. It is now copied into the in-memory answers once restored, so later preference changes leave it in place, as they do for the composer.
* 🎯 fix: Clear Answered Ask Drafts and Focus the Popover on Handoff
A pending single question's answer is saved under its own draft key. Answered from the composer, autosave cleared it along with the composer; answered from the chat card, which is now the default, nothing cleared it, so every answered question left its text in localStorage. The key is now cleared as soon as the answer is accepted (even after navigating away) and when the question expires, so a saved answer lives exactly as long as its question.
Moving a question from the card into the composer left focus on the card's now-removed button. A single question now focuses the draft, its answer box, and a batch focuses its active step through a new focusOnHandoff prop that is not limited to the first arrival.
* ⌨️ fix: Focus a Single Question on Arrival and Always Focus a Batch Handoff
With the popover gone as the default, a single question arrived with no focus cue: keys typed next in the composer went out as an ordinary mid-run message instead of answering it. The single card now takes arrival focus like a batch does, on its first option or else its answer field, once per question, only once it is on screen and only when focus is idle (nowhere, or the empty composer that sent the turn). Both cards share a new useArrivalFocus hook for the on-screen wait.
A batch moved into the composer popover now takes focus unconditionally: the handoff is the user's own action, and Safari leaves focus on the previous owner of a clicked button, which can be the hidden chat card.
The deferred-tools HITL e2e scenario read its terminal line once as soon as it appeared, while the slow echo was still streaming into it; it now waits for the full text.
* 💶 fix: Price Mistral Large 4
Mistral Large 4 and its alias `mistral-large-4-0` fell back to the generic
`mistral-large` key at the Large 3 rate. Added at its published sale price,
with the list rate noted in a comment since no end date is published.
Related to #17025
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* 💶 fix: Use Mistral Large 4 List Price
Mistral has published no end date for the Large 4 sale, so bill at the list
rate ($1.36 / $4.18 per MTok). Deployments that want the sale rate meanwhile
can set it with `tokenConfig`.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* refactor: Move the Message Row Hooks Into @librechat/chat
* test: Point the Live Attachment Scenario at the Moved useAttachments Spec
The scenario ran the client's useAttachments spec by path, which moved into packages/chat with the hook. It now runs the spec from that workspace.
Seven settings are read only from librechat.yaml as loaded, from the
YAML-only base config, or once at startup, yet the admin config API
stored overrides for them as if they applied. List them in
DEPLOYMENT_ONLY_CONFIG_PATHS, so writes skip them (deployment_only_path),
the merge keeps the librechat.yaml value, and GET /meta reports them:
- clientLimits (operator): /api/config reads appConfig.config.clientLimits
- telemetry.rum (operator): /api/config and the RUM proxy read the raw
telemetry block, the proxy through a base-only req.config
- conversationList (operator): loadConversationListLimits reads the
base-only config
- fileConfig.skills.deletionCleanupConcurrency (operator): the skill
deletion service loads the base-only config
- endpoints.agents.managementApi (operator): the agent management M2M
auth reads the base-only config
- passwordHashing (startup): configureHashPool runs once in the startup
checks
- interface.colorModeFromUrl (startup): injected into the HTML shell at
boot
GET /api/files bounds an explicit limit with req.config.fileListLimit,
but AppService never copied fileListLimit into the app config, so the
librechat.yaml value never applied. AppService now copies it.
* refactor: Compose Message Toolbar Styles From Shared Button and Label Variants
* test: Cover an Open Fork Menu Holding the Message Toolbar Visible
* refactor: Compose Composer File Styles From Shared Primitives
* refactor: Compose Summary, Collapsible Text and Subagent Activity Styles From Shared Button Presets
* fix: Draw the New Button Variants From Theme Radius and Height Roles
* test: Find the Held-Open Scenario's Replies Inside the Message List
* fix: Restore the Feedback Note and Fork Checkbox Looks Through Primitive Variants
* refactor: Compose the Message Nav Chevrons With the Disabled Ink Recipe
* fix: Keep the Pre-Push Hook's Git Environment Away From Its Checks
Git exports GIT_DIR to hooks, absolute in a linked worktree, and the hook passed
it to the static checks. scripts/imports.test.mts builds scratch repositories
with git init, add and commit, so under a push those ran against the pushing
worktree: two fixture commits on the branch, its index replaced, and core.bare
set in the shared config.
The hook now unsets everything git rev-parse --local-env-vars lists before any
child runs. The imports suite clears GIT_* for itself as well, because the
pre-commit hook reaches it with STATIC_CHECKS_FULL=1.
* test: Cover the Hook's Git Environment Scrub in the Pre-Push Scenarios
* fix: Simplify Tool Activity Headers
* fix: Preserve Interactive Flattened Tool Results
* test: Update Fold Tree Scenarios for Hidden Markers
* fix: Restore Tool Activity Tree Markers
* fix: Smooth Streaming Tool Disclosures and Show Command Timers
* fix: Align Tool UI Imports With Shared Chat Components
* fix: Hide Durations on File Read and Authoring Cards
* fix: Phrase Tool Durations as Part of the Label
* style: Match Thoughts Panel Radius to Tool Panels
* fix: Keep the Bash Copy Button Clear of the Command
* style: Space Thoughts Rows Like Tool Rows
* style: Render Agent Handoff as a Tool Disclosure
* style: Even Padding on the File Search Relevance Badge
* feat: Show Loaded Skill Instructions With an Open Skill Action
* style: Align Memory Panel Typography With Tool Panels
* style: Show Full File Paths and Match the Diff to Code Panels
* style: Pin Tool Durations and Chevrons to the Row End
* style: Use an Icon Button to Open a Loaded Skill
* style: Always Show Disclosure Chevrons
* style: Compact, Evenly Inset Copy Buttons in Tool Panels
* fix: Draw No Fold Rail Around a Lone Tool Call
* fix: Put a Titled Command's Time on Its Command Line
* fix: Hide a Bare File Edit Summary
* style: Compact Copy Button on Thoughts Headers
* fix: Move Titled Web Search Details Into the Sources Panel Header
* fix: Show Titled Web Search Details Beside the Title Chevron
* fix: Import Tool Call Phase Types From the Chat Package
* test: Cover Tool Activity Header Scenarios
* fix: Read Smooth Streaming Through the Message Parts Host
* fix: Keep a Command's Measured Time When Its Title Takes Over
* fix: Show a Loaded Skill Only When Its Name Is Unambiguous
* fix: Keep Nested Group Rails and the Handoff Label Text
* fix: Keep Skill Execution Warnings Beside Its Instructions
* fix: Label Loaded Skill Instructions as the Current Version
* refactor: Move the Message Navigation Rail Into @librechat/chat
* refactor: Render the Message Navigation Rail From @librechat/chat
* test: Cover the Navigation Rail Jumping Between a Thread's Ends
* refactor: Move Message Scrolling Into @librechat/chat
* refactor: Run Message Scrolling in the Package Message List
* test: Pin the Scroll Throttle's Coalescing Window
* feat: Export Unstyled Popover Parts From @librechat/client
* feat: Give PopoverContent the Shared Panel Surface
* refactor: Move the Reasoning Budget Control Into @librechat/chat
* test: Cover the Reasoning Budget Control and Token Formatting in the Chat Package
* fix: Keep the Reasoning Popover Under the Panel Radius Guard
* refactor: Resolve the Turn Sender and Reasoning Override in @librechat/chat
* refactor: Publish the Turn Launch as a Package Atom and Cover the Moved Resolvers
* refactor: Move the History Revalidation Guard into @librechat/chat
* refactor: Let useTurns Own Response Binding, Regenerated Focus and the History Guard
* style: Restyle OAuth Success and Error Pages
* style: Render the OAuth Connected Server Badge With Chip
* test: Cover the OAuth Popup Pages With Playwright Scenarios
* test: Settle the OAuth Popup Close Race and Render the Error Page Shell
* test: Show a Settled Assistants Error Lost to New-Chat Recovery
* fix: Keep a Failed Assistants Run's Error on the New-Chat Pane
* fix: Skip New-Chat Recovery for Any Error Turn the Server Did Not Save
* refactor: Move the Assistants Stream Hook into @librechat/chat
* refactor: Stream Assistants Turns Through the Package Legacy Stream
* test: Cover Assistants Send, Stop and Failure Through the Legacy Stream
* test: Give the Test Stream Hosts the Legacy Services Member
* test: Keep the Assistants Failure Case for Its Own Fix
* test: Give the Consumer Spec Host the Legacy Services Member
* fix: Bind Role Delete Config Restore to the Role Identity and Audit the Members It Moved
* fix: Reassign Deleted Role Members With Per-Account Conditional Writes
* test: Type the Member Reassignment Race Spy With Mongoose Query Types
* perf: Reassign Deleted Role Members in Stamped Bulk Writes
* test: Type the Bulk Reassignment Race Spy Options
* fix: Attribute Role Deletion Reassignments by a Per-Batch Nonce
* fix: Keep a Role Whose Members Could Not All Be Reassigned and Audit Those Moved
* fix: Report a Reassignment Batch Whose Write Committed Before Rejecting
* fix: Audit Members Moved Before a Concurrent Role Deletion Won
* fix: Hold Role Deletion to Its Identity, Audit, Cache and Retry Invariants on Every Path
* fix: Recheck the Targeted Role Before Every Reassignment Batch
* fix: Resolve the Targeted Role Id When a Role Delete Names Only the Role
* fix: Report Each Reassigned Account Once and Retry a Config Restore Deferred by an Unreadable Role
* fix: Keep the Reassignment Tag When a Failed Batch Cannot Be Read Back
* fix: Keep Each Overlapping Role Deletion's Reassignment Tag on the Accounts It Moved
* refactor: Share One MessageFooter Between ContentRow and MessageRender
* test: Cover the Shared Message Footer Alignment and Sibling Order
* test: Add a User Prompt Footer Scenario to the Mock Harness
* test: Render the Real Elapsed Timer in the Footer Spec
* feat: Add the Composer Placement Transition Recipe
* refactor: Move the Composer Layout Into the Chat Package
* test: Expect No Refocus on a Coarse Pointer in the Composer Frame Scenario
* fix: Render No Context Rail for a Boolean Slot
* feat: Add a Composer Variant to TextareaAutosize
* refactor: Move the Composer Field and Action Slot Into the Chat Package
* test: Wait for the Collapse Transition in the Composer Field Scenario
* fix: Keep the Composer Touch Font Floor in the Shared Field Stylesheet
* test: Floor a Small Chat Font on the Composer Draft on Touch
* refactor: Draw Content and Thread Rows Through a ContentRow in @librechat/chat
* test: Cover ContentRow Against Fake Hosts and Register the App Hosts in Row Specs
* test: Add Structured Reply Row Scenarios to the Mock Harness
* refactor: Move the Author, Error Source and Message Surface Contexts into @librechat/chat
* refactor: Keep the Moved Message Contexts Importable From Their Client Paths
* refactor: Render Thread Rows Through MessagesHost Slots
* refactor: Move the Thread Renderers Into @librechat/chat as the Default MessagesView Thread
* test: Verify Sibling Switching, Activity Anchors and Editing on the Package Thread
* refactor: Move HoverButtons into @librechat/chat Behind Thread and Read-Aloud Host Members
* test: Cover HoverButtons Against a Fake Host and the App Read-Aloud Slot
* test: Add Hover Toolbar Scenarios to the Mock Harness
* test: Target the Edit Textarea by Test Id in the Hover Edit Scenario
* fix: Keep Module-Scope Atoms Out of the Components Entry by Reading HoverButtons State Through the Chat Contract and Host
* test: Render the Hover Toolbar Specs Through the Real English Bundle
* chore: Add framer-motion and react-dnd as @librechat/chat Peers
* refactor: Move the Composer Queue Rail Into the Chat Package
* fix: Keep Store Atoms Out of the Queue Rail's Module Load
* refactor: Move the Stream Event Handler Hooks into @librechat/chat
* refactor: Read the Event Handler Services Through the Stream Host
* test: Give the Event Handler Test Hosts the Subagent Index Member
* refactor: Route Stream Event Handler Effects Through Grouped Host Services
* test: Confirm the Titled Endpoint Pick in the Generated Title Scenario
* test: Give the Subagent Index Test Host the Event Services Member
* test: Give the Consumer Spec Host the Event Services Member