* ✒️ fix: Use Full-Width Punctuation in the Chinese README and Describe Each Sync Run
The README sync translates each section separately, so the model mixed
ASCII ',:!' and full-width ',:!' from one section to the next. A
deterministic pass now converts ASCII punctuation beside Chinese text to
full-width, in fresh and cached translations, leaving code, URLs, raw HTML
and text copied verbatim from the source alone.
The sync pull request also carried a fixed description that always named
Chinese and Russian and claimed cached reuse. The script now writes the
description from the run: which languages were regenerated and how many
sections were translated versus reused.
* ✒️ fix: Convert Lone Label Colons and Keep Character References in README Punctuation
A colon after a bold label sits in its own text node, and the English
source contains ':' too, so it counted as copied text and stayed ASCII on
nine headings. Copied-text protection now applies only to nodes with
letters. Character references and backslash escapes are kept whole, so
the ';' of ' ' is never turned into a full-width mark.
Four classes the chat package's components carry were styled only by the app's
stylesheet. The gutter spacer and the Azure file-source chip, which only the package
uses, move to its stylesheet; the hidden scrollbar, which the app's own lists use too,
moves to the client package's. The app's rule for the reserved gutter repeated a
utility Tailwind already generates and is dropped.
The chat components are drawn with Tailwind utilities, so an app had to run Tailwind
with the client package's preset to see them styled. `@librechat/chat/standalone.css`
is that compile done ahead of time: the utilities the two packages name, the tokens,
`@librechat/client/style.css` and `@librechat/chat/style.css` in one file.
Every rule that paints applies only inside an element with the `librechat` class, at
no added specificity, and the whole sheet sits in the `librechat` cascade layer, so
it resets and restyles nothing of the page around it and the app's own styles win.
The step that writes it fails when a class the packages use compiles differently from
the published preset than in LibreChat's own stylesheet.
needsTranslation counted the letters of scheme-less link labels such as
github.com/LibreChat-AI/rag-api as prose, so the RAG API resources item was
sent for translation. The model correctly echoed it and validation rejected
the echo as untranslated, failing the zh run. Strip bare domains, paths and
file names from prose words and keep RAG in English.
Select mutants from changed lines and ignore logging-only mutants; rank survivors by risk topic from whole-word identifier matches.
Publish one quality report comment, edited in place, with the verdict, change risk (coverage gaps and CRAP refactor hints) and mutation survivors grouped by line.
Bundle the report data into one quality-report artifact; shard artifacts are internal.
Map api/ source aliases into coverage evidence and enforce a per-shard execution budget.
Move Redis cluster runtime files out of the checkout.
* fix: Qualify Docker Hub Image Names in Compose Files and Dockerfiles
Podman has no default registry, so a short image name such as mongo:8.0.20
or pgvector/pgvector:0.8.0-pg15-trixie fails with "short-name did not
resolve to an alias" unless the host configures unqualified-search
registries. Name docker.io on every third-party image in the compose files,
the override example and the Dockerfiles, using docker.io/library/ for
official images. Tags and digests are unchanged.
scripts/images.test.mjs fails on any image a compose file or Dockerfile
pulls without a registry host, and Static Checks runs it when one of those
files changes.
* test: Harden the image name scanner for indented comments and variable defaults
Commented image lines are matched at any indentation, a variable with an empty default or more than one interpolation is not guessed, and a Dockerfile FROM with a default is judged by that default, as in compose files.
* fix: Qualify the Channel Gateway and Mongo Replica Images
The channel compose stack landed on dev with short names, which the image name test now rejects.
On 2026-11-11 the artifact service answered every request with an HTML
page. In Playwright run 43092661470 eight memory shards failed in
"Upload Playwright HTML report" after retrying for 9 to 10.5 minutes;
in six of them every test had passed.
Uploads that no job downloads (Playwright reports, traces and
screenshots, the Lighthouse report, the advisory quality reports) are
now `continue-on-error` with a three minute step timeout, so a failed
upload stays out of the job result and a stalled one cannot run the job
into its own timeout. The Jest result uploads were already
`continue-on-error` and gain the same bound. Build outputs and mutation
shards that a later job downloads stay fatal.
merge-gate.test.mjs holds the gated workflows to that split, and
workflow.test.mts holds Change Quality to it.
* 🦠 chore: Upgrade Node.js and Undici to Security Releases
* test: Wait for Restored Composer Readiness and Reuse Wrapping Config
---------
Co-authored-by: Lia <lia@librechat.ai>
* 🍃 ci: Provision the mongod Binary Before Tests Start
mongodb-memory-server downloads its ~122 MB mongod the first time a test
starts a server, inside a 15 s beforeAll. Only backend-review.yml cached
~/.cache/mongodb-binaries (the same step pasted four times), and a cache
alone still leaves the download inside the first hook on a miss.
Integration Tests downloaded on every run: 6 failures in 274 runs with
"Exceeded timeout of 15000 ms for a hook" in secrets.integration.spec.ts,
followed by "spawn ETXTBSY" in the suites that started mongod while the
timed-out download was still writing it.
Add .github/actions/mongodb-binary: restore the cache with the existing
key scheme, ask the installed mongodb-memory-server for the binary it
wants (MongoBinary.getPath), make sure that binary sits in the home cache
every working directory resolves, run it once, and save the cache right
away. The step fails the job when no runnable binary can be put in place.
Use it in every job that starts mongodb-memory-server, after dependencies
are installed and before tests, and add the action to the path filters of
the workflows that list their own file.
* 🧪 test: Cover the mongod Provisioning Script Without the Network
Run the real script against a stand-in resolver that keeps the properties it relies on: home cache first, download when missing, and a memoised path until the cache is cleared. Integration Tests runs the suite before it uses the action.
* 🧪 test: Run mongod Provisioning Against the Real Resolver
The suite replaced mongodb-memory-server with a hand-written stand-in, so
it checked the script against a description of the resolver rather than the
installed one. It now runs the script against the real library and
replaces only the network: MONGOMS_DOWNLOAD_MIRROR points at a local
server that serves an archive whose bin/mongod is a shell script, with the
.md5 the library verifies it against.
Recovery also no longer charges a broken copy that was already on disk to
the download: with a broken binary in both the home cache and the root
node_modules/.cache, the first attempt removed one, the retry met the
other, and the step failed without ever downloading. Existing copies are
now discarded one at a time and the download keeps its own two attempts.
* 🧪 test: Reach the Exit-Status Check Behind the Library's System Binary Probe
A system binary that prints nothing is rejected by the library's own version probe, so the case never reached this script's check or the rule that a file the job named is not deleted. Add one that answers the probe and exits non-zero.
* ci: report mutation and change risk for edited functions
* ci: show function mutation progress in logs
* fix: Exclude Shared Database Test Suites from Quality Targets
---------
Co-authored-by: Lia <lia@librechat.ai>
* 🔒 chore: Patch minimatch and qs advisories in nested dev dependencies
* fix: Align Nodemon Dependency Regression With minimatch 11
---------
Co-authored-by: Lia <lia@librechat.ai>
* 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
* 🥐 chore: Standardize Bun-First Workspace Typechecks
* fix: Preserve Bun 1.4.3 Checker Compatibility
* chore: Pin Bun 1.4.4 for Local and CI Typechecks
---------
Co-authored-by: Lia <lia@librechat.ai>
* feat: Reject Module-Load Use of Other Packages in the Chat Package
App specs mock whole packages (@librechat/client, librechat-data-provider), so a package module that calls into one or reads a member of one while it loads throws before any test runs. chat/boundary now reports a call, new, tagged template or member read through an external import at module scope in packages/chat/src outside specs; React and Jotai are exempt through a loadSafe option.
* fix: Count Immediately Invoked Functions and Computed Field Keys as Module Load
* fix: See Through Erased TypeScript Wrappers in the Module-Load Check
* fix: Count Destructuring, Spreads and Wrapped IIFEs as Module-Load Reads
* refactor: Judge Every Load-Time Reference to an External Import
The check now walks each external import's references once and reports any that runs on load outside an inert position, instead of listing the node types that read an import. Class heritage, in, instanceof and iteration are reported with no new visitor.
* fix: Follow Branches to Their Consumer and Skip Erased Heritage Types
* fix: Count Constructed Classes and Destructuring Assignments as Module Load
* fix: Count Constructors of Constructed Classes and Branch-Fed IIFEs as Module Load
* fix: Follow Const Aliases of External Imports in the Module-Load Check
* fix: Find Aliases Behind Wrappers and Branches
* fix: Track require Bindings, Skip Writes and Defer Generator Bodies in the Module-Load Check
* fix: Follow Assignment Aliases of External Imports
* fix: Collect require Bindings From Exported Declarations
* refactor: Cover Module-Load Failures With a Mocked-Dependency Load Spec
A packages/chat spec now loads the index, react and components entries with every package the sources import (React and Jotai aside) mocked to a module whose exports are missing, the way an app spec's factory mock leaves it, and asserts nothing throws. That covers aliases, require, invoked functions and the rest at runtime, so chat/boundary keeps only the plain case: a call, new, tagged template or member read through a direct import binding at module scope.
* chore: Retest Against Current Dev
* fix: Exempt Spec Support Files and Node Built-ins From the Module-Load Check
* ci: Add README Translation Sync Workflow
* ci: Pin create-pull-request Action in README Sync
* ci: Check Translation Content and Attribute Text in README Sync
* ci: Harden README Translation Validation and Switcher
* ci: Validate Protected Tokens in README Translations
* ci: Keep Link Order and Fence Boundaries in README Translation
* ci: Validate README Translations Against the Markdown Tree
* ci: Check Short Prose and Link Metadata in README Translation
* ci: Handle Brand Suffixes, Titles and Table Alignment in README Validation
* ci: Preserve Emoji, Image Alt and Raw Code in README Validation
* ci: Stop Rejecting Faithful Translations That Keep Language Names
* ci: Refresh Switchers in Unselected README Translations
* ci: Compare Comment Contents and Deduplicate Pending README Sections
* ci: Revalidate Cached README Translations and Resolve Reference Links
* ci: Keep Code in Raw HTML Blocks and Accept Full-Form Reference Translations
* ci: Read Alt Text of Reference-Style README Images
* ci: Test the README Translation Helpers on Pull Requests
* ci: Keep Reference Image Alt Text and Translate Definition Titles
* ci: Resolve README Reference Definitions Before Classifying Prose
* ci: Resolve README Footnotes When Validating Chunks
* ci: Point README Fragment Links at Translated Heading Anchors
Same-document links kept the English heading slug, which no longer exists once GitHub derives anchors from the translated heading text. Assembly now rewrites #fragment links in Markdown links, definitions and raw HTML hrefs to the slug of the heading at the same position, using github-slugger.
Closesberry-13/LibreChat#384
* fix: Close Gaps in the css-colors Triplet Check and the Disabled-Recipe Rule
The triplet check now reads angle channels, and the disabled-recipe rule accepts spelled recipes under the same or fewer enclosing variants, resolves cva and constant class strings, and handles spread strings, per-dim primitive coverage and implied selectors.
* fix: Read Recipe Markers Anywhere in the Variant Stack and Keep Object Spreads
* test: Cover Spelled-Out Disabled Recipes in the Design Lint Scenario
* fix: Keep Stateful Arbitrary Disabled Selectors Unrestored and Order Arbitrary Enclosing Variants
* fix: Order Enclosing Variants Whenever an Arbitrary Selector Is Present
* fix: Pin the Disabled Marker Position When Arbitrary Variants Enclose a Dim
* fix: Order Child Selector Variants Like Arbitrary Ones
* fix: Skip Unplaced Disabled Variants and Read Math Functions by Token
The disabled-recipe rule now skips utilities under arbitrary variants it cannot place instead of guessing how a recipe orders against them, and unwraps TypeScript assertions on spread and class-map recipes. css-colors classifies any innermost math function by its tokens, so rounding strategies and constants no longer hide an angle-led triplet.
* fix: Read Any Fixed Math Function as a css-colors Channel
A math function over numbers and angles is a fixed channel in any position, so unit cancellation (calc(90deg / 1deg)) needs no unit algebra, and trigonometric functions and sign are fixed whatever their arguments (atan2(1px, 1px), sign(90deg)).
* fix: Unwrap Constant Class Strings and Honor Class-Map Overrides
A const initializer under as const or satisfies is read like a plain string, and a class-map recipe entry no longer counts when a later spread or the same key can overwrite it.
* fix: Keep Angle Math Results and Disjoint Spreads Out of Overrides
An angle-valued math result stays an angle, so it reads only as a leading hue, and a later object-literal spread invalidates a class-map recipe only when it sets the same key.
* fix: Place Valued data-disabled Self Selectors in disabled-recipe
* test: Spec the First-Sentence Diagnostic Comparison in the Suppression Runner
* test: Copy the Diagnostics Module into the Suppression Spec Synthetic Roots
* test: Copy the Diagnostic Comparison Spec into the Suppression Synthetic Roots
* refactor: Move text-like message parts into @librechat/chat
Text, EmptyText, CollapsibleText, Summary and AgentUpdate move into the package's components entry with their unit specs and read the app only through MessagePartsHost, which gains renderMarkdown, useSmoothStreaming, useAgent and renderAgentIcon. The app's markdown and agent-icon renderers register from the Parts barrel, so the host module keeps its import graph.
The design-suppression runner compares a moved file's diagnostics by their first sentence: the remedy that follows names app-only compositions for client paths, so the same violation read as new after a move.
* test: Cover text-like parts rendered from @librechat/chat in the browser
* ci: Type-Check Workspaces with bun check
Make every workspace tsconfig valid under TypeScript 7 semantics while
staying clean on the installed tsc 5.9: explicit types arrays (TS 7 no
longer auto-includes node_modules/@types), es2017 target for
data-provider, rootDir for api specs that import client contracts, and
noUncheckedSideEffectImports off for the CSS and matchMedia mock imports.
Fix the four client type errors newer DOM and Intl libs expose, and drop
the fetch.preconnect copy in useRum that only existed to satisfy the
leaked @types/bun globals.
Switch the client typecheck script and the CI type-check steps to
bun check (Bun 1.4.3); tsc --noEmit stays available as typecheck:tsc.
* chore: Fall Back to tsc When bun check Is Unavailable
Add scripts/typecheck.mts, which runs bun check when the installed Bun
provides it and the repository's tsc otherwise, so contributors without
Bun can still type-check. The client typecheck script and the
static-checks TypeScript gate both resolve their checker through it,
keeping local runs on the same checker CI uses whenever Bun is present.
* ci: Type-Check the Chat Package Through the Shared Checker
* ci: Run the Type Check When Only the Shared Checker Changes
A change to scripts/typecheck.mts alone started neither frontend review
nor the static-checks TypeScript gate, so a broken resolver could merge
unexercised. Add it to the frontend-review triggers and to every
typecheck project's paths.
The suppression-baseline scenarios copy static-checks.mts into synthetic
roots; copy its new typecheck.mts import alongside i18n.mts so the runner
loads there. Add scenarios for the checker choice and its fallback.
* refactor: Judge chat imports on the resolved target with one boundary rule
scripts/eslint/chat.mjs replaces the import patterns and load selectors: every
specifier is normalized (extension, trailing slash, /index, package name)
before it is judged, across static imports, re-exports, import(), require(),
import-equals and import types, so any spelling of the /react or /components
entry or a UI package is rejected from core. A RuleTester table and a
table-driven scenario cover the spellings.
* fix: Anchor the chat boundary root to the config directory
* fix: Keep bare app paths and bare core entries behind the chat boundary
* fix: Treat aliased react paths in core as the /react entry
* feat: Scaffold the @librechat/chat package
Adds packages/chat with core, react and components entries, a tsdown build,
a node-environment jest config, turbo and root build wiring, import boundary
rules, design-lint scope, and core types for the chat transport, stream,
host and status. No code moves yet.
* test: Cover the @librechat/chat boundaries as scenarios
* fix: Run the chat suite in test:turbo and build it for the mock lane
test:turbo now selects @librechat/chat, the mock e2e job builds the package the
chat-package scenarios load, and the synthetic repository in the suppression
scenarios carries the packages/chat/src root lint:design:record names.
* chore: Build the chat package in frontend:ci too
* chore: Run the chat suite in test:all
* fix: Hold core TSX to the chat boundary and scan the package for cycles
* fix: Apply the chat import boundary to JavaScript sources
* fix: Keep nested core files off the components entry
* fix: Close the remaining chat package gates and fence aborts by generation
Blocks imports through the @librechat/frontend workspace name, adds the chat
sources to the i18n scan, the CSS color gate and the client Tailwind content,
and lets ChatAbortRequest carry the generation it means to stop.
* fix: Keep JSX out of the chat core and carry abort and reconnect outcomes
Rejects JSX under the core, copies the chat manifest before the Docker
install, keys the client app build caches on the chat sources, fences
reconnects by generation, and types the abort result the transport returns.
* test: Give the CSS gate's scratch tree the chat root it now scans
* fix: Close the remaining @librechat/chat gates and wiring
Rejects import() and require() across the package boundaries, holds chat
components to the literal-copy rule, compiles TSX in the package's jest
transform, builds the package in Frontend Unit Tests, requires its test job for
main promotion, adds it to the unused-dependency scan, and lists it wherever a
sibling workspace is listed: Dockerfile.multi, the docker smoke paths, the
remaining node_modules caches, the reinstall helper, the bun build chain and
AGENTS.md.
* fix: Tighten the chat boundaries and carry steering and Assistants aborts
Template-literal import() and require() and self-imports through the package
name are rejected, user-facing JSX attributes need localized text, the cycle
scan resolves self-imports, Dockerfile.multi builds the package for the client
stage, and the transport carries steer, cancelSteer, armSteer and the
Assistants abort key.
* feat: Match the chat transport and host contracts to the client's
The transport now reports settled and replaced starts, the stream's protocol
version and resumed flag, reconnect replay, generation status, paused-run
resume with approvals or answers, abort and steer protocol versions, and the
request error shape. The host config and auth carry what the client's
ChatSettings now supplies: rename-while-running, model specs, retention mode
and the user.
* fix: Keep lazy React-entry loads out of the core and type the Assistants stop
Relative import() and require() of the /react entry from core are rejected,
and an abortKey stop resolves to the terminal conversation and run messages the
Assistants route returns.
* fix: Fence start controls by protocol and close extension-bearing entry loads
Settled and replaced start results carry the protocol version, core loads of
the /react or /components entry with a file extension are rejected, and
test:packages:chat builds data-provider first.
* feat: Lint Disabled Dims That Compose No Disabled Recipe
* fix: Catch Bracketed Disabled Variants and Read Recipes From References
* fix: Skip Enabled-State Branches and False-Valued Disabled States
* fix: Read Full-Opacity Recipes, Primitive Recipes and Compound Conditions
* fix: Keep the Suppression Error Wording the Baseline Spec Reads
* test: Add a lint scenario for the disabled-recipe rule
* fix: Leave negated disabled selectors and conditions alone in the disabled-recipe rule
* feat: Judge disabled recipes per branch, by import and by the element they restore
* fix: Trust recipes only from the theme module and only through defaulted cva variants
* fix: Resolve namespaced recipes through their import
* fix: Read cva disabled variants, guarded recipes and trailing important in the disabled-recipe rule
* fix: Read variant dims a disabled condition picks and recipes behind the same ternary
* fix: Follow nested disabled guards and real cva defaults in the disabled-recipe rule
* fix: Trust recipes only through class helpers and string concatenation
* fix: Read cva compound variants only under compoundVariants and guard key lookups
* fix: Require the recipe that can win for the faded element in the disabled-recipe rule
* fix: Judge stacked disabled variants by their most distant element
* fix: Match recipe markers, read || polarity, compound arrays, constant class strings and helper bindings
* fix: Accept spelled recipes, default-imported primitives, inverted props and disabled-guarded recipes
* fix: Check every chosen dim, trusted helper sources, data-disabled, recipe markers and guard identity
* chore: Re-record the disabled-recipe backlog after rebasing onto dev
* fix: Read Math Function Channels in CSS Custom Property Triplets
* fix: Collapse Nested Numeric Math Before the Triplet Check
* fix: Read Exponents and Math Constants in Triplet Channels
* fix: Read round() Strategies in Triplet Math Channels
* refactor: Route Stylesheet Colours Through Theme Variables and Gate CSS Literals
* fix: Run the Colour Check Through Its Own Script
* fix: Read Numeric Fallbacks Inside Colour Function var() in the Colour Literal Check
workflowSelectsWhatItFilters() split .github/workflows/static-checks.yml
with $-anchored multiline patterns, so on a Windows checkout with
core.autocrlf the trailing \r kept every pattern from matching and the
Design-rule suppressions gate failed every commit.
Parse through workflowFilters(), which normalizes line endings first, and
check in-script that the CRLF rendering reads the same lists, so CI on an
LF checkout catches a parser that only reads LF.
* fix: ship the Inter, Roboto Mono and Inconsolata faces with the package
Move the woff2 files from client/public/fonts into packages/client/src/theme/fonts
and every @font-face rule (the app's Inter and Roboto Mono faces and
client/src/fonts.css) into theme/fonts.css, which tokens.css imports and the build
copies into dist with the files. Each url() names the file by a new
@librechat/client/fonts/* export: a relative path breaks under Vite with
@tailwindcss/postcss, because Vite inlines the import before Tailwind runs and
Tailwind reports every emitted declaration as coming from the root stylesheet.
The app loads the same files through the same import and still emits them to
assets/fonts with their licences, now read from the package; the $fonts alias is
gone. Inter and Roboto Mono gain their OFL texts beside Inconsolata's. The README's
consumer stylesheet moves the package stylesheet import above @config, where
Vite's inliner no longer skips it. The static checks' bundle freshness test reads a
subpath pattern export as the directory it maps into.
* docs: describe how the theme fonts resolve through the package export
* fix: leave subpath pattern exports out of the bundle freshness check
A pattern such as ./dist/fonts/* names no entry the design rules load, and
reading it as its directory made the freshness check depend on a directory the
synthetic build in suppression-baseline.spec.ts never dates. The scenario's
mirror of the manifest reading skips patterns the same way.
(cherry picked from commit 681515c9e5)
Original-PR: https://github.com/LibreChat-AI/LibreChat/pull/16485