* feat: Audit Resource ACL Changes and Fail Closed by Default
* fix: Keep Non-Reversible Admin Audit Handlers Fail-Open
* docs: Narrow AUDIT_LOG_FAIL_CLOSED Description
* fix: Audit and Restore ACL and Insights Changes in One Pass
* fix: Break Audit and Insights Permission Type Cycle
* test: Cover Resource ACL Audit Scenarios
* refactor: Audit Resource Permission Changes Before Writing
* test: Align Concurrent Revoke Audit Expectation
* fix: Skip Deleting ACL Entries That Were Not Audited
* fix: Read ACL Snapshots Through the Write Session
* fix: Never Block Revocations on Audit Outages and Normalize Principal Keys
* fix: Let an Explicit Public Disable Win Over a Public Update
* fix: Audit Duplicate ACL Rows as Combined Permissions
* fix: Audit Permission Changes Under One Target and Dedupe Revokes
* fix: Audit Capability Grants Before Writing Them
* feat: Serialize Resource Permission Updates With a Per-Resource Lease
* fix: Fence the Resource Lease Before Writes and Always Audit Grant Assignments
* fix: Renew the Resource Lease Before Each ACL Write Phase
* fix: Serialize System Grant Assignment and Revocation With a Per-Grant Lease
* fix: Keep Leases Alive During Audits, Bound Lock Index Wait, Canonicalize Audit Target IDs
* fix: Retry Deferred Revoke Audits Under the Lease and Audit Canonical Principal and Role IDs
* test: Expect Role IDs in Permission Audit Metadata
* fix: Read Mutation Snapshots From the Primary Outside Transactions
* fix: Flush Deferred Audits Before Cache Invalidation, Keep Renewals Monotonic, Keep Role Case in Grant Lease Keys
* refactor: Map the Busy Permission Error to Its Code in the API Package
* style: Sort Lease Imports and Type the Renewal Spec Read
* fix: Keep Success Audits After Commit, Report Downgrades as Revocations, Code Audit Outages
* refactor: Move the Audit Outage Code to Its Own Module
* fix: Translate Lock Failures, Lease Non-Transactional Sessions, and Code Grant Audit Outages
* fix: Sanitize Lease Renewal Failures at the Permission Boundary
* fix: Annotate the Unavailable Error Code for Isolated Declarations
* fix: Keep the Admin Route Fail-Closed Opt-In and Document Lease Clock Skew Safety
* fix: Translate Grant Lease Store Failures to a Retryable 503
* fix: Log Failed Grant Audit Writes With Safe Metadata Only
* test: Detect Raw Error Arguments in the Grant Audit Log Spec
* feat: Make Permission Lease Limits Configurable and Localize Retryable Sharing Failures
* fix: Bound Lock Index Readiness by the Lease Wait and Carry the Resource ID in Every Audit Entry
* test: Cover Lease Config Reaching the Leases and the Sharing Dialog Failure Messages
* fix: Load App Config on the Sharing and Grant Routes and Log Failed Lease Releases
* perf: Load App Config Only on the Grant Mutation Routes
* feat: Extend the Audit Action Vocabulary to Admin, Sync and Credential Mutations
* feat: Audit Admin Role, Group and Config Mutations
Role deletion now removes the role's grants, ACL entries and config
overrides before the role itself and returns ROLE_CLEANUP_FAILED instead
of success when any of them fails, so a recreated role cannot inherit
leftover privileges.
* feat: Audit IdP and Startup Role Changes
* fix: Keep the Startup Role Sync Running When Its Audit Verification Read Fails
* test: Cover Admin Role Audit Trail End to End
* fix: Audit a Remote Agent Role Sync Only After It Persists
* fix: Restore Role Dependents When Role Deletion Fails Midway
* fix: Restore Role Dependents Only When the Role Still Exists
* style: Sort Role Admin Imports
* fix: Keep the ACL Snapshot When Role Cleanup Fails Ambiguously
* test: Read Role Audit Entries From the Audit Log Route
* fix: Audit Only Real Membership Changes and Restore Deleted Role Config in Full
* fix: Restore Deleted Role Grants in Full and Sanitize Audit Write Logging
* fix: Audit and Report a Role Deletion Confirmed After a Lost Response
* fix: Never Restore Dependents Onto a Recreated Role
* fix: Snapshot Role Dependents Before Deleting and Detect Membership Changes Atomically
* fix: Restore From the Data a Cascade Step Actually Removed
* fix: Restore Only Config Overrides When a Role Delete Fails
* fix: Log Only Safe Metadata When the Startup Audit Read Fails
* fix: Audit Grants Removed by a Failed Role Delete
* fix: Audit Removed Grants on Unverifiable Role Delete Exits
* fix: Honor Fail-Closed Auditing in the Admin Config, Group and Role Routes
* fix: Bind Role Deletion to the Captured Id and Audit Only Atomic Role and Config Changes
* fix: Skip the Config Restore When the Targeted Role Is Gone
* fix: Audit Initial Group Members and Skip No-Op Role Description Updates
* fix: Record Role Deletion as Pending Before Cleanup and Append Its Outcome
* fix: Audit Reassigned Role Members and Return the Persisted Config After a Tracked Toggle
* fix: Keep a Committed Role Deletion Successful When Cascade Audit Writes Fail
* fix: Decide Group Update Audits From the Atomic Write and Sanitize Permission Update Logs
* fix: Audit Grants From a Snapshot, Fail on Member Lookup Errors and Chunk Member Audit Entries
* fix: Audit Group Deletion Members and Previous Role Removal, Abort on Grant Snapshot Failure
* fix: Invalidate Config Caches After Partial Secret Writes
* fix: Retry Failed Cascade Restores, Report Changed Group Fields and Audit Every Reassigned Member
* fix: Log Safe Metadata When Cache Invalidation Fails After a Partial Write
* fix: Keep Error Messages Out of the Audit Write Failure Log
* style: Sort Audit Log Spec Imports
* fix: Sanitize Admin Handler Error Logs and Dispatch System Audit Writes Without Waiting
* fix: Route Delete-User CLI Through the Shared Account Erasure Cascade
The operator CLI ran raw deleteMany calls that dropped File metadata while leaving storage objects, skipped skills, MCP servers and agent checkpoints, and used the wrong field for agent API keys. Account self-deletion and the CLI now share eraseUserData in packages/api, so both remove stored file objects before metadata, open checkpoint deletion around conversations, and clear skills, MCP servers and shared links with ACL cleanup.
* fix: Erase Favorites, Projects, Queued Turns and Refresh Bridges With the Account
Account erasure left tool favorites, chat projects, queued agent turns and their sequences, and OpenID refresh token bridges behind. The shared eraseUserData cascade now clears them, adding deleteUserToolFavorites and deleteUserChatProjects where no delete-by-user method existed.
* fix: Move MCP Server Erasure Queries Into Data Methods and Propagate Their Failures
* test: Cover Delete-User CLI and Self-Service Erasure Scenarios
* fix: Delete Stored Files When Account Deletion Arrives Without a Body
* fix: Delete Stored Files Before User Keys and Keep Provider Failures Best Effort
* fix: Propagate Agent and Prompt Erasure Failures Before Deleting the User
* fix: Delete Erasure Retry Anchors Last When Removing User-Owned Resources
* fix: Retire Session Hint From the Shared Erasure Cascade After Sessions Are Revoked
* fix: Propagate Skill and Agent Reference Cleanup Failures Before Deleting the User
* fix: Scope CLI Account Erasure to the Deleted User's Tenant and Legacy Refresh Bridges
* fix: Clean Shared-User MCP OAuth State When Account Erasure Removes a Server
* fix: Keep CLI Erasure System-Scoped Except ID-Keyed Cleanup and Await Shared-Link ACL Cleanup
* fix: Scope CLI MCP OAuth Lookups to the Tenant and Fail Erasure When Shared-User Cleanup Fails
* fix: Run CLI MCP OAuth Teardown and Allowlist Resolution Per User in the Tenant
* fix: Tear Down Shared-User MCP OAuth State Before Removing the Server Retry Anchors
* fix: Pin Agent Reference and MCP Token Cleanup to the Deleted User's Own Tenant
* 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
* fix: Expire Dead-Lettered Trigger Deliveries After a Review Window
* fix: Delete Stored Image Uploads When Record Creation Fails
* fix: Clean Up Stored Objects on Every Storage-Before-Record Upload Path
* refactor: Resolve the Delete Strategy Lazily in Stored Upload Cleanup
* test: Cover Dead Letter Expiry After the Review Window
* fix: Carry Owner to Stored Upload Cleanup and Keep Batch Dead Letter Deadlines
* refactor: Select the Stored Upload Cleanup Target in the API Package
* fix: Check for a Committed Record Before Deleting an Upload and Keep Dead Letters Unless Configured
* fix: Check the Persisted Record Id for Converted Assistants Images
* fix: Arm a Dead Batch Root Deadline After Its Members Settle
* fix: Settle Expired Dead Batches and Skip the Record Guard Before the File Write
* fix: Skip the Record Guard for Pre-Write Failures and Build the Lookup in packages/api
* fix: Build the Record Lookup Lazily in the Upload Service
* fix: Pass the Dead-Letter Retention Window Through Experimental Startup
* fix: Carry the Vector Copy Into Failed-Upload Cleanup
* fix: Cover the Code Environment and Indeterminate Vector Copies in Upload Cleanup
* fix: Give URL-Upload Cleanup a Request When the Caller Omits One
* fix: Route Failed-Upload Cleanup Through Secondary-Storage Deletion
* fix: Attempt Every Copy Independently When Cleaning Up a Failed Upload
* fix: Track the Record Write in Every Upload Path Whose Retention Lookup Can Fail
* fix: Enforce Terms Acceptance on the Server When modalAcceptance Is On
* fix: Mark Backfilled Terms Acceptance Timestamps
* test: Cover Server-Enforced Terms Acceptance in the Mock Harness
* fix: Gate Management Routes and Skill Sync and Resolve Terms Policy Fail-Closed
* fix: Evict Cached Auth Documents When Terms Acceptance Is Reset
* fix: Guard Skill Sync Behind Terms Acceptance for Every Skill List Route
* fix: Move Terms Skill-Sync Guard Into the API Package and Evict All Users on Reset
* fix: Batch Terms Reset Cache Eviction and Sign the Spec User In Fresh
* fix: Let Stop Through the Terms Gate, Refresh Startup Config, and Wait Out Failed Eviction
* refactor: Narrow the Terms Exemptions and Share One Refusal Path Across Clients
* refactor: Compose the JWT Terms Gate Through an API Package Helper
* style: Sort Imports for the Shared Terms Refusal Helper
* test: Expose the Terms Gate Helper in the JWT Auth Spec Mock
* test: Cover the Terms Refusal Code on Pre-Stream Upload Errors
* feat: Paint the Operator Theme on a First-Ever Visit
The server embeds the deployment's base interface.theme in the HTML shell, with both modes the build resolved for a bundled name, so the boot script and the first commit of DeploymentTheme paint it before /api/config answers. A tab's owned cache still outranks it, shared links skip it, and a request scoped by a trusted X-Tenant-Id header gets the shell without it.
* test: Type the Inline Shell Theme Fixture as Raw JSON
* test: Tag the First-Visit Scenarios Literally
* fix: Ignore a Theme Boot File That Is Not an Object
* fix: Keep the Base Theme for a Tenant Header the Config Rejects
* fix: Report a Theme Boot File That Exists but Cannot Be Read
* fix: Embed the Base Config Theme in the Experimental Shell
* test: Stand In the Shell Theme for an Owned Copy Whose Session Ended
* fix: Boot-Paint a Cached Theme Only for the Tab's Signed-In Owner
The boot script and DeploymentTheme's first commit replayed the deployment-theme cache without checking its owner, so a browser that last held one identity's theme painted it for another until the config answered. The tab now records its signed-in owner in session storage and both paths replay the cache only when it matches.
* test: Assert Session Ends Forget the Tab Theme Owner
* test: Hold the First-Paint Config Answer Until the App Paints
* fix: Skip the Boot-Painted Theme Cache Once the Session Has Ended
* fix: Bind the Readable Session Hint to the Signed-In Owner
* test: End the Session for Real in the Expired-Hint Scenarios
* fix: Clear the Session Hint When a Local Refresh Finds No Session
* test: Give the Refresh Specs the Cookie Surface the Session Hint Uses
* test: Count the Signed-Out Config Answer in the No-Cached-Paint Scenarios
* fix: Retire the Session Hint on Every Rejected OpenID Refresh
* fix: Retire the Session Hint When a Refresh Carries No Token
* fix: Retire the Session Hint on Account Deletion and Password Reset
* refactor: Own the Session Hint Lifecycle in the Typed Auth Cookies
* fix: Write User Provider Keys With Random-IV v3 Format
* fix: Reject Undelimited Input in decryptV2 Instead of Returning It
* fix: Default 2FA Backup Codes to the Strong Format
* fix: Limit Admin Secret Preview to the Last Four Characters
* fix: Re-Derive Stored Secret Previews Under the Last-Four Policy
* test: Build Legacy Credential Fixtures With the Server Key
* fix: Load Request Config for User Key Writes and Mask Legacy Previews
* fix: Log User IDs Instead of Emails in Admin Panel Auth Flow
* fix: Sort Imports in Admin Middleware Spec
* test: Cover Admin Exchange and Access Denial in Mock Scenarios
* test: Remove the Generated User After the Admin Denial Scenario
* fix: Hold Button Heights and the Dialog Close Button at the 24px Target
* fix: Write a Zero Button Height as a Length the Target Floor Can Compare
* test: Let the Delete Dialog Settle Before Measuring Its Close Glyph
* test: Pin the Theme Cache Digest the Rebased Resolver Emits
* fix: Stop Cache Audit From Logging Cache Keys and Values
* fix: Keep Cache Audit Output to Counts and TTL
* fix: Log Cache Audit at Info So the Debug Toggle Still Emits
* test: Cover Cache Audit Redaction in the Mock Lane
* test: Run Cache Audit Scenario Against In-Memory Stores
* test: Parse Cache Audit Probe Output Before Asserting
* fix: Render Cache Audit Statistics in the Message and Move Formatting to packages/api
* fix: Encrypt User Plugin Credentials With Random-IV v3 Format
* test: Cover Credential Encryption Formats in Mock E2E Scenarios
* test: Round-Trip Real Credential Helpers in PluginService Spec
* 🙈 fix: Remove SharePoint Picker Payload Logging (#16997)
* fix: Add credentials.writeFormat to Gate v3 Credential Writes During Rollouts
* test: Expect 201 When the Legacy Write Format Override Is Created
* fix: Clear TTS Audio Cache On Session End and Hash Its Keys
* fix: Read Manual TTS Replays From the Hashed Cache Key
* fix: Purge Legacy TTS Cache Keys and Fence Writes Across Logout
* fix: Keep TTS Cache Writes Off the Playback Path
* test: Expect Hashed Keys in the StreamAudio Cache Lookup
* test: Use a Single-Token Reply Label in the TTS Cache Scenario
* fix: Settle TTS Cache Clear Before IdP Logout and Across Tabs
* test: Cover the TTS Cache Fence When Another Tab Logs Out
* test: Wait for the Second Tab Before Logging Out in the TTS Scenario
* fix: Latch TTS Cache Writes Shut Until the Tab Authenticates Again
* fix: Reopen TTS Cache Writes When Authentication Completes In Place
* fix: Leave for the IdP Even When TTS Cache Cleanup Fails
* fix: Retry a Failed Legacy TTS Purge and Fence Other Tabs on Manual Clear
* fix: Rerun the Legacy TTS Purge After Each Clear and Sign-In
* fix: Rerun the Legacy TTS Purge When Another Tab Clears
* fix: Fence Pre-Auth TTS Writes, Retry Failed Clears, and Fall Back to Storage Events
* fix: Version the Hashed TTS Cache Key Path
* fix: Move TTS Audio to a New Cache and Keep It Closed Until a Failed Clear Succeeds
* fix: Persist a Pending TTS Cache Delete Across Navigation
* fix: Reopen TTS Caching Only on Session Start and Fence Cache Reads
* fix: Keep the TTS Delete Fence in Cache Storage and Close Reads After Logout
* refactor: Keep Read-Aloud Audio in Tab Memory Instead of Cache Storage
* test: Return to the Conversation After Re-Login in the TTS Logout Scenario
* test: Close the Phone Sidebar Before Replaying in the TTS Logout Scenario
* fix: Bound the In-Memory TTS Cache by Size as Well as Count
* fix: Scope Cached TTS Audio to the Signed-In User
* fix: Keep the Settings Cache Delete Available While Legacy Audio Remains
* fix: Recheck Legacy TTS Audio After a Settings Clear and on Unowned Handoff
* fix: Fence TTS Writes Started Before an Account Signs In
* test: Opt the Fresh TTS Account Into Enter-to-Send
* fix: Load Google Tag Manager Only After Analytics Consent
Google Tag Manager initialized as soon as the chat footer or the chat route mounted whenever ANALYTICS_GTM_ID was set, for signed-in users and shared-link viewers alike, with no consent check. A single useAnalytics hook now owns initialization and loads the container only after the viewer grants consent, recorded in a persisted Jotai atom. A non-modal banner asks for that consent in the signed-in layout and on shared links, and a Data controls toggle changes it later; withdrawing consent pushes a consent mode update to a loaded container and completes on reload.
* fix: Restore Analytics Consent to a Container Still on the Page
* test: Cover Analytics Consent Scenarios
* test: Observe Missing Tag Manager Requests Over a Bounded Window
* fix: Recognize Only the Configured Tag Manager Container
* fix: Send Consent Withdrawal Only to the Configured Container
* fix: Describe the Consent Withdrawal Guard Accurately
* fix: Keep Advertising Consent Denied When Analytics Is Allowed
* fix: Let Shared-Link Viewers Change Analytics Consent
* fix: Retry a Tag Manager Container That Never Registered
* fix: Treat a Loading Container as Present and Drop It When It Fails
* fix: Drop a Failed Tag Manager Attempt's Start Event Before Retrying
* fix: Encrypt User Plugin Credentials With Random-IV v3 Format
* test: Cover Credential Encryption Formats in Mock E2E Scenarios
* test: Round-Trip Real Credential Helpers in PluginService Spec
* 🙈 fix: Remove SharePoint Picker Payload Logging (#16997)
* fix: Add credentials.writeFormat to Gate v3 Credential Writes During Rollouts
* test: Expect 201 When the Legacy Write Format Override Is Created
* 🔊 fix: Clear TTS Audio Cache On Session End and Hash Its Keys (#16998)
* fix: Clear TTS Audio Cache On Session End and Hash Its Keys
* fix: Read Manual TTS Replays From the Hashed Cache Key
* fix: Purge Legacy TTS Cache Keys and Fence Writes Across Logout
* fix: Keep TTS Cache Writes Off the Playback Path
* test: Expect Hashed Keys in the StreamAudio Cache Lookup
* test: Use a Single-Token Reply Label in the TTS Cache Scenario
* fix: Settle TTS Cache Clear Before IdP Logout and Across Tabs
* test: Cover the TTS Cache Fence When Another Tab Logs Out
* test: Wait for the Second Tab Before Logging Out in the TTS Scenario
* fix: Latch TTS Cache Writes Shut Until the Tab Authenticates Again
* fix: Reopen TTS Cache Writes When Authentication Completes In Place
* fix: Leave for the IdP Even When TTS Cache Cleanup Fails
* fix: Retry a Failed Legacy TTS Purge and Fence Other Tabs on Manual Clear
* fix: Rerun the Legacy TTS Purge After Each Clear and Sign-In
* fix: Rerun the Legacy TTS Purge When Another Tab Clears
* fix: Fence Pre-Auth TTS Writes, Retry Failed Clears, and Fall Back to Storage Events
* fix: Version the Hashed TTS Cache Key Path
* fix: Move TTS Audio to a New Cache and Keep It Closed Until a Failed Clear Succeeds
* fix: Persist a Pending TTS Cache Delete Across Navigation
* fix: Reopen TTS Caching Only on Session Start and Fence Cache Reads
* fix: Keep the TTS Delete Fence in Cache Storage and Close Reads After Logout
* refactor: Keep Read-Aloud Audio in Tab Memory Instead of Cache Storage
* test: Return to the Conversation After Re-Login in the TTS Logout Scenario
* test: Close the Phone Sidebar Before Replaying in the TTS Logout Scenario
* fix: Bound the In-Memory TTS Cache by Size as Well as Count
* fix: Scope Cached TTS Audio to the Signed-In User
* fix: Keep the Settings Cache Delete Available While Legacy Audio Remains
* fix: Recheck Legacy TTS Audio After a Settings Clear and on Unowned Handoff
* fix: Fence TTS Writes Started Before an Account Signs In
* test: Opt the Fresh TTS Account Into Enter-to-Send
* refactor: Lift the step handler branches into a core reduceStep
The stepHandler branches move to @librechat/chat as reduceStep(state, event, ctx), with the per-run maps in a StreamState and every write outside the message list returned as a StepEffect. useStepHandler keeps the frame coalescing and applies the effects to the Jotai and Recoil stores.
The equivalence spec runs a frozen copy of the previous hook against the new binding on each recorded sequence and compares every channel they write.
* test: Pin the step reducer equivalence digests and drop the frozen handler
* test: Load the step reducer from the built chat core
* test: Type the equivalence fixtures to the event unions
* fix: Stop Cache Audit From Logging Cache Keys and Values
* fix: Keep Cache Audit Output to Counts and TTL
* fix: Log Cache Audit at Info So the Debug Toggle Still Emits
* test: Cover Cache Audit Redaction in the Mock Lane
* test: Run Cache Audit Scenario Against In-Memory Stores
* test: Parse Cache Audit Probe Output Before Asserting
* fix: Render Cache Audit Statistics in the Message and Move Formatting to packages/api
* 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.
* feat: Look Up Bitbucket Cloud Pull Requests
* fix: Keep the Pull Request Host Out of Overrides and Per-Host Keys
A role, group, user or tenant override can no longer change or remove pullRequests.host, so feature gating and link recording see the operator's host. Links are recorded only from the configured host, and the batch share key and the rate limit cooldown are scoped by host.
* fix: Compare Pull Request Link Hosts Through the Host Resolver
* test: Add Pull Request Scenarios Against a Fake GitHub Enterprise Host
* fix: Keep the Pull Request Provider Out of Overrides and the Batch Share Key
A role, group, user or tenant override can no longer change pullRequests.provider, so feature gating and link recording agree with the lookup, and a batch lookup for one provider is never joined by a request for another.
* fix: Read GitLab History Apart From Open Merge Requests
Merged and closed merge requests are listed on their own, so open fork merge requests on the branch name cannot crowd them out. Rate limit cooldowns are scoped by provider, and a workspace repository with a dot segment is rejected.
* fix: Revalidate Bitbucket Pull Requests and Skip Ones Without a Source Commit
Read a full closed page so a newer closed fork cannot hide an older pull request from the repository, recheck the source branch and fork status on the detail, and treat a pull request without a source commit as unmatchable instead of failing the lookup.
* fix: Follow Bitbucket's Next Link When Listing Pull Requests
* fix: Record the Lane Pull Request Without an Aggregation Pipeline Update
* fix: Match an Empty Lane Repository as Unknown
* fix: List Locked GitLab Merge Requests With the Open Ones
* fix: Replace an Expiring Fake Git Host Certificate
The step appliers, frame normalizer and SSE transport move from client/src/hooks/SSE into packages/chat/src/core with their specs, and the client imports them from @librechat/chat. The ask-user-question predicates the content applier reads move with them, and the client's approval module re-exports them so its consumers are unchanged.
* fix: Use Dropdown for Code Execution Settings So Menus Stay Open
* fix: Describe the Workspace Dropdown and Move Select Scenarios to the Code Tool Picker
* fix: Keep a Disallowed Saved Workspace Disabled in the Dropdown
* 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: Give the Checkbox Theme Roles for Its Fill and Corner
The shared checkbox painted no fill when unchecked and drew the rounded-sm
corner every small control shares, so the ClickHouse theme could not reach
Click UI's checkbox.color.background.default fill or its 0.125rem
checkbox.radii.all corner.
A checkboxRadius appearance role sets the corner and follows radiusSm, the
corner it drew before, when a theme names that and not this. A
checkbox-fill color role paints an unchecked box only when the new
checkboxFillStyle role is fill; the default transparent style keeps every
default theme pixel-identical, and the fill follows surface-primary when a
theme omits it. Checkbox and CheckboxGlyph read both roles.
The ClickHouse theme sets Click UI's fill and corner, and both entries
leave the drift guard's not-expressible list with their probes pinned to
match.
* test: Spell Each Checkbox Scenario Tag Literally
* test: Pin the Theme Cache Digest Built From the New Resolver
* test: Drive useChat Through a Substitute Transport for Send, Stop, Steer, Queue and Errors
* test: Tag the useChat Transport Specs as Acceptance Scenarios
* test: Fail the useChat Specs When a Turn Has No Response Placeholder
* test: Bound the Nested Jest Run and Fail the Scenarios on a Nonzero Exit
* test: Settle a Stopped useChat Turn Only on Its Aborted Final Frame
* 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
* perf: Mount a sidebar row's menu actions only once its menu is used
ConvoOptions now keeps only its trigger and menu store on a row the pointer has reached; the mutations, route and chat-context subscriptions move into a controller that mounts when the menu opens, the shift quick actions show, or the delete dialog opens, and stays from then on so a request lands in the handlers that made it. A pointer sweeping the un-virtualized Pinned section leaves one trigger per row instead of one full menu.
* test: Watch every menu mutation hook in the mount-cost test
* refactor: Normalize Artifact Type Spellings in One Place
* test: Keep Backticks Out of the Short React Artifact Source
* test: Retry a Timed-Out Sandpack Boot in the Short React Scenario
* fix: Case-Fold Canonical Artifact Types as Well as Their Aliases
* refactor: Define the code highlight cadence default once
The interface schema, the config defaults and the client's normalizer read DEFAULT_CODE_HIGHLIGHT_THROTTLE_MS and MAX_CODE_HIGHLIGHT_THROTTLE_MS from data-provider, and normalizeCodeHighlightThrottleMs moves beside them so its bounds cannot drift from the schema's. A spec pins the schema, config defaults, normalizer and librechat.example.yaml to the same default.
* test: Read the cadence from the signed-in config payload
* fix: Let Field and Focus Call Sites Use the Control Roles
Drop the border-heavy focus rings on the memory value fields, the tool
output details link and the Mermaid dialog controls, so each takes its
primitive's focus-control ring or the global outline. Give
TextareaAutosize a field variant and move the bookmark description onto
it. Drop the quiet border overrides on form controls so they keep the
border-control outline, move defaultTextProps and InputNumber onto it,
and prune the no-restyle counts these call sites no longer carry.
* test: Expect the Edge Focus Treatment on ClickHouse Bookmark Fields
The detail dialog remembers the last control focused inside it and, after each commit, moves focus to the unavailable notice or the dialog title when that control is gone and nothing else took focus. This covers a refresh that drops a conversation starter as well as the existing 403/404 case, without depending on a blur that browsers do not fire consistently for removed elements. Starters are keyed by text and occurrence so the ones that survive a refresh keep their focus.
* fix: Keep Hover-Revealed Row Actions Visible Wherever a Finger Can Reach
* fix: Apply the Coarse-Pointer Reveal to the Composer Palette and Model Menu
* test: Assert the Reveal on an Earlier Reply, Not the Always-Visible Latest One
* test: Read the Timestamp From the Hovered Reply's Own Row
* fix: Hide Until Hover Only Where Hover Exists and No Pointer Is Coarse