* feat: add app-wide UI scale setting
* test: align dev's new header, drawer and combobox specs with the scaled shell
* fix: keep design-recorded arbitrary values off the same-count swap
* fix: scale composer and reasoning spacing on the spacing scale
* test: reach scaled rows and wait on the composer under the unpainted drawer
* test: cover the scaled composer at both ends of the range
* test: reload the composer scenario at each scale from the live page
* fix: leave the root style untouched at the default scale
* test: align dev's tool output and subagent inset specs with the rem classes
* fix: scale a caller's combobox height cap with its rows
* fix: size the conversation list's row estimate on the scaled drawer breakpoint
* test: align dev's conversation row status spec with the scaled drawer breakpoint
* style: sort the settings dialog imports after the dialog layer merge
* fix: scale the collapsed combobox's fallback popover width
* fix: size the upload glyph on both axes so it grows with the scale
* perf: Cache package builds and make client coverage opt-in
* perf: Add a cached turbo test:ci task and a parallel test:turbo script
* perf: Hash default turbo inputs and live-test env for cached tasks
* perf: Hash live-test credentials in the turbo test cache key
* perf: Hash the ignored backend test env file in the turbo test cache key
* perf: Order test tasks after consumed builds and hash cross-workspace test imports
* test: Cover the cached test runner's keys, build order and client coverage toggle
* perf: Hash the root env file the live responses suite loads
* perf: Stop caching test results and hash the client package's baked env
* fix: Pass every caller variable to test runs and include the shared client suite
* perf: Async Local File Saves and Compile Hot-Path Regexes Once
* perf: Check Closing Code Fences Without a Per-Length Regex Cache
* test: Build the Delivery Route Config Before Routing Instead of Mutating It
mergeFileConfig now memoizes by config identity, so the CSV fallback tests
must set textFallbackWithoutTools when they build the request config rather
than mutate the object after the agent's routing already merged it.
* fix: Write Local Buffers Atomically So Concurrent Saves Cannot Interleave
Async writeFile calls to one deterministic path (OpenID and SAML avatars)
could truncate and interleave each other. Write through a temp file and a
rename instead, and add scenario specs for local saves and longer closing
fences.
* refactor: Move Local Save Logic Into packages/api
saveLocalBuffer, the temp-upload move and the atomic directory writes now live
in packages/api/src/storage/local.ts and receive their paths from the caller;
the Local strategy in /api keeps its logging and calls through. The traversal
check now runs before any directory is created.
* fix: Copy Moved Uploads Through a Temp File and Rename Into Place
Concurrent async copies to one destination could interleave just like direct
writes, so moveLocalFile now fills a sibling temp file and renames it.
* fix: Contain Every Local Write and Move Inside Its Target Directory
The traversal check that guarded saveLocalBuffer now runs in writeLocalFile
and moveLocalFile too, before any directory is created, and the buffer
save accepts only the images and uploads base paths.
* test: Define the Success Assertion Inside the Local File Saves Scenario
* fix: Give Atomic Write Temp Files a Fixed-Length Name So Long Targets Still Fit
* test: Send Image Dimensions and Read the Message Array in the Local Saves Scenarios
* feat: Add Lia's Behavior Engine
A framework-free engine that plays Lia's actions step by step, moves her along a platform, and lets her choose her own activities. An attention budget keeps her quiet while the user types and saves bigger routines for when they step away. The catalog holds feelings, speech, gestures, dances, travel, small routines and page reactions.
* fix: Let a Click Wake Lia From a Nap and Run One Animation Loop
* fix: Keep Lia Stopped When Stopped Mid-Frame and Snap Walks Under Reduced Motion
* fix: Wake Lia When Typing Interrupts a Nap and Keep Her Walks on the Current Platform
* test: Drive Lia's Engine on Real Animation Frames in a Browser
* fix: Keep One Animation Loop Across a Mid-Frame Restart and Place Lia Before Her First Move
* fix: Play Every Step of an Action the Host Chains From onAction
* test: Require Lia's Reduced-Motion Chooser to Pick Something
* fix: Keep Lia Free to Act Before the First Keystroke and Skip Pointer Walks Without a Pointer
* fix: Hold Lia's Step While She Has No Layout and Replace Actions Without a Gap
* fix: Keep the Walk of an Action Started When the Previous One Ends
* fix: Wake Lia From a Nap Played Above Reaction Priority
* fix: Pause Lia's Screen and Face Clocks Along With Her Step
* fix: Stop Lia's Own Clock While She Has No Layout and Ignore Empty Obstacles
* 🪜 feat: Light the Fold Path to the Hovered Activity Row
- Every fold that holds the hovered row lights its rail from its header down to that row; the innermost turns into the row with an elbow, so depth reads as the number of lit rails.
- One pointer listener on the outermost fold writes the path onto the rails directly (a data attribute and a length variable), coalesced to one frame: hovering repaints rails, never rows.
- Rows are found by the shared glyph slot every row line starts with, so no row component marks itself.
- The path clears over a rail (which shows its own collapse hover), on touch, on a press and when the pointer leaves.
* fix: Invalidate Fold Hover Paths and Reuse Glyph Lists
* fix: Scope Fold Paths to Agent Lanes and Register Subagent Glyphs
* fix: Re-Hit-Test Queued Fold Paths After Scroll
* fix: Clear Fold Paths After Ancestor Layout Shifts
---------
Co-authored-by: Lia <lia@librechat.ai>
* 🔭 feat: Recover Stale Chunks Without the Error Page and Ship Client Logs to RUM
Stale chunks: a tab left open across a deploy that opens a code-split panel
requests a hashed chunk the new deploy removed. Vite's preload handler hands
the failure to the stale-asset recovery, which reloads, but the import then
resolves to `undefined` and `React.lazy` throws a TypeError into the route
error boundary, so the error page flashes before the reload. Lazy imports now
go through `lazyWithRecovery`/`importWithRecovery`, which turn that result into
a `ChunkLoadError`; the route boundary recognizes chunk failures (and any error
while a recovery reload is underway), asks the page recovery once, and renders
a localized "Updating to the latest version…" status. When the loop guard
declines, the normal error page with its reload action shows instead. The
page recovery is now idempotent within a page, so concurrent callers join the
in-flight reload rather than tripping the guard.
Client logs: with RUM in proxy mode, the client logger's warn/error calls,
error-boundary catches and stale-asset recovery events are exported as OTLP
log records through the authenticated `/api/rum/v1/logs` proxy. Records carry
allowlisted, scrubbed fields only, follow RUM session sampling, dedupe repeats
with a count, are budgeted per minute and per page, batch with backoff, flush
with keepalive on page hide, and stop after persistent failures. The proxy
now refuses non-OTLP content types and applies a per-user rate limit.
`RUM_CLIENT_LOGS=false` turns the export off.
* 🔒 fix: Keep Client Logs Opt-In and Drop Application Error Messages
- RUM_CLIENT_LOGS now defaults to off, like console capture, so enabling
RUM proxy mode never starts a new log stream on its own.
- Error messages are exported only for engine, browser and library
generated types (TypeError, SyntaxError, DOMException, AxiosError,
chunk failures); application errors keep type, status and stack only,
since their messages can echo prompt or response text. All quoted
fragments are now redacted.
- Batches are measured in encoded UTF-8 bytes of the exact request body,
and page hide drains every queued record that fits the keepalive quota.
- Queued stale-asset events are delivered as soon as the log exporter
starts, independent of the RUM SDK loading, and marked so they are
never logged twice.
* 🔒 fix: Export Only Known Generated Error Messages and Ack Queued Events
- Error messages are exported only when the whole text matches a known
engine, browser or library message shape (property access on
undefined, "x is not a function", fetch/abort/axios status, chunk and
CSS preload failures). The error class alone no longer qualifies, since
any code can throw a TypeError carrying arbitrary text.
- Queued stale-asset events are marked logged only after the collector
accepts the record carrying them, so an undelivered event replays on the
next page; in-flight events are skipped by the SDK path.
- A fractional RUM_PROXY_USER_MAX below one falls back to the default
instead of flooring to a limit of zero.
* 🔒 fix: Hold Unacknowledged Asset Events, Re-send In-Flight Logs on Hide
- The RUM SDK flush no longer drops queued stale-asset events whose client
log record is still unacknowledged: they stay queued and persisted,
flagged so their SDK action is not repeated, and leave the queue once
the collector accepts the record.
- Page hide re-sends the records of an unanswered regular request with
keepalive; each record belongs to the latest request carrying it, so a
late response to the original request neither marks nor requeues it.
- Client-log export stops when the authenticated layout unmounts.
- The proxy refuses /v1/logs while client logs, console capture and replay
are all off, so turning RUM_CLIENT_LOGS off also stops tabs that still
hold an older startup config.
* 🔒 fix: Export Only Complete Stack Frames, Never the Message Header
Stack reduction now strips the V8 `name: message` header (including every
line of a multi-line message) and keeps only lines with a complete V8,
Gecko or WebKit frame shape that ends in a URL or absolute path with a
line number. A message ending in a source-position-like suffix can no
longer pass as a frame.
* fix: centralize RUM delivery and asset recovery lifecycle
* fix: preserve RUM page lifetime and collector acknowledgements
* fix: retain page transport quotas and recover functional chunks
* fix: scope RUM client sessions to authenticated identity
---------
Co-authored-by: Lia <lia@librechat.ai>
- Running chats ring their avatar instead of a trailing spinner, so the row menu stays reachable mid-run.
- A reply that lands unseen lifts its chat into a Finished group under Running until it is opened; chats marked unread by hand keep their date.
- Running and Finished headings show their counts and announce them.
- Project chats now list under Chats with their folder badge; a persisted Show project chats toggle in the chat list menu restores the project-only view.
- Badges read project names from the loaded project list before fetching one by id.
- Spinner takes a strokeWidth for the thin ring.
* feat: Add Lia's Pixel Art Renderer
Lia is a small CRT monitor mascot with a face on its screen. This adds the canvas renderer: the body, feet and arm poses, body poses, 62 expressions built from eyes, mouths, brows and extras, and the built-in screens for booting, sending and crashing. Nothing renders it yet.
* test: Assert Each Built-In Lia Screen Draws Its Own Picture
* test: Include the Cached Face Image in Lia's Drawing Signatures
* fix: Clip Lia's Glitch Strips to Her Screen and End the Hide Pose Fully Hidden
* test: Check Lia's Pixel Art in a Real Browser Canvas
* test: Share the Page That Serves Lia's Engine to Browser Specs
* test: Bound-Check Where Lia's Images Land, Not Just Her Rectangles
* test: Check Lia's Face Bounds for Every Gaze Direction
* fix: Drop Lia's Sunglasses In From the Top Row of Her Screen
* test: Check Where Lia's Glitch Strips Are Copied From, Not Only Where They Land
* perf: Batch Prompt Group Permissions in the Sidebar
* perf: Skip the Prompt Permission Batch When the List Is Empty
Add scenario coverage for batched prompt row permissions.
* test: Retry Opening Prompt Row Menus Until Their Items Render
* fix: Warn When interface.webSearch Blocks Native Search in Model Specs
interface.webSearch syncs the WEB_SEARCH permission, which also gates
provider-native search since #15875. A deployment that set it to false to
hide LibreChat's search tool silently lost native search on its model
specs. Startup now names the affected specs, describes the native-only
configuration, and notes that removing the key keeps the stored permission.
Related to #16673
* fix: Warn When a Stored Role Denies Native Search With interface.webSearch Unset
* perf: Trim Per-Token and Per-Render Work in Streaming and Lists
* test: Assert Rendered Diff Rows Alongside Render Counts
* refactor: Read the Active Sidebar Row Through the Existing Index Selector
Drops the new Recoil selector: conversationIdByIndex(0) already yields a primitive id, so rows still skip re-renders on every conversation write. The DiffView row test keeps the real cn behind a spy and derives the per-row cost from the first render.
* test: Cover the Sidebar Active Row Across Chat Switches and New Chat
The Settings dialog is a Headless UI panel at z-50, not an OGDialog, so it set no dialog depth and its Select lists kept their z-40 layer, opening invisibly behind the panel. A new DialogLayer counts it as one dialog level, so popovers inside it take the depth-aware z-index they get inside an OGDialog.
* feat: Size Roles for the Select List
The Select list drew a fixed max-h-96 and min-w-[8rem], the last hard-coded sizes among the ten shared primitives. They are now the listMaxHeight and listMinWidth appearance roles, defaulting to 24rem and 8rem. The ClickHouse theme sizes the list by its trigger and keeps the 24rem cap, since Click UI caps it only at the viewport's available height.
* test: Resize the Select List From a Reference Theme
* fix: persist approval provenance in the resume claim and publish the pre-claim paths from any unapplied abort
The claim CAS now records the provenance it replaces. An abort that lands
before the resumed provider crosses its start CAS publishes those paths, so
schedule deletion, account deletion and user stops no longer label
model-authored chunks as user-submitted.
* test: add approval provenance scenario on the shared approval e2e helpers
* test: seed an earlier started segment before the unapplied abort case
* fix: label abort provenance by the published content and persist the same selection
A path the approval claim added is user-authored only once its tool call
carries output in the abort content, so an abort between the provider
start CAS and the resumed tool keeps the pre-claim labels, and an ask
answer stamped by the abort route keeps its own. AbortResult.jobData
carries the selection so the persisted row matches the final event.
* fix: keep claimed non-tool provenance paths on an abort
Only tool-call paths wait for their resumed call to complete; a steer the
claim already found in the seed content needs no decision to apply.
* fix: count a completed tool call with an empty output as applied in abort provenance
* fix: check abort provenance on the unfiltered content and remap it onto the published parts
* test: type the abort provenance overrides with the job store field names
* test: assert the preserved paths when an unanswered ask aborts
* refactor: Move Select and Menu Pointer Events to Classes
DropdownPopup and SelectContent re-enabled pointer events inside modal dialogs through inline style, which kept a no-inline-styles suppression on both primitives. Both now apply pointer-events-auto as a class and keep only the runtime z-index inline. The Select item indicator box takes the icon size role instead of a fixed h-3.5 w-3.5.
* test: Cover Popover Picks Inside Modal Dialogs
* test: Open Settings From the Drawer and Tag Indicator Scenarios
* test: Let Each Verify Project Set the Color Mode
* test: Measure the Select Indicator After the List Settles
* test: Drop the Settings Select Pick That Never Reached a Dialog
* fix: Read Theme Roles for the Last Artifact and Agent Chip Colours
The artifact mobile backdrop now reads surface-overlay like the dialog scrims, the refresh overlay over the rendered preview reads surface-media-overlay, and the agent builder's provider chip reads surface-primary and text-primary like the conversation icon chip. Monaco's built-in vs-dark canvas joins the third-party surfaces allowlist entry, and the allowlist no longer points at a closed sweep issue.
* test: Cover Theme Roles on the Provider Chip and Artifact Overlays
* feat: Remember Tool Approvals Per Conversation
Adds an opt-in "Always allow" choice to the tool approval card. When
endpoints.agents.toolApproval.allowAlways is true, the server marks eligible
paused calls with allow_always; approving with scope "session" stores that
exact tool name on the conversation, and later runs in the same conversation
fold the stored names into the policy as exact-name allow entries.
The server enforces every step: the resume route rejects a session scope the
pause did not offer, eligibility is rechecked against the live policy before
storing, the list is written only through an owner-scoped bounded method, and
generic saves and imports cannot set or clear it. Admin deny and ask rules and
programmatic hooks still win, stored names are ignored under dontAsk or when
the flag is off, and native code tools stay under the code approval picker.
The flag defaults to false, so existing deployments keep prompting.
* fix: Share the Effective Approval Policy and Persist Allows After Resume Fences
Offering, resume re-check, scheduled admission and createRun now read one
policy from buildEffectiveToolApprovalPolicy: endpoint rules healed against
MCP alias spellings, then the conversation's remembered tools. A call held by
a healed ask rule is no longer offered "Always allow", and a scheduled fire
whose known tools are all remembered is no longer rejected as pause capable.
The remembered-tools cap and name length cap move to
toolApproval.allowAlwaysMaxTools and allowAlwaysMaxToolNameLength (defaults
64 and 256). The card stops offering the choice for new tools once the cap is
reached instead of silently approving once.
The resume route stores remembered tools only after the schedule and project
context fences pass; a storage failure still approves the call once.
* fix: Offer Always Allow Only When It Will Hold
Offer allow_always only when storing the name would auto-approve the next
identical call on the run's own path: every MCP spelling of the tool passes
the healed static policy and no programmatic or plugin approval hook can
apply to it (the pause payload does not record which hook asked).
Remembered names now expand to every alias spelling of the same tool, and a
deny or ask on any spelling keeps the tool ineligible. A table-driven spec
walks the invariant through the real hook wiring.
* fix: Recheck Approval Hooks Before Remembering a Resumed Approval
The resume-time eligibility recheck now applies the same programmatic and
plugin PreToolUse hook check as marking, with a hook context built from the
resume request and the live plugin hook source. A hook registered after the
pause turns the choice into a one-time approval: nothing is stored and the
resume continues.
Document that toolApproval.allowAlways should be enabled only once every
replica supports it, since older replicas ignore the choice.
* fix: Judge Always Allow Offers Against the Run's Live Aliases and Active Cap
* fix: Charge Only New Tool Names Against the Remembered Approval Cap
* fix: Recheck Remembered Approvals Against the Paused Run's Aliases
* chore: Sort Imports in Agent Run After Rebase
* ✅ feat: Default Machine Selection and Linked-Worktree Lanes On
Per-chat machine choice from an agent's saved allowlist and linked-worktree
lane routing were both opt-in, so neither worked until a deployment found and
set its flag. Both are now on unless set to false: machine choice still only
applies to agents with a saved allowlist, and lanes still require a worker
that advertises git_linked_worktree. One helper per flag in data-provider
decides the default for every server reader and the advertised client config.
* feat: Advertise the Code Environment Decision Protocol by Default
Per-chat machine choice needs the conversation decision protocol, which the
client requires before offering allowlisted machines, but the protocol was
only advertised when CODE_ENVIRONMENT_DECISION_VERSION=1. With selection on
by default, authors could save an allowlist the composer never offered.
An unset or blank value now advertises protocol v1; any other value, such as
0, keeps the legacy-safe path.
* fix: Turn Machine Choice Off With the Decision Protocol Opt-Out
CODE_ENVIRONMENT_DECISION_VERSION=0 stopped advertising the protocol but
routing still accepted a non-default machine, so a cached tab or a direct
client could persist a choice during a mixed-version rollout. Machine choice
is recorded through that protocol, so isCodeEnvironmentSelectionEnabled now
requires both, for routing and for the advertised endpoints config. The
protocol resolver moves to code/protocol.ts (re-exported from code/config)
so execution and endpoints can use it without an import cycle.
* style: Format checkout routing regression cases
---------
Co-authored-by: Lia <lia@librechat.ai>
* feat: Give the Mobile Drawer Edge a Role and Move the Last Page Colours Onto Roles
The mobile drawer drew its edge with dark-only border utilities, the web source caption with gray-900 and white, the prompt panel's mobile backdrop with black at 20%, and the Insights agent picker popover with a dark-only override, so no theme could reach them.
drawer-edge paints the drawer's trailing edge: the drawer's own fill in light, where the scrim already separates it, and border-xheavy in dark, so dark mode keeps today's edge; a theme that sets only those two roles keeps the edge its mode drew. The source caption reads the media overlay roles, the prompt panel backdrop takes the page scrim the mobile drawer uses, and MultiSelect gains a widget surface that the Insights picker uses in place of its dark override.
* test: Pin the Drawer Edge Role in Both Modes and Under a Theme
* test: Write the Drawer Edge Scenario Tags Out Whole
* fix: Type the Drawer Edge Fallback So the Theme Resolver Stays Checkable
resolveTheme spreads every role fallback into one object literal, and each untyped conditional spread doubles the union the checker builds. One more pushed tsc for packages/client past CI's 6 GB heap. Typing the fallback as Partial<IThemeRGB> keeps it from adding to that union; a full check now peaks at about 4 GB.
* feat: Edit Projects in a Dialog and Match the Landing Background
* fix: No Fill on the Edit Project Description Field
* feat: Choose Project Files in the Your Files Dialog
* fix: Filtered Empty State and a Page Retry in the Project File Picker
* test: Scenarios for Project Dialogs and the File Picker
* fix: Retry the Failed Page or the Listed Files, Whichever Failed
* fix: Forget a Picker Page Failure Once the Query Recovers
* fix: Show the Picker Loading While a Further Page Loads
* test: Follow the Picker's Your Files Markup and Its Focus Return
* fix: Apply a Picker Page Result Only to the Query That Requested It
* fix: Hold the Edit Project Dialog Through a Save and Keep Page Failures per Search
* test: Match the Visible Rename Failure Toast
* fix: Refuse to Dismiss Edit Project From the Moment a Save Is Submitted
* fix: Announce the File Grid Result Count to Screen Readers
* fix: No Pressed Fill on the Thoughts Header
* fix: Even Thoughts Padding and Show the Floating Bar Only When the Header Is Off Screen
* fix: Re-measure the Thoughts Header on Every Visibility Notification
* test: Scenarios for the Thoughts Floating Bar
* test: Keep the Thoughts Scenarios to the Floating Bar
* feat: Refine the Ask Question Surfaces and Drop the Stop Shortcut Hint
* feat: Smooth Step Changes in Batched Questions With Numbered Option Rows
* fix: Swap Batched Question Answers Instantly While the Height Eases
* fix: Keep the Batch Card's Place in the Thread and the Answer Placeholder While Locked
* feat: Instant Option Row Hover and Typed Answers Replace Choices
* style: Fade Option Rows Slowly When They Lock
* feat: Swap Batched Questions Instantly While Only the Height Eases
* fix: Ease the Batch Status Lines and Keep Question Controls Unselectable
* fix: Stop the Batch Answer Area From Showing a Scrollbar
* fix: Keep the Locked Composer Placeholder Out of Text Selection
* feat: Check Mark on a Chosen Single-Select Answer
* feat: Turn the Question Move Chevron During the Composer and Chat Morph
* fix: Ease Only the Batch Card's Outer Height When Switching Questions
* fix: Pin the Batch Header and Buttons to the Card Edges While Its Height Eases
* fix: Confirm Batch Answers on Enter, Bound Long Prompts, and Keep the Form on Jotai
* test: Scenarios for Batched Ask Question Answers
* test: Pause the Fake Model on a Real Question Batch for the Ask Scenarios
* test: Run the Ask Scenarios in a Desktop Context
* fix: Cap the Batch Question Popover to the Viewport
* fix: Scroll the Capped Batch Card, Guard IME Enter, and Keep Focus on the Next Question
* perf: Virtualize the My Files Table
* fix: Even Bottom Spacing Under the Compact Context Button
* feat: Overlay Tool Output Copy Actions and Show Full Output
* fix: Scroll the Virtualized My Files Table Itself and Expose Row Positions
* test: Scenarios for Tool Output Copy Reveal and Full Output
* test: Tab Through the Output Box to Reach the Copy Action
* fix: Open Terminal Output on Its Last Lines
* fix: Follow Streamed Terminal Output Only While the Reader Is at the Bottom
* feat: Size roles for the shared primitives
Button's xs, lg and icon squares, the large title input, the checkbox, menu, select and dialog icons and the switch's hit area read new size roles whose defaults are the fixed sizes they drew, and the menu row corner reads radiusLg. The ClickHouse theme takes Click UI's single button size, its small icon button and its checkbox and icon sizes. A spec pins the strict count of theme-driven primitives at eight of ten and what the other two still hard-code.
* fix: Hold the switch hit area to the target minimum in width and scan stylesheet colors
* test: Read every raw palette hue in the primitive guard
* test: Exempt only theme role fallbacks in the primitive guard
* feat: Tab minimum width role and a wider fixed-size guard
The primitive guard now also reads absolute arbitrary sizes, ring-offset palettes and 4 and 8 digit hex colors. The Tabs trigger's 100px minimum becomes the tabMinWidth role, which the ClickHouse theme sets to 0 so tabs size by their label as in Click UI.
* fix: Keep app icon buttons and their companions on the button size role
The passkey rename input keeps the field height, and the agent builder panel headers size their back button and balancing spacer from size-theme-button, so a theme that changes the button height keeps those rows aligned.
* fix: Size menu glyphs from the icon role and floor touch targets at the minimum target size
* fix: Let menu glyphs fill their slot and keep the dialog close target at the minimum size
* test: Probe the menu glyph inside a flex row, as DropdownPopup renders it
* fix: Hold icon button squares to the minimum target size
* fix: Bound the icon and checkbox size roles to the room their layouts leave
iconSize takes 0.75 to 1.25rem, iconSizeLg 1 to 2rem and checkboxSize 1 to 1.5rem, so a theme can retune them without shrinking a checkbox below the box it was or pushing an icon past the inset it sits in.
* fix: Hold the icon-only Dropdown and header spacers to the minimum target size
* fix: Floor the button size roles at the target minimum and let callers replace the control height
* test: Move the unknown appearance markers off the new title field height
* fix: Size the compact step, the exported Dialog and the combobox icons from roles
The Button and Dropdown compact recipes read a buttonHeightCompact role, the exported Dialog's action buttons and close glyph read buttonHeight and a bounded iconSizeMd, Combobox icons follow iconSize, and the checkbox callers drop their fixed sizes so checkboxSize reaches them. minTargetSize may no longer exceed buttonHeight or fieldHeight, so the target floor never pulls icon buttons out of line with the fields beside them.
* fix: Size the collapsed Combobox square from the control height role
* fix: Hold every Button size and the collapsed Combobox to the target minimum
* fix: Let section header buttons keep their own text height
* test: Treat a zero size as a reset in the primitive guard
* fix: Enforce the target size at the roles instead of on every Button
A minimum height on every Button size grew callers that draw a smaller control on purpose, such as the sortable table header (h-auto) and the 20px artifact and attachment row actions. The floors come off the Button sizes and icon squares; a theme that sets minTargetSize may instead not size any button or field below it, and the new Button size roles keep their 24px floor.
* fix: Check the control and large field heights against the target floor
* fix: Hold the target floor at a fixed 24px and floor the large field height
* fix: Keep the passkey rename field on the button height and drop the fixed MCP checkbox size
* fix: Size the Combobox check glyph from the icon role and scope the README floor claim
* 🪢 feat: Collapse Activity Folds From Their Rails
Hovering an open fold's rail lights the line and swaps the header's glyph for a collapse knob; clicking the rail collapses that fold and brings its header back into view.
* fix: Stabilize Fold Rail Hover and Header Reveal
* fix: Reserve the Chat Toolbar When Revealing Folds
---------
Co-authored-by: Lia <lia@librechat.ai>
* feat: enforce required two-factor authentication
Require local and LDAP accounts to enroll in TOTP before they can use the
app when ENFORCE_TWO_FACTOR_AUTHENTICATION is set. Sign-in, refresh, bearer
verification, optional share auth and image authorization all route an
unenrolled account into a staged setup flow, and every bearer credential
minted before enrollment or a password reset is retired.
Password reset retirement uses the existing credentialsChangedAt stamp, and
commitPasswordReset clears any staged enrollment in the same write. Passkey
sign-in follows the same enrollment gate as password sign-in.
* test: cover passkey sign-in handing off to required enrollment
* refactor: keep Mongoose user types out of two-factor auth contracts
* fix: withdraw a minted session when its retirement recheck fails
* fix: hold Agent API keys and the reset CLI to the required two-factor policy
* fix: adopt a setup token handed off after the setup screen mounted
* fix: move every tab that receives an enrollment hand-off into setup
* fix: read the enrollment gate's retirement cutoff in system scope
* fix: clear minted session cookies before the fallible session deletion
* fix: adopt a setup token persisted before the setup screen subscribed
* feat: Click UI spacing and mono stack for the ClickHouse theme
The ClickHouse theme sets spaceCompact and spaceNormal from Click UI's spaces.2 and spaces.3 and takes Click UI's mono stack verbatim. The drift guard cites all nine Click UI spaces, each drawn by a spacing role or an equal Tailwind step, and the mono family now compares in full.
* test: Pin the Click UI spaces against the compiled steps and the ClickHouse compact spacing
* feat: Field fill and ink theme roles
Fields ink their value in a new field-text role, which follows text-primary, and a theme whose fieldFillStyle appearance role is fill paints them in a new field-fill role, which follows surface-primary. The default transparent style keeps every field clear, read from the nearest themed root through a style-query variant. The ClickHouse theme fills and inks fields with Click UI's field tokens, which empties the not-expressible list.
* fix: Ink the TimePicker value in the field role and type the field colors
* fix: Keep field ink and state fills over the field fill
Field-variant Dropdown triggers no longer swap to the primary ink on hover, and the field fill variant carries a single class's weight so hover, open and disabled fills paint over it.
* test: Count the field roles beside the media overlay roles
* fix: Type the color fallbacks as one object and keep a disabled field's fill under the pointer
resolveTheme spread about twenty fallbacks typed as role-or-empty unions; each union spread doubled the type checker's work, and the field roles pushed the client typecheck past the CI heap. Typing them as IThemeRGB drops its memory from 3.3GB to 0.65GB. A fill theme with the default dim disabled style also keeps a disabled field's fill under the pointer.
* 💬 feat: Conversation Starters in Agent Builder
* fix: Preserve untouched agent starters and scope drafts to their agent
An unrelated builder save no longer rewrites stored starters: the field is
sent only when the list changed, so API-set lists past the builder cap or
with padding survive. The draft input is keyed by agent id so unsent text
does not follow the user to a new or different agent, and each delete
control now sits on its starter's row. Adds Playwright scenarios for the
builder-to-landing flow, preservation, clearing and draft scoping.
* fix: Keep starter drafts in form state and show saved starters after save
The unsent starter draft moves into react-hook-form as a builder-only
field, so it survives switching to the Model or Advanced panel and is
still cleared by the reset that loads another agent. Enter no longer adds
a starter while an IME composition is being committed. After create or
update, the starters field is reset to the stored list, so trimmed or
dropped rows do not linger and keep the add input disabled.
* fix: Keep starter edits made during a save and drop the UI-only length cap
Sync the stored starters back into the form only when the rows still hold what the save sent for the same agent, so edits typed while the request was in flight, or another agent selected meanwhile, are not overwritten. Remove the 64-character maxLength: the agent API and schema accept any length and the landing page already clamps display.
* fix: Merge a finished agent save only into the agent it was for
* test: Switch agents in place while the first save is held
* 🦎 fix: Restore Theme Contrast in Composer and Messages
* Match Sticky Activity Headers to Their Hosting Surface
---------
Co-authored-by: Lia <lia@librechat.ai>