Commit graph

2900 commits

Author SHA1 Message Date
Marco Beretta
34279ca333
🪄 fix: Hide Sole Tool Row Under Its Group Header (#16750)
* fix: Hide Sole Tool Row Under Its Group Header

A tool call that is the only one in its group no longer renders its own row (for example "Ran command") beneath the group header; its panel shows directly and stays open. A lone code call's group header now reads "Running Code" or "Ran Code" instead of the bare tool name.

* fix: Keep Sole Tool Row Until the Call Settles

Hide the row of an only call only once it has completed successfully. A running, failed or stopped call keeps its row, and so does an MCP call (the only place its function name shows) and a detached task still running. A lone code call's header stays in the running tense while its detached task runs. Sort imports in two touched files.

* fix: Keep Sole Tool Row When Its Panel Is Empty

A sole read_file or skill call that returned nothing, and a file edit with no preview, keep their row instead of leaving an empty forced-open panel. A stopped lone code call is no longer headed as having run.

* fix: Keep Sole Row for Skill and Action Calls and Failed Code Header

A lone skill or OpenAPI action call keeps its own row, the only place that names the skill or the operation and domain. A failed lone code call no longer reads "Ran Code" in the group header.

* fix: Keep Sole Row for Intent Calls and Gate Ran Label on Success

A sole call that carries a model-authored intent keeps its own row, the only place the intent renders. A lone code call is labelled Ran only when it has a success signal; failed, stopped, still-running and interrupted legacy calls get their own label.

* fix: Keep Memory Row When Its Panel Has No Body

A restored memory call with output but no parseable key or value no longer loses its row to an empty panel.

* fix: Hide Row of a Lone Call in a Group Inside a Larger Phase

A group holding one call now tells its rows so through LoneGroupContext, separately from the phase's SoleToolContext. A settled call under its own group header drops its redundant row even when the surrounding phase holds several calls.

* fix: Sort Imports and Treat Interrupted Legacy Code Calls as Cancelled in Header

A legacy lone code call with partial output and progress below 1 after the stream ends now reads Cancelled in the group header, matching its card. Imports in three touched files are sorted to satisfy the static checks.

* fix: Match Legacy Cancellation Default and Keep Overwrite Row

The lone code header now treats a legacy record with no progress field as interrupted, the same 0.1 default the card resolves. A create_file call that overwrote a file keeps its row, the only place that says Updated rather than Create File.

* fix: Keep Detached Group Live and Row for Empty Generic Panels

A lone detached code task now keeps its group open and live while the work runs, through the shared completion calculation rather than only the label. A generic call whose arguments are an empty object or array with no output keeps its row instead of leaving a blank panel; the emptiness check is shared with the info panel.

* fix: Ignore Whitespace-Only Output When Dropping a Generic Row

A generic sole call with empty parameters and whitespace-only output keeps its row, matching the output renderer that discards such text.

* fix: Keep Detached Tasks in the Running Tense for Every Group Label

groupDone now accounts for a running detached task, so a multi-call group reads Running N actions until the detached work settles, and the lone code header, the icon and the auto-collapse all share the one predicate.

* fix: Reuse the Output Renderer Rule When Dropping a Generic Row

ToolOutput exports hasRenderableOutput, built on the same extraction the renderer uses, and ToolCall asks it before dropping its row. A sole call whose output is content blocks with empty text keeps its row instead of leaving an empty panel.

* fix: Limit Detached Running Tense to Code Cards That Report It

Only bash and code calls interpret a background handle and say Running in background. A generic MCP or action row reports its closed dispatch step as ran, so the group header no longer holds the running tense for it.

* fix: Keep Focus and Completion Announcement When a Sole Call Drops Its Row

A sole call that settles removes its own row. If that row held keyboard focus, focus now moves to the group header it is replaced by. The settled outcome is spoken through a live region that mounts with the card and outlives the row, so a screen reader hears the finished label the row could not announce as it unmounted.

* fix: Address Review Findings on Detached Group Focus, Cancellation and Streaming Cost

* fix: Find the Group Header Past a Leading Announcer When Handing Off Focus
2026-10-05 19:04:03 +02:00
Danny Avila
0fea0240d6
⏳ feat: Reset Balance Allowances Without Rollover (#16781)
* feat: add periodic balance reset without rollover

* fix: synchronize balance policy before periodic reset

* style: preserve context balance class order

* fix: Synchronize Reset Policy Before Granting Allowances

* fix: Apply Current Balance Policy During Admission
2026-10-05 11:44:00 -04:00
Marco Beretta
27a6dc041d
🪟 feat: Overlay Theme Roles for Tooltips, Error Alerts and Artifact Previews (#16739)
* feat: Tooltip, error alert and artifact preview theme roles

* test: Cover the Tooltip Theme Roles in the Mock Harness

* fix: Lighten the Dark Document Tile and Leave the Preview Color Scheme Alone

* fix: Let the Artifact Preview Frame Follow the System Scheme and Ink Autofill in the Field Text
2026-10-05 17:15:13 +02:00
lia-by-librechat[bot]
cd4ae0f37f
🦔 fix: Keep System Messages Stable During Collapse (#16780)
Co-authored-by: Lia <lia@librechat.ai>
2026-10-05 10:08:24 -04:00
Danny Avila
3f442e4dbe
🪶 perf: Load Tool-Call Previews and Fetch Full Parts on Demand (#16753)
* 🧾 perf: Load Tool-Call Previews and Fetch Full Parts on Demand

Long agent conversations shipped every tool output, argument string and
subagent transcript on load, though the cards render collapsed: 12-18 MB
of message JSON per chat, enough to crash iPhone Safari tabs.

A client that adds ?toolPreviews=1 to the conversation load now receives
bounded previews of settled tool calls (start and end of long outputs,
JSON arguments and outputs kept valid with only their longest strings
shortened, exit-status trailers kept whole, subagent transcripts omitted)
with explicit markers and full lengths. Opening a card or a subagent
panel fetches the stored part from a new owner-scoped endpoint,
GET /api/messages/:conversationId/:messageId/parts/:partIndex, cached
under its own React Query key. Clients that do not ask, exports and share
links keep the full payload; bounds are configurable under
toolCallPreviews in librechat.yaml, and a client-authored message that
carries previews is refused rather than saved.

* 🧾 fix: Validate Part Reads in Parallel and Preview Fork Responses

The full-part read now starts beside conversation-access validation
instead of after it, and keeps the active-job fallback the conversation
read has, so a conversation still live before its first save can expand
its previews. Fork, duplicate and shared-link fork responses honor the
preview parameter, so they no longer seed the conversation cache with
the full history. Background-task results whose structure cannot fit a
valid JSON preview go whole, image cards keep their prompts, and the
subagent panel offers a retry when its stored part fails to load.

* 🧾 fix: Key Hydrated Parts by Preview Revision and Call Identity

A fetched part is now cached under the preview's revision and replaces
only the fields the server shortened, so a call whose stored output
changes later (a harvested background result) is fetched again rather
than rolled back. Part lookups carry the run-step and agent identity and
refuse an ambiguous fallback, since provider tool-call ids can repeat
within one response. A subagent that finished without final text has
its transcript omitted like any other settled call, and JSON nested past
a fixed depth falls back to a text preview; a call whose preview fails
is sent whole instead of failing the conversation load.

* 🧾 fix: Release Hydrated Parts With Their History and Bound JSON Work

Full tool-call parts fetched for a conversation are removed when its
message history is released or cleared, so they cannot outlive it under
their own key. The structure-preserving JSON preview now bails out before
cloning when the value has more nodes or strings than could ever fit,
keeps a __proto__ key as ordinary data, and the part endpoint accepts any
safe-integer index instead of an arbitrary ceiling.

* 🧾 fix: Count Property Names Before Cloning a JSON Preview

Property names are never shortened, so the pre-check now adds their
length to its budget and falls back to the text preview before any
cloning when they alone could not fit.

* 🧾 fix: Preview Artifact and Branch Responses and Rehydrate Subagent Prompts

Artifact edits and parallel-response branches merge the message the
server returns into the conversation cache, so both requests now ask
for previews and their routes honor it. The subagent panel reads the
prompt from the stored arguments once they load, and the part endpoint
no longer caps identifier length, so any previewed call can be fetched.

* 🧾 fix: Preview Only Tool Calls That Can Be Fetched Back by Identity

A call without an id has nothing but its position to name it, and the
position can shift on the client, so it is left whole instead of being
previewed. The part endpoint now requires a tool-call id, so an indexed
lookup always confirms the call it returns.

* 🧾 fix: Fetch Parts by Exact Identity and Preview Only Unique Ones

The part endpoint now finds a call by its exact identity (provider id,
run-step id, agent) instead of trusting the client's index, and the
preview pass only shortens calls whose identity is unique in their
message, so every preview names exactly one stored part. Legacy
web-search failures that carry their error phrase mid-output go whole,
since the collapsed card reads that phrase anywhere.

* 🧾 fix: Bound the JSON Fit Walk Before Queueing and Normalize Empty Identities

The structure check now counts an array's or object's children against
the node budget before queueing them, so a very wide value is refused
without building a work list its size. An empty run-step or agent id is
treated as absent by the part lookup, matching how the preview pass and
the client already treat it.

* 🧾 fix: Key Fetched Parts to the Stored Version and Hydrate Search Details

Each preview now carries `previewRevision`, when its message last
changed, and the client keys fetched parts to that plus a fingerprint of
the whole preview, so any change to the stored call is fetched again.
The web-search details card asks for the stored call when it opens, so
its query is never left shortened.

* 🧾 fix: Cache Fetched Parts by Identity and Hold Copy Until Hydrated

The part query key drops the client-side index, which only rides along in the request; the server locates the call by message and exact identity, so a shifted index serves the cached copy instead of downloading it again. Copy controls inside a previewed part are disabled until the stored content arrives, so a slow or failed fetch cannot export shortened text.

* 🧾 fix: Shape Shared Forks With the Recipient's Bounds and Keep JSON Numbers Exact

A shared-link fork resolves the share owner's config for its content checks, but the forked conversation belongs to the requester, so its preview bounds now come from the requester's tenant and role (prepareResultToolCallPreviews). A structure-preserving JSON preview now requires every number in the text to survive a parse and re-serialization as the same value; an integer past 2^53, an out-of-range exponent or an over-precise decimal falls back to the text preview (or the whole output for parsed-output tools) instead of showing a changed value.
2026-10-05 07:42:45 -04:00
Danny Avila
3a32d8b0d3
🏝️ fix: Let a No-Workspace Turn Carry a Remembered Approval Mode (#16763)
* 🏝️ fix: Let a No-Workspace Turn Carry a Remembered Approval Mode

A conversation set to run without attached workspaces failed every turn with
"The selected code approval mode is not permitted by the current policy" when
the reader had picked Accept edits or Full access for a workspace earlier.

With no attached target, the server validated the requested mode against an
empty policy that only allows ask. A turn with no attached target now accepts
any known mode, resolves it to ask for the run, and keeps the conversation's
stored mode instead of overwriting or unsetting it. Unknown values are still
rejected, and any attached target, including a subagent's, keeps the strict
check.

The composer treated an explicit no-workspace chat as still running on the
agent's default machine, so it kept offering and submitting the remembered
mode. It now offers no attached mode there, and the submit path sends ask
whenever the turn resolves to run without a workspace.

* fix: Leave an Unset Approval Mode Unset on a No-Workspace Turn

A turn without an attached target seeded the conversation's approval mode
from the request when the row stored none. A current client sends the gated
ask there, so the first no-workspace turn of a new chat wrote ask and
replaced the remembered pick the composer would otherwise keep offering.
Such a turn now only carries forward a mode the conversation already stores;
a stored mode still comes only from a turn that validated it against its
attached targets.

* fix: Gate the Approval Menu on the Resolved Workspace Mode and the Saved Conversation

The composer hid attached approval modes only for a chat that recorded a
no-workspace decision, while useCodeWorkspace also resolves one for a saved
chat with no recorded decision and for a draft still choosing. The approval
menu, the queued-turn snapshot, and the submit path now read the mode the
composer resolved, so the control matches what the turn sends.

A no-workspace turn kept the mode of the row admission loaded, but a turn
sent with overrideConvoId is saved under another conversation; the stored
mode is now read only when that row is the conversation being saved.

* fix: Preserve the Saved Conversation's Approval Mode Through a No-Workspace Turn

A no-workspace turn chose what to record from the row admission loaded, but
a turn sent with overrideConvoId is saved under another conversation while
its unsets are still computed from that loaded row, so either the source
row's mode was copied onto the target or the target's own mode was unset.

Such a turn now records no mode and declares codeApprovalMode preserved:
the conversation write skips it when computing unsets, so the stored mode of
whichever conversation the turn is saved under stays as it is, and a chat
that stores none keeps offering the remembered pick. Turns with attached
targets record exactly the mode they validated, as before.
2026-10-05 07:28:28 -04:00
Danny Avila
dc375a8e1c
🪪 feat: Name and Face Subagents Like Main Chat Turns (#16692)
* 🪪 feat: Name and Face Subagents Like Main Chat Turns

The subagent panel and its main chat entry points named children by agent
id ("Subagent: agent_…") and framed a parent agent's briefing as a
"System" turn under "Parent agent dispatch". They now use main chat's own
author treatment:

- MessageRow gains `showAuthor` (a user-side turn written by someone other
  than the reader carries the agent header, mirrored) and `outlined`
  (host-delivered body without a system heading). The agent header is a
  shared render helper with static classes, so main chat rows render the
  same tree as before.
- Panel: the parent's briefing and follow-ups are filled user turns under
  the parent agent's name and avatar; the header, composer placeholder and
  child turns share one resolved author. External events stay system turns.
- Main chat: a subagent wake-up is headed by the subagent's name and face,
  outlined, with an outcome icon; background-tool wake-ups stay "System".
  The subagent card leads with the agent's name, and a detached card shows
  the indexed task status from a leaf component.
- Shared conversations resolve the same authors from the shared thread.
- `resolveSubagentAgentId` reads an `agent_` type only when no identity was
  recorded, never for a graph child. Ids never reach visible text; an
  unresolvable agent is named generically.

* fix: Preserve Subagent Identity and Accessible Status

* fix: Skip Private Avatar Queries on Public Shares

* fix: Preserve Restored Authors and Reuse History Lookups

* fix: Respect Graph Identity and Await Historical Authors

* fix: Retain Indexed Identity and Shared Wakeup Authors

* fix: Render Wakeup Authors in Public Shares

* fix: Resolve Shared Wakeups from Persisted Dispatch Identity

* fix: Preserve Wakeup Provenance and Parallel Self Identity

* fix: Refresh Author Snapshots Between Subagent Dispatches

* fix: Align Wakeup Copy and Dispatch Identity

* fix: Resolve Restored Subagent Authors Consistently

* fix: Preserve Indexed Subagent Display Names
2026-10-05 07:15:04 -04:00
Marco Beretta
9fe93939f5
🎨 style: Compact Queue Buttons and Restyle Projects and Composer Context Rail (#16772)
* style: Compact Queue Buttons and Restyle Projects and Composer Context Rail

* fix: Use Theme-Aware Merge for Composer Chips and Update Appearance Contracts

* fix: Keep Project Chip Trigger Styling and Align Projects Skeleton Grid
2026-10-05 06:47:48 -04:00
lia-by-librechat[bot]
d55dbc3bd8
🔱 feat: Simplify Steering Controls to Three Modes (#16759)
* 🔱 feat: Simplify Steering Controls to Three Modes

* Preserve Admitted Artifacts During Interrupts

* Preserve Result Admission Across Interrupts

* Gate Interrupt for Provider-Hosted Tools

* Match Interrupt Hints to Availability

---------

Co-authored-by: Lia <lia@librechat.ai>
2026-10-05 06:46:59 -04:00
Danny Avila
82cde522f2
💳 feat: Show Balance in the Context Gauge as Credits, Currency, or Percent (#16762)
* 💳 feat: Show Balance in the Context Gauge as Credits, Currency, or Percent

Move the balance out of the account menu into the composer's context gauge,
below the context window, and add `balance.display` (credits | currency |
percent, default credits) to choose how it reads. Currency reuses
`interface.currency` at 1,000,000 credits per USD; percent shows only the
share of the period's allotment spent.

Settings > Account > Billing renders the same summary from the same hook, so
both surfaces show identical figures, bar and refill timing in every mode.

* 🧭 fix: Normalize the Balance Display Mode and Reuse a Fresh Reading on Hover

Admin overrides reach the client without schema validation, so an unknown
`balance.display` now reads as credits instead of being typed as a mode it is
not. Hovering the gauge mounts the balance reader each time the card opens; a
30 s stale window stops every hover from refetching, while the explicit
refetch after each turn still bypasses it.

* 🩹 fix: Restore Gauge Popover Fixes and Tighten Balance States

The popover extraction was written from a pre-sync read of TokenUsage, so it
dropped dev's viewport caps and scrolling, the hideOnInteractOutside close fix,
the Tailwind v4 outline-hidden rename, and the card's max-w-full; restore them.

Refill copy now says when a refill becomes available rather than promising a
deposit, since one lands only once the interval has passed and a charge would
exhaust the balance. An empty balance reads as fully used even without an
allotment, percent mode without one says usage is unavailable instead of
leaving the figure blank, the balance-only ring takes the balance tone (amber
until empty) and is a meter only once it has a value.

* 🪙 fix: Read a Non-Positive Refill Amount as No Auto-Refill in Settings

The server never refills when the amount is not positive, and the balance
summary already says so; Settings showed its load error instead.

* 💸 fix: Show the Insufficient-Funds Error in the Balance Display Mode

The token-balance error still printed raw credit figures, so `percent` leaked
the numbers it hides and `currency` mixed units with the gauge. It now reads
the same display mode and formatter as the balance summary: credits as before,
money in currency mode, no figures in percent mode.

The auto-refill settings row also renders its own loading and failure states,
since settings search can show it without the balance row beside it.

* 🎚️ fix: Keep Fractional Credits and Drop the Moved Popover's Suppression

Credit amounts keep up to two decimals, so an insufficient-funds message no
longer reads 100.4 against 100.3 as 100 against 100; whole amounts still print
without decimals.

The design-rule backlog may not follow code into a new file, so the extracted
popover uses the standard `transition` utility instead of the arbitrary
`transition-[opacity,transform]` (which also misses Tailwind v4's separate
`translate` and `scale` properties) and its suppression is removed. The
composer geometry spec now reads the classes from `Popover.tsx`, where the
gauge button lives.
2026-10-05 06:46:44 -04:00
lia-by-librechat[bot]
a4f6763b07
👯 fix: Separate Subagents and Handoffs Into Native Tools (#16761)
Some checks are pending
Backend Unit Tests / Build packages (push) Waiting to run
Backend Unit Tests / Codegraph select (push) Waiting to run
Backend Unit Tests / TypeScript type checks (push) Blocked by required conditions
Backend Unit Tests / Circular dependency checks (push) Waiting to run
Backend Unit Tests / Tests: api (shard 1/3) (push) Blocked by required conditions
Backend Unit Tests / Tests: api (shard 2/3) (push) Blocked by required conditions
Backend Unit Tests / Tests: api (shard 3/3) (push) Blocked by required conditions
Backend Unit Tests / Tests: data-provider (push) Blocked by required conditions
Backend Unit Tests / Tests: data-schemas (push) Blocked by required conditions
Backend Unit Tests / Tests: @librechat/api (shard 1/4) (push) Blocked by required conditions
Backend Unit Tests / Tests: @librechat/api (shard 2/4) (push) Blocked by required conditions
Backend Unit Tests / Tests: @librechat/api (shard 3/4) (push) Blocked by required conditions
Backend Unit Tests / Tests: @librechat/api (shard 4/4) (push) Blocked by required conditions
Codegraph E2E Votes / vote (full suite) (push) Waiting to run
Docker Dev Branch Images Build / publish (push) Waiting to run
Frontend Unit Tests / Client build recovery regression (push) Waiting to run
Frontend Unit Tests / Codegraph select (push) Waiting to run
Frontend Unit Tests / Build packages (push) Waiting to run
Frontend Unit Tests / TypeScript type checks (client) (push) Blocked by required conditions
Frontend Unit Tests / Tests: @librechat/client (push) Blocked by required conditions
Frontend Unit Tests / Tests: Ubuntu (shard 1/2) (push) Blocked by required conditions
Frontend Unit Tests / Tests: Ubuntu (shard 2/2) (push) Blocked by required conditions
Frontend Unit Tests / Vite build verification (push) Blocked by required conditions
Sync Locize Translations & Create Translation PR / Sync Translation Keys with Locize (push) Waiting to run
Sync Locize Translations & Create Translation PR / Create Translation PR on Version Published (push) Blocked by required conditions
* fix: separate subagents and handoffs into native tools

* test: reselect the saved agent after browser reload

---------

Co-authored-by: Lia <lia@librechat.ai>
2026-10-04 22:55:13 -04:00
Danny Avila
c23fbc8f77
🧬 fix: Default Subagents to Their Parent's Code Machine and Workspace (#16756)
* 🧬 fix: Default Subagents to Their Parent's Code Machine and Workspace

A subagent resolved its code machine from its own saved fields only, so
when a chat routed the parent to an allowlisted machine the subagent fell
back to its own default and whatever workspace the conversation had
selected there, or failed the parent's whole turn when none existed.

Subagents now inherit the parent's resolved attached machine when it is
their own default or on their allowlist where per-chat choice applies,
the principal can use it, the sealed decision already selected it, and no
selection names the subagent as an explicit owner. Inheritance is derived
per request from the sealed decision and current agent configuration and
fed to every routing site; it is never persisted, so existing chats and
older clients get it without a decision change. The composer mirrors it.

A subagent whose machine has no usable workspace is advertised to the
parent as unavailable instead of failing the turn; a locked decision
stays fatal.

* fix: Inherit Across Every Spawning Path, Graph Members and Deferred Code Tools

A subagent now inherits only when every agent that can spawn it, at any
depth, runs on the same machine; spawn cycles keep their own routes.
Subagent graph members inherit like explicit subagents. The deferred
execute_code loader passes inheritance to its fallback resolver. Subagent
reads and VIEW checks move to a packages/api loader shared by inheritance,
lazy descriptors and graph members. The composer lets a draft's subagent
follow its parent's machine before a workspace is picked, and keeps an
inheriting subagent's former selection without asking for a move.

* fix: Prune Spawn Back-Edges, Gate the Composer on an Inheritance Capability

Spawning parents follow the run's path semantics, so a back-edge the
descriptor tree prunes no longer blocks inheritance, and agents that spawn
each other follow their single outside parent machine when it routes them
all there. Only admitted subagents count toward the walk's node limit.
Graph members re-read and re-check VIEW when they initialize. The composer
echoes an inheriting subagent's former selection without gating on that
machine, and mirrors inheritance only when the API advertises
codeWorkspaceInheritanceVersion; approval modes keep intersecting every
machine an agent could use.

* fix: Settle Each Mutually Spawning Group on Its Own

Independent spawn cycles no longer merge into one group, so a pair under
one parent follows that parent even when another pair follows a different
machine. Also types the data-provider spec for its ES5 target.

* fix: Bound the Inheritance Walk, Normalize Parallel Roots, Move Subagent Availability to TS

The walk reads in batches no larger than the remaining node budget, stops
once the limit is reached, and runs through the run's subagent load limiter.
Roots are keyed by saved agent ID, so a parallel root such as id____1 can
never receive an inheritance entry. Resolving a lazy subagent's code route,
reporting it unavailable, and guarding its descriptor now live in
packages/api (resolveSubagentCodeAvailability, guardUnavailableSubagent).

* fix: Keep Missing Subagent Loads Parallel Near the Node Limit

Batches never shrink below eight IDs, so missing or unviewable subagents
near the limit still load in parallel under the injected limiter, and at
most a handful of reads land past the limit.
2026-10-04 22:19:00 -04:00
Atef Bellaaj
3c90cde7d8
🔗 feat: use LibreChat prompt groups as agent instructions (#16686)
* 🔗 feat(agents): use LibreChat prompt groups as agent instructions

Agents can link a prompt group revision or Production as their instructions. The link resolves at the start of each turn through a cached resolver. The cache clears on promote and delete. Editors without VIEW on the group see a restricted placeholder.

* fix: remove duplicate logger import from agent initialization tests

* fix: honor prompt management capabilities for linked agent instructions

* test: seed prompt manager capabilities in authorization fixtures

* fix: clear acknowledged linked prompt edits before version restore

* test: adapt merged chain coverage to prompt-aware payload helper

---------

Co-authored-by: Lia <lia@librechat.ai>
2026-10-04 21:27:26 -04:00
Marco Beretta
4e55d64ceb
🗂️ fix: Keep Project Chats Out of Chats by Default and Space Project Rows (#16755)
* fix: Keep Project Chats Out of Chats by Default and Space Project Rows

* test: Update Chat Filter Menu Scenario for Project Chats Off by Default
2026-10-05 00:54:09 +02:00
Marco Beretta
6301b90bf9
📏 fix: Truncate Long Titles in the Archived Chats Dialog (#16754) 2026-10-05 00:15:53 +02:00
Marco Beretta
cf379d4293
🫥 fix: Remove Hover and Press Backgrounds From Chat Tool Rows (#16749)
* fix: Remove Hover and Press Backgrounds From Chat Tool Rows

* fix: Satisfy Static Checks for Tool Row Hover Change
2026-10-05 00:13:23 +02:00
lia-by-librechat[bot]
af35fe5439
🪚 chore: Deprecate Agent Chain Authoring (#16745)
* feat: consolidate orchestration into a native tool

* test: complete persisted subagent graph fixture

* fix: keep orchestration pickers inside the modal focus scope

* chore: deprecate agent chain authoring

* fix: preserve runtime-equivalent legacy handoff classification

* test: stabilize orchestration dialog lifecycle coverage

* test: wait for stream completion before final title polling

---------

Co-authored-by: Lia <lia@librechat.ai>
2026-10-04 17:36:13 -04:00
Marco Beretta
7e575c047f
🔍 feat: App-Wide UI Scale Setting (#14903)
* 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
2026-10-04 23:20:04 +02:00
Marco Beretta
9ff53ba5b5
⚡ perf: Cache Package Builds and Make Client Coverage Opt-In (#16709)
* 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
2026-10-04 15:53:29 -04:00
Danny Avila
3a2241c048
🌲 feat: Expose Navigable Subagent Progress Trees (#16748)
* feat: Return a Navigable Progress Tree When Checking a Running Subagent

check_background_task on a running or finished-but-undelivered subagent now
returns an activity digest: the child's turns, tool calls, and replies folded
to one line each and addressed by stable positional paths. Callers expand one
node or range with expand, and page with since against a settled-node cursor.

The owning process folds the child's update stream into a bounded tree that
keeps only tool names, the model-authored intent label, the tool-authored
outcome label, statuses, timings, and sizes. Routed claims carry the tree to a
poll on any replica, lists carry counts and the node in flight, and a finished
child whose owner is gone is rebuilt from its durable public projection.

The background-task card renders the digest as a foldable tree and links the
existing subagent activity panel.

* fix: Tighten Progress Digest Verdicts, Overflow Bounds, and Rebuilt Trees

Failed reply steps and schema-rejected calls now record as errors, and an
overflowed call is counted once without retaining it in the lookup maps.
A tree rebuilt from the durable projection re-checks completed calls with the
shared failure verdict, carries the projection's truncation, and tells the
caller its paths are a reconstruction. The card localizes folded summaries
instead of rendering the server's English tally.

* fix: Measure Single-Part Message Deltas in the Progress Digest

* fix: Scope Nested Progress Ownership by Run and Count Overflow Once

Nested runs now attach to the call recorded by their own spawning run, since
provider call ids repeat across runs. Only the step that announces a call can
count it as overflow, so later sightings of an unretained or evicted call never
re-count it or reopen history. A zero-valued since cursor is rejected, and the
card labels MCP tools with the configured server names.
2026-10-04 15:49:57 -04:00
Danny Avila
3e4b01834f
🫗 perf: Release Message Histories of Conversations the User Has Left (#16747)
* 🫗 perf: Release Message Histories of Conversations the User Has Left

Long agent conversations hold 12-18 MB of message JSON each in the React Query cache, and the default 5-minute cacheTime kept every conversation visited in that window. Switching between a few of them on mobile Safari grew the JS heap past 300 MB and crashed the tab.

retainMessages tracks when each per-conversation history loses its last observer and releases it once it has no observers, is not fetching, is not pinned, and is either older than 60 s or beyond the single most recently left conversation. The routed conversation, conversations with a running job, and conversations awaiting an approval decision stay pinned; releases wait while any mutation is pending. Returning to a released conversation refetches its history.

* 🫗 fix: Own History Collection, Configure the Grace, and Pin by Server State

Per-conversation histories get an infinite cacheTime while retention runs, so React Query's own five-minute collection can no longer drop a history a running job still pins; newly seeded histories schedule a pass; the grace and recent count come from interface.historyCacheTtlMs and interface.historyCacheRecent; the approval pin is replaced by the active-jobs set, which already lists jobs paused for a live approval; and Assistants histories stay pinned because deletion reads their thread id from the cache.

* 🫗 fix: Re-arm Collection for Histories Already Counting Down and Recheck Pins Promptly

A history left before retention started still had React Query's five-minute GC timer; a momentary observer now re-arms it under the infinite cacheTime. Histories kept only because they are pinned or fetching are judged again after 5 s instead of a full TTL, so a run that ends releases its transcript promptly.

* 🫗 fix: Exempt Assistants Histories Without Polling and Leave Fetching Histories Alone

Assistants histories are now exempt rather than pinned, so they are kept without a recurring recheck timer. The startup re-arm skips histories with a fetch in flight, since detaching a momentary last observer would cancel the request; settling the fetch re-arms collection on its own.
2026-10-04 15:45:18 -04:00
lia-by-librechat[bot]
0042d9a231
🪇 feat: Consolidate Orchestration Into a Native Tool (#16744)
* feat: consolidate orchestration into a native tool

* test: complete persisted subagent graph fixture

* fix: keep orchestration pickers inside the modal focus scope

* fix: preserve runtime-equivalent legacy handoff classification

* test: stabilize orchestration dialog lifecycle coverage

---------

Co-authored-by: Lia <lia@librechat.ai>
2026-10-04 15:40:54 -04:00
lia-by-librechat[bot]
0e3c9088f6
🫰 feat: Configure Tool Approval Modes Per Agent (#16707)
* 🫰 feat: Configure Tool Approval Modes Per Agent

* fix: Fence Remembered Tool Approval Authority

* fix: Unify Tool Approval Execution Invariants

* fix: Revalidate Learned Approval at MCP Invocation

* fix: Preserve One-Time MCP Review at Invocation

* fix: Execute Reviewed Calls on Templated MCP Connections

* fix: Scope Approval Witnesses to Executing Agents

* fix: Retain Approval Bindings for Hook-Rewritten Inputs

* fix: Pin Review Authority and Retire Settled Tool Calls

* fix: Fingerprint Effective MCP Request Headers

* fix: Preserve Routing Around Renewable MCP Token Fragments

* fix: Bind Tool Consent to OAuth Credential Generations

* test: Keep Mobile Approval Save Outside Drawer Escape Race

* fix: Fence OAuth Consent at MCP Transport Retries

* fix: Let Shared Agent Viewers Reset Personal Consent

* fix: Preserve Renewed Consent Across Reset Races

* fix: Resolve Verified Aliases for Personal Tool Reset

* fix: Fence Renewed OAuth Consent and Credential Review

* fix: Require Foreground Execution for Review-Only MCP Calls

* fix: Pin Invocation Ownership and Stable MCP Consent

* fix: Fence Superseded Tool Consent Completion Writes

* fix: Scope Consent Epochs to Effective MCP Authentication

* fix: Scope Approval Admission to Reachable Agent Tools

* fix: Preserve Approval Epochs for Runtime-Detected OAuth

* fix: Address Tool Approval Review Findings

* fix: Preserve Captured Consent When Tool Approval Is Inherited

* fix: Preserve Approval Admission Through Lazy Metadata

* fix: Fence Programmatic Reviews and Unresolved Lazy Approval Keys

* fix: Account for Normalized and Skill-Contributed Lazy Tools

* fix: Scope Lazy Approval to Selected Tool Spellings and Servers

* fix: Honor Disabled MCP Capability During Lazy Approval Admission

* test: Preserve Approval Merge Regressions After Rebase

* fix: Preserve One-Time Review During Non-OAuth Grant Outages

* fix: Retain One-Time Consent Across Resume Recovery

* fix: Preserve Reviewed Consent Through Transport Outages

* fix: Preserve Case-Variant Lazy Approval Hook Admission

---------

Co-authored-by: Lia <lia@librechat.ai>
2026-10-04 13:14:48 -04:00
Marco Beretta
5424837b7b
♿ a11y: Stop Agent API Keys Dialog Opening Its Info Card On Focus (#16735) 2026-10-04 18:19:03 +02:00
Danny Avila
b6b24741da
🗝️ fix: Strengthen Two-Factor Recovery Credentials (#16742)
* fix: Strengthen Two-Factor Recovery Credentials

* fix: Declare Recovery Helper Return Types

* fix: Consume Recovery Codes Atomically

* fix: Stage Recovery Code Rollout and Improve Input
2026-10-04 12:16:37 -04:00
Marco Beretta
69d88f4930
🧠 feat: Add Lia's Behavior Engine (#16683)
Some checks are pending
Backend Unit Tests / Build packages (push) Waiting to run
Backend Unit Tests / Codegraph select (push) Waiting to run
Backend Unit Tests / TypeScript type checks (push) Blocked by required conditions
Backend Unit Tests / Circular dependency checks (push) Waiting to run
Backend Unit Tests / Tests: api (shard 1/3) (push) Blocked by required conditions
Backend Unit Tests / Tests: api (shard 2/3) (push) Blocked by required conditions
Backend Unit Tests / Tests: api (shard 3/3) (push) Blocked by required conditions
Backend Unit Tests / Tests: data-provider (push) Blocked by required conditions
Backend Unit Tests / Tests: data-schemas (push) Blocked by required conditions
Backend Unit Tests / Tests: @librechat/api (shard 1/4) (push) Blocked by required conditions
Backend Unit Tests / Tests: @librechat/api (shard 2/4) (push) Blocked by required conditions
Backend Unit Tests / Tests: @librechat/api (shard 3/4) (push) Blocked by required conditions
Backend Unit Tests / Tests: @librechat/api (shard 4/4) (push) Blocked by required conditions
Codegraph E2E Votes / vote (full suite) (push) Waiting to run
Docker Dev Branch Images Build / publish (push) Waiting to run
Frontend Unit Tests / Client build recovery regression (push) Waiting to run
Frontend Unit Tests / Codegraph select (push) Waiting to run
Frontend Unit Tests / Build packages (push) Waiting to run
Frontend Unit Tests / TypeScript type checks (client) (push) Blocked by required conditions
Frontend Unit Tests / Tests: @librechat/client (push) Blocked by required conditions
Frontend Unit Tests / Tests: Ubuntu (shard 1/2) (push) Blocked by required conditions
Frontend Unit Tests / Tests: Ubuntu (shard 2/2) (push) Blocked by required conditions
Frontend Unit Tests / Vite build verification (push) Blocked by required conditions
* 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
2026-10-04 15:29:00 +02:00
Danny Avila
3dd0d06796
🧗 feat: Light the Fold Path to the Hovered Activity Row (#16722)
* 🪜 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>
2026-10-04 09:16:52 -04:00
Marco Beretta
8330a584da
⌨️ fix: Show Project Row Actions on Keyboard Focus (#16731) 2026-10-04 15:02:55 +02:00
Danny Avila
741978c954
🔭 feat: Recover Stale Chunks Without the Error Page and Ship Client Logs to RUM (#16701)
Some checks are pending
Backend Unit Tests / Build packages (push) Waiting to run
Backend Unit Tests / Codegraph select (push) Waiting to run
Backend Unit Tests / TypeScript type checks (push) Blocked by required conditions
Backend Unit Tests / Circular dependency checks (push) Waiting to run
Backend Unit Tests / Tests: api (shard 1/3) (push) Blocked by required conditions
Backend Unit Tests / Tests: api (shard 2/3) (push) Blocked by required conditions
Backend Unit Tests / Tests: api (shard 3/3) (push) Blocked by required conditions
Backend Unit Tests / Tests: data-provider (push) Blocked by required conditions
Backend Unit Tests / Tests: data-schemas (push) Blocked by required conditions
Backend Unit Tests / Tests: @librechat/api (shard 1/4) (push) Blocked by required conditions
Backend Unit Tests / Tests: @librechat/api (shard 2/4) (push) Blocked by required conditions
Backend Unit Tests / Tests: @librechat/api (shard 3/4) (push) Blocked by required conditions
Backend Unit Tests / Tests: @librechat/api (shard 4/4) (push) Blocked by required conditions
Codegraph E2E Votes / vote (full suite) (push) Waiting to run
Docker Dev Branch Images Build / publish (push) Waiting to run
Frontend Unit Tests / Client build recovery regression (push) Waiting to run
Frontend Unit Tests / Codegraph select (push) Waiting to run
Frontend Unit Tests / Build packages (push) Waiting to run
Frontend Unit Tests / TypeScript type checks (client) (push) Blocked by required conditions
Frontend Unit Tests / Tests: @librechat/client (push) Blocked by required conditions
Frontend Unit Tests / Tests: Ubuntu (shard 1/2) (push) Blocked by required conditions
Frontend Unit Tests / Tests: Ubuntu (shard 2/2) (push) Blocked by required conditions
Frontend Unit Tests / Vite build verification (push) Blocked by required conditions
Sync Locize Translations & Create Translation PR / Sync Translation Keys with Locize (push) Waiting to run
Sync Locize Translations & Create Translation PR / Create Translation PR on Version Published (push) Blocked by required conditions
* 🔭 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>
2026-10-03 23:17:56 -04:00
lia-by-librechat[bot]
19092e55bd
🖲️ fix: Enable Running Chat Menus and Preserve Renamed Titles (#16697)
Reconciles current dev while preserving manual title ownership, existing menus, and configuration regressions.

Co-authored-by: Lia <lia@librechat.ai>
2026-10-03 23:17:15 -04:00
lia-by-librechat[bot]
1f195dcf9d
📩 fix: Stage URL Prompts Before Agent Submission (#16647)
* fix: Stage URL prompts before agent submission

* test: Preserve startup cache in URL composer coverage

* fix: Preserve URL drafts and schema-normalized spec readiness

* fix: Scope URL submission lifecycle and retain spec overrides

* fix: Match retained tools and inherited project transitions

* fix: Preserve source drafts while staging URL prompts

* fix: Reconcile URL routes and persist settled prompts

* fix: Preserve existing project conversation ownership

* test: Await settled activity fold before checking its prose

* fix: Hold dictation sends during URL preparation

* fix: Hold live-run composer actions during URL preparation

* fix: Process subsequent URL prompt navigations

---------

Co-authored-by: Lia <lia@librechat.ai>
2026-10-03 19:59:13 -04:00
Lia
97bccd2e7d fix: Align Agent Contact Email with Its Label 2026-10-03 18:20:06 -04:00
Marco Beretta
18a1ecfde9 style: Sort Imports In ChatForm And Queue 2026-10-03 18:19:36 -04:00
Marco Beretta
35db010412 feat: Simplify Queue Row Actions And Steer Controls 2026-10-03 18:19:36 -04:00
Marco Beretta
f87fb0dbc6 refactor: Remove Visible Composer Hint Row And Tips Setting 2026-10-03 18:19:36 -04:00
Lia
d9ec51ba47 🦯 fix: Preserve Keyboard Access to BYOM Diagnostics 2026-10-03 18:12:13 -04:00
Lia
ac2b51e98f fix: Order Server Snapshots Against Pending Read Intent 2026-10-03 17:56:52 -04:00
Lia
c85795d08f fix: Fence Reply Read State and Preserve Snapshot Clears 2026-10-03 17:56:52 -04:00
Lia
4bc9c9e5c0 fix: Preserve Unread Intent Across Mixed Backend Versions 2026-10-03 17:56:52 -04:00
Lia
d621cd8b69 fix: Preserve Legacy Unread Reminder Placement 2026-10-03 17:56:52 -04:00
Lia
c41413ad21 fix: Keep Manual Unread Reminders in Date Groups 2026-10-03 17:56:52 -04:00
Lia
ad99250a35 fix: Verify Sidebar Status and Project Name Loading 2026-10-03 17:56:52 -04:00
Danny Avila
10e9cb90e7 🛰️ feat: Status on the Avatar, a Finished Group, and Project Chats in the Sidebar List
- 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.
2026-10-03 17:56:52 -04:00
Marco Beretta
f36fa7c15f
🎨 feat: Add Lia's Pixel Art Renderer (#16682)
* 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
2026-10-03 23:29:51 +02:00
Marco Beretta
fc89ba168e
🧺 perf: Batch Prompt Group Permission Checks in the Sidebar (#16710)
* 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
2026-10-03 23:27:01 +02:00
Lia
179ff350ec 🛼 fix: Keep BYOM Workspace Diagnostics Out of Composer Layout
Some checks are pending
Backend Unit Tests / Build packages (push) Waiting to run
Backend Unit Tests / Codegraph select (push) Waiting to run
Backend Unit Tests / TypeScript type checks (push) Blocked by required conditions
Backend Unit Tests / Circular dependency checks (push) Waiting to run
Backend Unit Tests / Tests: api (shard 1/3) (push) Blocked by required conditions
Backend Unit Tests / Tests: api (shard 2/3) (push) Blocked by required conditions
Backend Unit Tests / Tests: api (shard 3/3) (push) Blocked by required conditions
Backend Unit Tests / Tests: data-provider (push) Blocked by required conditions
Backend Unit Tests / Tests: data-schemas (push) Blocked by required conditions
Backend Unit Tests / Tests: @librechat/api (shard 1/4) (push) Blocked by required conditions
Backend Unit Tests / Tests: @librechat/api (shard 2/4) (push) Blocked by required conditions
Backend Unit Tests / Tests: @librechat/api (shard 3/4) (push) Blocked by required conditions
Backend Unit Tests / Tests: @librechat/api (shard 4/4) (push) Blocked by required conditions
Codegraph E2E Votes / vote (full suite) (push) Waiting to run
Docker Dev Branch Images Build / publish (push) Waiting to run
Frontend Unit Tests / Client build recovery regression (push) Waiting to run
Frontend Unit Tests / Codegraph select (push) Waiting to run
Frontend Unit Tests / Build packages (push) Waiting to run
Frontend Unit Tests / TypeScript type checks (client) (push) Blocked by required conditions
Frontend Unit Tests / Tests: @librechat/client (push) Blocked by required conditions
Frontend Unit Tests / Tests: Ubuntu (shard 1/2) (push) Blocked by required conditions
Frontend Unit Tests / Tests: Ubuntu (shard 2/2) (push) Blocked by required conditions
Frontend Unit Tests / Vite build verification (push) Blocked by required conditions
2026-10-03 10:45:03 -04:00
Marco Beretta
b24226672d
🌊 perf: Trim Per-Token and Per-Render Work in Streaming and Lists (#16718)
* 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
2026-10-03 10:40:55 -04:00
Marco Beretta
7a47dfd195
🌗 fix: Ink the Artifact Refresh Veil with the Media Text Role (#16716) 2026-10-03 16:33:01 +02:00
Marco Beretta
2ea44e0d67
fix: Layer Settings Dialog Popovers Above Its Panel (#16720)
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.
2026-10-03 15:47:53 +02:00
Marco Beretta
a2b184b231
🖍️ fix: Read Theme Roles for the Last Artifact and Agent Chip Colours (#16705)
* 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
2026-10-03 12:56:45 +02:00