Commit graph

198 commits

Author SHA1 Message Date
Danny Avila
b2244f7b53
🪟 feat: Show a Running Subagent's Current Row on Its Card (#18279)
Some checks are pending
Codegraph E2E Votes / vote (shard 2/10) (push) Waiting to run
Codegraph E2E Votes / vote (shard 3/10) (push) Waiting to run
Codegraph E2E Votes / vote (shard 4/10) (push) Waiting to run
Codegraph E2E Votes / vote (shard 5/10) (push) Waiting to run
Codegraph E2E Votes / vote (shard 6/10) (push) Waiting to run
Codegraph E2E Votes / vote (shard 7/10) (push) Waiting to run
Codegraph E2E Votes / vote (shard 8/10) (push) Waiting to run
Codegraph E2E Votes / vote (shard 9/10) (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/chat (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
Frontend Unit Tests / frontend (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
Playwright E2E Tests / Codegraph select (push) Waiting to run
Playwright E2E Tests / Shard timings (push) Waiting to run
Playwright E2E Tests / e2e () (push) Blocked by required conditions
Playwright E2E Tests / MCP list_changed (replica count 1) (push) Blocked by required conditions
Playwright E2E Tests / MCP list_changed (replica count 2) (push) Blocked by required conditions
Playwright E2E Tests / MCP Apps (browser and server) (push) Waiting to run
Playwright E2E Tests / e2e (push) Blocked by required conditions
Playwright Shard Timings / Record shard timings (push) Waiting to run
Repository Safety / Confine repository symlinks (push) Waiting to run
* 🪟 feat: Show a Running Subagent's Current Row on Its Card

* 🪟 fix: Draw the Card's Row Live and Skip Label Reservations That Draw Nothing

* 🪟 fix: Show a Card's Row Only While Its Thread Is Followed, and Throttle a Detached Row Too

* 🪟 chore: Sort the Card Spec's Imports

* 🪟 fix: Draw the Card's Row as a Picture That Registers, Claims and Reveals Nothing

* 🪟 test: Give the Artifact Preview Test the Props Its Type Requires

* 🪟 refactor: Keep the Shared Follower Registry in Provider-Scoped Jotai Atoms

* 👀 fix: Look Again for a Run the Caller Knows Of Before Taking It to Have No Stream
2026-11-18 08:46:28 -05:00
Danny Avila
e7565f28ad
🔷 feat: Declare Turn Shapes in Created Frames (#18401)
* 🪪 feat: State a Turn's Shape in Its Created Frame So an Observer Applies It as Its Sender Does

* 🪪 test: Give the Request Controller Specs the Turn Helper Their Mocks Left Out

* 🪪 fix: Name the Reply an Edited or Continued Turn Starts From, and Build on It, Not the List's Tail

* 🪪 fix: Put a Plain Turn's Reply Last in the List, Where Its First Step Builds
2026-11-18 08:31:01 -05:00
Danny Avila
83bd676dec
🏍️ feat: Apply Stream Metadata Through Shared Chat Handlers (#18398) 2026-11-18 07:51:48 -05:00
Danny Avila
2a63b30948
🪪 fix: Draw a Subagent's Brief as the Dispatching Agent's Turn (#18278)
* 🪪 fix: Draw a Subagent's Brief as the Dispatching Agent's Turn

* 🪪 fix: Name a Self-Spawn's Brief for Its Own Agent and Drop the Child's Model From the Brief's Heading
2026-11-18 07:17:58 -05:00
Danny Avila
cff8d595f1
🖼️ fix: Preserve Generated Outputs During Streaming (#18272)
* fix: preserve generated output identity during streaming

* fix: deduplicate shared output rows across activity phases
2026-11-17 13:42:55 -05:00
Danny Avila
90304e34b9
🎦 feat: Open Background Subagent Conversations in the Panel (#18197)
* 🧵 feat: Open a Background Subagent's Thread as a Conversation in the Panel

* 🧵 test: Keep the Subagents Host Spec and Add the Follow Cases Beside It

* 🧵 fix: Give the Followed Thread Its Panel Gutter and Assert It in the Browser Specs

* 🧵 test: Do Not Wait on a History Fold That Closed Before It Was Clicked

* 🧵 test: Draw a Steer the Child Took Before the Panel Opened Where It Was Taken

* 🧵 fix: Fall Back to the Durable View Only on a Confirmed Missing Stream or History

* ↩️ feat: Show Guidance a Followed Subagent Has Not Taken Yet, With Its Withdraw
2026-11-17 12:57:16 -05:00
Danny Avila
b7c12b12ce
💺 feat: Hide Tool-Limit Recovery Actions in Read-Only Chats (#18196) 2026-11-17 12:36:30 -05:00
Danny Avila
0cc6696981
📯 feat: Apply Steers, Labels, and Pauses in the Chat Event Applier (#18195)
* 🧷 feat: Place Steers, Labels and Pauses in the Chat Class's Event Applier

* 🪢 fix: Carry a Side Frame Placed on the Placeholder Into the Submission
2026-11-17 12:21:58 -05:00
Danny Avila
c1c108acca
🧑‍🏫 refactor: Share Stream Frame Placement Rules (#18194) 2026-11-17 12:03:22 -05:00
Danny Avila
c0305236da
📺 feat: Render Followed Chats With Main Chat's Message List (#18193)
* 🪟 feat: Draw a Followed Chat With Main Chat's Message List

* 🪟 fix: Leave the Page's End Marker and Screenshot Target to the Main List

* 🔒 fix: Make a Followed Thread Read-Only at the View, Not Only in Its Handlers

* 🔒 chore: Sort the Followed Thread Spec's Imports
2026-11-17 11:48:05 -05:00
Danny Avila
9306de83f1
👀 feat: Follow Live Conversations With a Shared Chat Hook (#18192)
* 👀 feat: Follow a Conversation's Running Generation With a Chat

* 👀 fix: Reattach a Dropped Follow Instead of Replacing What It Showed

* 👀 fix: Back Off When Attachments Only Fail, and Follow a Run Signalled Mid-Read

* 👀 fix: Read Stored Messages When the Status Cannot Be Read, and Nothing Once Gone
2026-11-17 11:30:22 -05:00
Danny Avila
2d6e455153
🏭 feat: Build Chat Messages From Live and Replayed Events (#18190)
* 🧮 feat: Apply Stream Events in the Chat Class the Way Main Chat Does

* 🧬 fix: Start an Observed Regeneration Beside the Saved Answer

* 🧬 fix: Leave a Compaction's Leaf Alone and Keep a Regeneration Snapshot's User Turn

* 🧬 fix: Settle a Turn That Reused a Row Without Merging Its Request Onto It
2026-11-17 11:10:30 -05:00
Danny Avila
cca24559f2
🚎 feat: Connect the Chat Transport to Live Generations (#18188)
* 🔌 feat: Follow a Running Generation Through the Chat Class's Transport

* 🔌 fix: Settle a Cancelled Attachment the Wire Never Answers
2026-11-17 10:37:50 -05:00
lia-by-librechat[bot]
58592c84ad
🦘 fix: Keep Subagent History Stable While Scrolling (#18249)
Co-authored-by: Lia <lia@librechat.ai>
2026-11-17 07:33:51 -05:00
Danny Avila
b3a2ba96a9
🪟 perf: Skip Thread Rows Far From the Viewport (#18201)
* 🪟 perf: Skip Thread Rows Far From the Viewport

Opening or closing the sidebar beside a long thread laid out and painted
every row of it on every frame of the 300 ms slide, because the slide
changes the chat pane's width. In a 246-row thread that was 17 ms of main
thread per frame, 55 ms on a CPU four times slower, where the slide ran at
about a dozen frames a second with tasks over 100 ms.

A row more than a screen from the thread's viewport is now skipped by the
browser (`content-visibility: auto`), so a change that touches the whole
thread costs only the rows near the reader. Rows within a screen are left
exactly as they were: none of them gains the clipping and containment that
skipping implies. A skipped row keeps the size it was last laid out at, so
the scrollbar, the navigation rail and the mount anchor see the same
thread, and it stays reachable by find-in-page, focus and anchors.

The skip sits on the row element the rail and the mount anchor measure:
reading the box of an element inside a skipped row makes the browser lay
that row out again. Screenshot export lays every row out before it clones
the thread, since a clone has no remembered size.

The navigation rail measured every row on each frame of a width change.
It now waits for the width to hold still and measures once; a height
change, which is what a streaming reply is, is still followed frame by
frame. Alone that saved nothing, because its reads forced a layout the
frame needed anyway; with rows skipped it is a fifth of what remains.

* 🧮 fix: Keep Rows Laid Out Until Every Overlapping Capture Is Done

`revealOffscreenRows` handed each caller the thread's `watch` function as
its resume. Two captures that overlap (a second screenshot export started
before the first finished) each got one: the first to finish resumed
skipping while the second was still cloning the thread, and the second
then created another observer without disconnecting the first, which no
cleanup released. A resume called after the thread had unmounted created
an observer for a thread that was gone.

Each thread now counts its outstanding reveals. Skipping resumes when the
last one is done, a resume counts once however often it is called, and
does nothing once the thread has unmounted.
2026-11-16 08:47:14 -05:00
Marco Beretta
2cdbb59160
🌊 refactor: Share Canonical Chat Streaming Effects (#18203)
Some checks are pending
Codegraph E2E Vote Gate / Gate (push) Waiting to run
Codegraph E2E Votes / vote (shard 1/10) (push) Waiting to run
Codegraph E2E Votes / vote (shard 10/10) (push) Waiting to run
Codegraph E2E Votes / vote (shard 2/10) (push) Waiting to run
Codegraph E2E Votes / vote (shard 3/10) (push) Waiting to run
Codegraph E2E Votes / vote (shard 4/10) (push) Waiting to run
Codegraph E2E Votes / vote (shard 5/10) (push) Waiting to run
Codegraph E2E Votes / vote (shard 6/10) (push) Waiting to run
Codegraph E2E Votes / vote (shard 7/10) (push) Waiting to run
Codegraph E2E Votes / vote (shard 8/10) (push) Waiting to run
Codegraph E2E Votes / vote (shard 9/10) (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/chat (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
Frontend Unit Tests / frontend (push) Blocked by required conditions
Playwright E2E Tests / Codegraph select (push) Waiting to run
Playwright E2E Tests / Shard timings (push) Waiting to run
Playwright E2E Tests / e2e () (push) Blocked by required conditions
Playwright E2E Tests / MCP list_changed (replica count 1) (push) Blocked by required conditions
Playwright E2E Tests / MCP list_changed (replica count 2) (push) Blocked by required conditions
Playwright E2E Tests / MCP Apps (browser and server) (push) Waiting to run
Playwright E2E Tests / e2e (push) Blocked by required conditions
Playwright Shard Timings / Record shard timings (push) Waiting to run
Move the existing streaming fade engine into @librechat/chat and its waiting-dot, cursor and fade styles into the shared client stylesheet.

Use the effective host smoothing policy consistently in Markdown, including nested subagent content, while preserving optional renderer callbacks and raw fallback behavior.
2026-11-16 06:18:42 +01:00
Marco Beretta
2d2eced9b7
🧰 refactor: Extract Tool Group Body Presentation (#18186)
Move grouped tool rows and compact reasoning into the props-only ToolGroupBody component in @librechat/chat, retaining app-owned expansion, approval lifetime and attachment behavior.

Select mock model options by exact descendant text so mobile Pin controls do not change the match.

Related to berry-13/LibreChat#463.
2026-11-15 20:09:25 +01:00
Danny Avila
c83336c7bf
📡 fix: Stream Compaction Summaries as They Are Written (#18174)
* 🧽 fix: Replace an Abandoned Summary Attempt's Text When Its Retry Streams

Summary deltas append to the in-flight summary part. Once the agents SDK
streams them while the provider is still responding, an attempt that is
then abandoned (a retry, a fallback provider) has already put text in the
part, and the next attempt's deltas would follow it until the completion
event replaced the lot.

A delta may now carry `reset`: the part's content is replaced instead of
extended, and a reset with no content empties it. The part keeps its slot
and stays in flight. Deltas without the field behave as before, so this
is inert until the SDK sends it.

* 🦿 chore: Bump Agents SDK to 4.2.3

4.2.3 dispatches each summary delta while the provider is still responding
and marks the first delta after an abandoned attempt `reset`, which the
chat reducer now honors. It also stops sending reasoning as summary text,
which is where the `incoming.content is not iterable` handler errors
during compaction came from.

The release changed only the SDK's own dev dependencies and overrides, so
the lockfile moves the package's version, URL and integrity and nothing
else.
2026-11-15 08:53:22 -05:00
Marco Beretta
28f26cd7fd
🔊 refactor: Move Browser Audio Playback Into the Chat Package (#18182)
- refactor: Move the Browser Audio Driver Into the Chat Package
- fix: Preserve Browser Audio Route Cancellation
- test: Cover Browser Audio Playback in the App
- test: Use Compatible Browser Speech Utterances
- test: Scope Browser Audio Replies to Messages
- refactor: Defer Primary Browser Audio Until Route Adoption
2026-11-15 13:35:30 +01:00
Marco Beretta
dd753672f7
🧩 refactor: Move Tool Group Header Into Chat Package (#18181)
Some checks failed
Codegraph E2E Votes / vote (shard 10/10) (push) Waiting to run
Codegraph E2E Votes / vote (shard 2/10) (push) Waiting to run
Codegraph E2E Votes / vote (shard 3/10) (push) Waiting to run
Codegraph E2E Votes / vote (shard 4/10) (push) Waiting to run
Codegraph E2E Votes / vote (shard 5/10) (push) Waiting to run
Codegraph E2E Votes / vote (shard 6/10) (push) Waiting to run
Codegraph E2E Votes / vote (shard 7/10) (push) Waiting to run
Codegraph E2E Votes / vote (shard 8/10) (push) Waiting to run
Codegraph E2E Votes / vote (shard 9/10) (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/chat (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
Frontend Unit Tests / frontend (push) Blocked by required conditions
Playwright E2E Tests / Codegraph select (push) Waiting to run
Playwright E2E Tests / Shard timings (push) Waiting to run
Playwright E2E Tests / e2e () (push) Blocked by required conditions
Playwright E2E Tests / MCP list_changed (replica count 1) (push) Blocked by required conditions
Playwright E2E Tests / MCP list_changed (replica count 2) (push) Blocked by required conditions
Playwright E2E Tests / MCP Apps (browser and server) (push) Waiting to run
Playwright E2E Tests / e2e (push) Blocked by required conditions
Playwright Shard Timings / Record shard timings (push) Waiting to run
Sync Locize Translations & Create Translation PR / Sync Translation Keys with Locize (push) Has been cancelled
Sync Locize Translations & Create Translation PR / Create Translation PR on Version Published (push) Has been cancelled
- refactor: Move Tool Group Header Into Chat Package
2026-11-15 04:12:04 +01:00
Marco Beretta
7531a8b2ab
🧩 refactor: Move Subagent Call Into @librechat/chat (#18177)
- refactor: Preserve Activity Card Styling in Shared Primitives
- refactor: Move Subagent Call Into the Chat Package
- refactor: Drop Unused Subagent Card Re-exports
- test: Cover Subagent Card Running State, Focus and Reduced Motion
- a11y: Stop the Subagent Glyph Pulse Under Reduced Motion
2026-11-15 02:18:46 +01:00
Marco Beretta
11fdcf4f43
🧩 refactor: Move Phase Label Ticker Into Chat Package (#18179)
- refactor: Move Phase Label Ticker Into Chat Package
- test: Give Phase Entrance Scenarios Unique IDs
2026-11-15 02:15:39 +01:00
Marco Beretta
b07a9f9e9f
⏳ refactor: Move ProgressText Into @librechat/chat (#18176)
- refactor: Move ProgressText Into The Chat Package
- fix: Keep ProgressText Behavior Unchanged After the Move
2026-11-15 01:52:29 +01:00
Marco Beretta
6cacfb0007
🖼️ feat: Let a Theme Ask for a Welcome Backdrop (#18125)
Some checks failed
Codegraph E2E Votes / vote (shard 3/10) (push) Waiting to run
Codegraph E2E Votes / vote (shard 4/10) (push) Waiting to run
Codegraph E2E Votes / vote (shard 5/10) (push) Waiting to run
Codegraph E2E Votes / vote (shard 6/10) (push) Waiting to run
Codegraph E2E Votes / vote (shard 7/10) (push) Waiting to run
Codegraph E2E Votes / vote (shard 8/10) (push) Waiting to run
Codegraph E2E Votes / vote (shard 9/10) (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/chat (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
Frontend Unit Tests / frontend (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
Playwright E2E Tests / Codegraph select (push) Waiting to run
Playwright E2E Tests / Shard timings (push) Waiting to run
Playwright E2E Tests / e2e () (push) Blocked by required conditions
Playwright E2E Tests / MCP list_changed (replica count 1) (push) Blocked by required conditions
Playwright E2E Tests / MCP list_changed (replica count 2) (push) Blocked by required conditions
Playwright E2E Tests / MCP Apps (browser and server) (push) Waiting to run
Playwright E2E Tests / e2e (push) Blocked by required conditions
Playwright Shard Timings / Record shard timings (push) Waiting to run
Sync README Translations / Test Translation Helpers (push) Has been cancelled
Sync README Translations / Translate README (push) Has been cancelled
Add theme-selected welcome backdrops and focus the composer when the welcome greeting settles. Preserve popup and touch-device focus behavior, with acceptance coverage for themes, focus, and composer layout.
2026-11-14 22:59:26 +01:00
Marco Beretta
d603bfff0f
💭 refactor: Move the Reasoning, Thinking and Web Search Parts Into @librechat/chat (#18147)
- refactor: Move Reasoning Parts into the Chat Package
- fix: Lay Out the Web Search Details Button as a Flex Item
- test: Cover Part Disclosures and the Styles They Ship With
- test: Cover a Consumer Opening a Thought With the Package Styles
- fix: Size the Web Search Row Button by Its Content
- test: Hold the Part Motion and Peek Fade to Their Old Inline Styles
2026-11-14 20:28:41 +01:00
Marco Beretta
2bf6ca847a
❓ refactor: Move the Ask-User Question Cards Into @librechat/chat (#18161)
- refactor: Move Ask User Question Cards Into the Chat Package
- fix: Preserve Ask Card Styling Without Suppression Growth
- fix: Provide Live Ask Pauses As Scoped Context Data
- test: Cover the Settled Ask Record Collapse Cascade
- fix: Give the Ask Call Spec Host the Tool Call Chrome
2026-11-14 19:11:57 +01:00
lia-by-librechat[bot]
33cab12ae5
🦜 fix: Show Quoted Context in Pending Messages (#18155)
Co-authored-by: Lia <lia@librechat.ai>
2026-11-14 12:57:13 -05:00
lia-by-librechat[bot]
4f0ef1941f
🫁 fix: Ease Context Usage Popover Size Transitions (#18160)
* 🫁 fix: Ease Context Usage Popover Size Transitions

Expanding snapped the card to its wide width in one frame; collapsing snapped it narrow first, reflowed the details into one column and made the card taller than it had been before rolling up.

- The popover owns the card width and eases it at the pace of the roll it travels with.
- The details hold the wide card's width through both rolls, so the card uncovers one settled layout.
- The per-tool breakdown and the usage sections roll instead of jumping.
- A press inside the card pins it, so a control that shrinks it from under the pointer no longer closes it.

* 🫁 fix: Restart the Details Width Hold on Every Opening

A collapse reversed midway kept the details mounted with their mount-time hold already spent, so they reflowed to the narrowing card, flashed one column and gave the roll a taller height to snap back from. The hold is now keyed to the open state and restarts with each opening.

A card that opens already expanded resizes nothing, so it no longer holds: with a classic scrollbar on a viewport-capped card the held width could sit across the two-column threshold from the settled one.

---------

Co-authored-by: Lia <lia@librechat.ai>
2026-11-14 12:21:06 -05:00
Marco Beretta
160e91dadc
🔧 refactor: Move the Tool Call Card Into @librechat/chat (#18135)
- refactor: Move the Tool Call Card Into the Chat Package
- test: Render Tool Calls Through the App Host
- fix: Keep the Tool Call OAuth Bind Stable Across Catalog Updates
2026-11-14 18:16:55 +01:00
Danny Avila
c3882c09ad
🧵 perf: Stop Re-rendering and Re-styling the Thread on Stream Events and Run Boundaries (#18148)
* 🎞️ perf: Run the In-Flight Label Sweep on the Compositor

The sweep on a running tool call, streaming reasoning and the elapsed timer
animated `background-position` under `background-clip: text`, which no
browser can hand to the compositor. Every frame of it ran style, paint and
commit on the main thread, and each paint walked the transcript around the
label, so the cost of a frame grew with the conversation and the sweep
stuttered whenever the main thread was busy.

`Shimmer` in `@librechat/client` draws the same sweep from two transforms
that cancel: a masked band slides across the label while a second copy of the
text inside it slides back, so the glyphs hold still and only the gap in the
mask moves. The copy is generated content, so the label is still one text
node. Every in-flight label renders through it.

`e2e/benchmarks-fade` measures a frame and each kind of stream event inside
an exported conversation, from a Chromium trace of the built client.

* 🧪 test: Let the Frame Benchmark Open a Chat in a Chosen Theme

* 🧵 perf: Keep the Composer, Nav Rail and Row Toolbars Out of Every Stream Event

A streamed delta rewrites one row, but each one also re-rendered the composer
form (and re-measured its textarea), the message nav rail (re-translating a
label per message), the sidebar's chat provider and the pending-steers row,
because each subscribed to the whole streaming message or the whole messages
array to read something a delta never changes.

- The chat contract and steering read a projection of the branch tail (where it
  sits, whether the run is paused) and fetch the message itself when a turn is
  built, through `useBranchTailGetter`. `ChatTurnsParams` carries
  `getLatestMessage` in place of `latestMessage`.
- The compact action and pending steers select what they use of the tail.
- The URL-prompt hook observes the history only while a submission waits on it.
- The nav rail's ribs are memoized apart from the rail.
- A row's toolbar keeps one element per glyph and stable handlers, so a send
  and its completion no longer re-render every button of every row.

`e2e/benchmarks-fade` gains a render-reason probe (`FADE_PERF_WHY`), a whole-run
profile, and windows for the send and its confirming frame.

* 🫥 perf: Conceal Rerun During a Run Instead of Unmounting It on Every Row

A run starting or ending withholds, then restores, the rerun control on every
row of the thread at once. Unmounting and remounting a button on each row made
the browser re-style the whole transcript both times: the stylesheet holds
`:has(:disabled)` rules and a message row is a `:has()` anchor, so a button
entering, leaving or flipping `disabled` inside a row invalidates that row's
entire subtree. In a 250-message thread that was 80 to 100 ms inside the send
keypress and again inside the final frame.

The control now stays mounted for as long as the row has a rerun to offer and
is concealed by visibility while a run is in flight: no focus, no pointer, no
place in the accessibility tree, and no layout where the toolbar starts at the
row's edge. Below `lg`, where the toolbar is centered, it leaves the flow as
before. It is deliberately not also `disabled`. The reply being written still
mounts no controls at all.

* 🎯 perf: Write :has() Rules So a Change in a Row Does Not Re-style the Row

Two selector shapes in the stylesheet left the browser unable to tell which
elements a `:has()` rule could reach, so it re-styled the whole subtree of
every `:has()` anchor above any change:

- Tailwind's `group-has-[…]`, which compiles to
  `.x:is(:where(.group):has(…) *)`. Message rows and their toolbars are
  `group`s, so a button mounting or unmounting in a row re-styled the row.
- `theme-disabled-within:[&_*]:…`, which compiles to `…:has(:disabled) *`.
  With it in the sheet, a `disabled` flip did the same.

Either one alone was enough: flipping `disabled` on one button per row of a
250-message thread took 100 to 110 ms, and mounting one took 88 ms. A run
starting or ending did one of those on every row.

The row-hover reveal, the header label crossfade and the toolbar's
hover-active hold now use `grouped-*` custom variants that emit
`:where(.group):has(…) .x`: the same elements at the same specificity, with a
subject the browser can read. A wrapper's parts take the disabled fill from
classes the component adds while it is disabled, through `theme-disabled-fill`,
instead of from `:has(:disabled) *`. The same two changes now cost 25 to 42 ms
and 27 ms.

`has-selectors.spec.ts` reads the stylesheet the app ships and fails on either
shape; `restyle.perf.spec.ts` measures the cost.

* 📱 fix: Keep a Concealed Rerun Hidden on Narrow Screens

The narrow-screen stylesheet forces every toolbar button visible from outside
any cascade layer, so it outranked the utilities that conceal a rerun while a
run is in flight: below 1024px the button stayed on screen and in the tab
order, inert. A concealed button now carries `data-concealed`, and that rule
leaves it alone.

Covered at a narrow and a wide viewport by what the reader gets: the settled
reply's rerun is hidden and cannot take focus during a run, and is back after.

* 🧮 perf: Skip the Pause Scan in Pending Steers When None Are Pending

The pending-steers row follows the conversation's messages, so it renders for
every streamed delta, and it resolved the run's pause state before checking
whether it had anything to show. That check walks every part of every message.
It now runs only with a steer to display.
2026-11-14 12:15:48 -05:00
Marco Beretta
a204779fe7
🎛️ refactor: Move the Composer Palette Into @librechat/chat (#18136)
- refactor: Move the Composer Palette Into the Chat Package
- fix: Keep the Palette Usable Without a Windowed List or Catalog Host
- test: Cover Picking Palette Rows With the Mouse
- fix: Leave Palette Keys to IME Composition and Focus to the Field a Press Moved It To
- fix: Localize the Palette Without Its Data Host
- fix: Ship the Composer Popover Motion With the Client Package
- test: Check the Composer Motion Survives the App Cascade
- fix: Offer Palette Favorites Only Where the Host Stores Them
- fix: Name the Palette Favorite Shortcut Only Where It Works
- fix: Leave the Bookmark Shortcut Alone Where the Palette Stores No Favorites
2026-11-14 18:02:05 +01:00
Marco Beretta
dc257cadc9
📎 refactor: Move the Attachment and Retrieval Rows Into @librechat/chat (#18146)
- refactor: Move Attachment and Retrieval Rows Into the Chat Package
- refactor: Drop Dashes From the Moved Attachment Comments
- test: Cover the Moved Attachment and Retrieval Rows
- refactor: Keep the Shared Button on the Attachment Preview Download
- test: Pin the Fold and Settle Motion Against the App Stylesheet
2026-11-14 17:21:04 +01:00
Marco Beretta
e714aba067
⏳ refactor: Render the Pending Turn and Steers From @librechat/chat by Default (#18134)
- refactor: Render Pending Turn and Steers from the Package
- refactor: Keep Package Pending Rows Inert Without a Steer Host
- fix: Read the Host Thread Mode on Every Render
- fix: Point the Hosts Guard at the Messages Loader
- fix: Follow the Moved Pending Rows in the Guard and Lazy Chunk Specs
- fix: Ship Message Body Typography With the Shared Theme Styles
- fix: Keep the App Message Typography Cascade With the Shared Styles
2026-11-14 17:01:27 +01:00
Danny Avila
89a4b9eee5
🎞️ perf: Run the In-Flight Label Sweep on the Compositor (#18128)
* 🎞️ perf: Run the In-Flight Label Sweep on the Compositor

The sweep on a running tool call, streaming reasoning and the elapsed timer
animated `background-position` under `background-clip: text`, which no
browser can hand to the compositor. Every frame of it ran style, paint and
commit on the main thread, and each paint walked the transcript around the
label, so the cost of a frame grew with the conversation and the sweep
stuttered whenever the main thread was busy.

`Shimmer` in `@librechat/client` draws the same sweep from two transforms
that cancel: a masked band slides across the label while a second copy of the
text inside it slides back, so the glyphs hold still and only the gap in the
mask moves. The copy is generated content, so the label is still one text
node. Every in-flight label renders through it.

`e2e/benchmarks-fade` measures a frame and each kind of stream event inside
an exported conversation, from a Chromium trace of the built client.

* 🧪 test: Let the Frame Benchmark Open a Chat in a Chosen Theme
2026-11-14 10:16:52 -05:00
Marco Beretta
712edc08fe
🛂 refactor: Move the Tool Approval Review Into @librechat/chat (#18133)
- refactor: Move Tool Approval Review into the Chat Package
- refactor: Tag the Response Review Tool Batch Spec as a Scenario
- fix: Resume the Composer Review Panel Through the App Host
2026-11-14 16:13:03 +01:00
Marco Beretta
393328f93c
🧭 refactor: Move the Code Workspace Menu Into @librechat/chat (#18138)
- refactor: Move the Code Workspace Menu Into the Chat Package
- refactor: Share the Composer Chip Classes From the Chat Package
- test: Provide the Shared Composer Class Helpers to the Workspace Menu Spec
2026-11-14 16:12:45 +01:00
Marco Beretta
4bc9053788
🧵 perf: Load the Message List When a Conversation First Shows (#18126)
* perf: Load the Message List When a Conversation First Shows
2026-11-14 01:10:46 +01:00
Marco Beretta
368e376cee
📏 style: Keep the Composer a Little Clear of the Chat Column's Edges (#18120)
* style: Keep the Composer a Little Clear of the Chat Column's Edges
2026-11-13 18:01:32 +01:00
lia-by-librechat[bot]
e4c0e47081
🥋 fix: Unify Steering and Chat Attachment Presentation (#18116)
Co-authored-by: Lia <lia@librechat.ai>
2026-11-13 11:43:47 -05:00
Marco Beretta
78c516b610
🍴 style: Restyle the Fork Popover and Calm the Feedback Hover (#18103)
* style: Restyle the Fork Popover and Calm the Feedback Hover

* fix: Follow the Stored Fork Mode and Update the Specs for the New Fork Popover

* test: Find the Fork Options Link by Both of Its Names
2026-11-13 13:45:42 +01:00
Danny Avila
fd0ea884e0
🧶 fix: Close Two Stream Races That Untraced Mock E2E Attempts Expose (#18075)
* 👁️ fix: Hold the Seen Check's History Refetch While a Run Streams

The seen check revalidates a conversation's history when the list reports a reply that no fetch has shown yet, and it asked for that refetch whenever the messages query was idle, including under a run the pane is attached to.

A resumed run writes its response into the cache from the stream's sync. A refetch that starts after that sync returns the stored row for the same message, and the cache takes it because both lists are the same length, so the live response is replaced by what was persisted when the run began until the stream's next event rewrites it. A manual compaction resumed after a reload shows it for as long as the summarizer takes: its stored row is an empty summary part with no running marker, so "Summarizing..." disappears and nothing stands in for it.

The refetch now waits while a run is in flight. The check already re-runs when the run ends, which is when revalidating is safe.

* 🧪 test: Wait for the Late Subagent File's Stream Before Reading Its Turn as Over

Stop is withheld between a turn's admission and its stream attaching: no generation epoch exists yet for it to stop. The scenario read Stop's absence right after the POST as the end of the turn, then asserted without waiting that its route had injected the late file into that stream. When the check ran inside that interval the stream had not been requested yet, so the assertion failed on a turn that went on to deliver the file.

It now waits for the reply only the stream carries, then for Stop to go.
2026-11-12 07:20:10 -05:00
Marco Beretta
6da03b1460
🎨 fix: Polish ClickHouse Theme Controls, Menus and Panels (#18042) 2026-11-11 09:03:40 +01:00
Dustin Healy
8552368176
🔄 fix: Restore MCP Sign-In Prompts After Reload (#17604)
* 🔄 fix: Restore MCP Sign-In Prompts After Reload

* wip: Separate OAuth Presentation and Publication Lifecycles

* wip: Verify OAuth Publication and Presentation Ownership

* fix: Fence OAuth Publication and Preserve Tool Outcomes

* fix: fence first-turn OAuth recovery by durable identity and retention

* test: Cover Canonical OAuth Recovery Replay in Manager

* fix: Unify Startup OAuth Prompt Lifecycle Ownership
2026-11-10 21:04:00 -08:00
Danny Avila
60a74e6cd4
🧷 fix: Promote Unapplied Steers to Durable Queued Turns at Run End (#18028)
* 🧷 fix: Promote Unapplied Steers to Durable Queued Turns at Run End

A steer the server accepted (202) but the run never applied was handed back
in FINAL as `pendingSteers` and re-owned by the browser as a tab-local queued
message. A reload, closed tab, or a predecessor race before the drain lost it.

At terminal publication, a normally completed run now promotes such steers
into server-owned agent queued turns (parent: the ended response, epoch: the
ended generation's createdAt, chained behind any turn already queued against
that epoch). The job store hands the parked copy over atomically
(`promoteSteerLeftover`: parked item removed, receipt settled `recovered`), so
status recovery, lost-ACK retries and legacy recovery starts cannot queue the
same words again. FINAL reports the receipts in `promotedSteers`; the client
adopts them as server rows instead of converting the steer locally.

Promotion is opt-in per steer (`promoteLeftover`, sent only by clients that
adopt receipts and only for steers with no tab-only context), so older
clients keep the legacy path unchanged, and older servers simply never
report `promotedSteers`.

* 🔒 fix: Settle a Promoted Steer's Hand-Off at Admission, Not Only at FINAL

The job-store hand-off of a promoted steer now returns an outcome and stamps
the receipt with the owning queued turn, so it is idempotent for that turn.
The queued-turn resolver repeats it before admitting a promoted turn: it
completes a hand-off a crash interrupted, and cancels the turn when the
parked copy was discarded or recovered elsewhere, so the words never run
twice. At FINAL, a row whose hand-off was refused and whose retirement cannot
be confirmed is withheld from `pendingSteers` and left for that admission
check. The conservative reconcile frame keeps `promotedSteers`, and the
client adopts it there before sweeping local chips.

* 🔏 fix: Give Promoted Steers Durable Ownership, Their Run's Queue Lineage and Approval Mode

A turn promoted from an unapplied steer now records its source on its own
row: the steer's ids, the generation that accepted it, and a mark set only
once the job store handed the parked copy to that row. Admission runs a
promoted turn on that mark or on a hand-off the job store confirms now;
without proof (the store's evidence expired, or the host cannot ask) the
turn is held for review instead of running.

- Hand-off replies that are lost no longer cancel the row. The row stays as
  the client's handle and its admission settles ownership, so a committed
  hand-off can no longer leave the steer with no runnable copy.
- A replayed promotion never hands the parked copy to a row that was
  cancelled or failed.
- Promoted turns join the queue lineage of the generation that accepted
  the steer, so a sibling still queued behind that run no longer strands
  them with a predecessor mismatch.
- The steer request carries the sender's code approval mode onto the
  promoted turn; an unreadable mode keeps the steer on the client path.
- A steer whose quotes its owner stripped stays on the client path.
- The queued-turn receipt names the promoted steer by both ids, and the
  receipt list retires a pane's local copies even when it missed FINAL.

* 🚧 fix: Fence Promoted Turns to Workers That Prove Steer Ownership

A promoted row without an approval mode was published under the v1 queued
turn capability, so during a rolling deploy a worker that predates the
ownership check could claim it and run an unsettled row while the parked
steer was still recoverable elsewhere.

Promoted rows now publish under a new agent_queued_turn_v3 capability and a
v3 delivery identity, always reserved before insertion. A replica that
projects an older version can neither publish the reserved delivery nor
claim it, and enqueue refuses a promoted row without a reservation.

* 🪦 fix: Keep a Dead Promoted Turn Answering for Words It Held

A pane that learns of a promoted steer from the receipt list dropped the
mapping for every dead row. A row quarantined as ADMISSION_INDETERMINATE can
still settle as admitted, and a row that died after it was proven the sole
owner of the words is their only surface, so in both cases the pane kept a
chip whose recovery could never run.

The receipt now says whether the turn owned its steer's words, and a dead
receipt keeps answering for them when it did or when its admission is
indeterminate. A replayed promotion applies the same rule to a settled row.

* 🧾 fix: Find Promoted Turns by the Steer a Pane Holds, Join Root Lineages, Redact Hand-off Errors

- A promoted turn's request id is now derived from the client steer id, and a
  pane asks for the receipts of the steers it still holds a local copy of
  (recovery rows and failed chips). A promoted turn that already ran is only
  listed when asked for by name, so a pane that missed FINAL now finds it
  and retires its copy. A client steer id too long to key a queued turn is
  not promoted.
- The lineage lookup includes a generation admitted from a root queued turn,
  which has a parent and no epoch. The promoted turn joins that lineage
  without an epoch instead of opening a second one.
- A failed hand-off at admission reports a fixed message. The job store's
  own error text stays out of the dead-letter record a client can read, and
  promotion logs carry safe error metadata instead of error text.

* 🔢 fix: Ask for Held Steers First Under the Receipt Lookup Limit

The receipt list answers for at most 100 request ids, and a pane's server
rows were listed ahead of the steers it still holds, so a full server queue
could push every held steer out of the request. A promoted turn that had
already run was then never found.

Held steers now come first. An active server row is listed whether or not
it is asked for, while a settled promoted turn is found only by name.
2026-11-10 22:43:32 -05:00
Marco Beretta
f8ab7fe67c
⏱️ fix: Preserve Running Tool Timers Across Disclosure Remounts (#17997)
* fix: Preserve Running Tool Timers Across Disclosure Remounts

* test: Cover Running Tool Timer Disclosure Lifecycles
2026-11-10 15:56:09 +01:00
lia-by-librechat[bot]
e6567c7a68
📰 fix: Preview Pasted Text Without Blocking Sends (#17962)
Some checks failed
Publish `librechat-data-provider` to NPM / pack (push) Has been cancelled
Publish `@librechat/data-schemas` to NPM / pack (push) Has been cancelled
Docker Dev Images Build / publish (push) Has been cancelled
Sync Helm Chart Tags / Ignore non-main push (push) Has been cancelled
Sync Helm Chart Tags / Sync chart tags (push) Has been cancelled
Publish `librechat-data-provider` to NPM / publish-npm (push) Has been cancelled
Publish `@librechat/data-schemas` to NPM / publish-npm (push) Has been cancelled
* 📰 fix: Preview Pasted Text Without Blocking Sends

* test: Cover Paste Cleanup and Accessible Preview Text

* fix: Preserve Paste Cleanup Across Upload Races

* test: Pass Paste Identity to Draft Lock Regression

* fix: Consume Paste Replacement Chains and Enforce Upload Limits

* fix: Flatten Pending Paste Edits Onto Their Surviving Source

* fix: Transfer Recovery Ownership While Editing Pending Pastes

* fix: Persist Bounded Paste Snippets and Isolate Replay Drafts

* fix: Type File Sanitization by Its Preview Inputs

* fix: Preserve Pending Uploads Above During-Run Text Limits

* fix: Isolate Historical User Reruns From Live Paste Drafts

* fix: Restore Paste Drafts Before Persisting Composer State

* fix: Expose Paste-Only During-Run Send Controls

* test: Scope Paste Warning Assertion to Toast Viewport

---------

Co-authored-by: Lia <lia@librechat.ai>
2026-11-10 08:10:21 -05:00
lia-by-librechat[bot]
b4afbb3a1e
🛝 perf: Render Chats Independently of Catalog Discovery (#17692)
* 🛝 perf: Render Chats Independently of Catalog Discovery

* Preserve Target Authorization and Passive Startup Intent

* Keep Startup Selection, Readiness, and Catalog Keys Consistent

* Preserve Remembered Targets and Validate Scoped Presets

* Retain Remembered Assistant Resource Aliases Across Endpoint Switches

* Apply URL Targets Before Waiting for Send Readiness

* Fix First-Page Agent Discovery and Await Model Selection

* Preserve Spec Access and Refresh Selected Assistant State

* Preserve Builder Deletion State and Start History Reads Earlier

* fix: Preserve Startup Recovery and History Read Ownership

* fix: Retain Express Query Routing in Assistant Lookups

* fix: Prioritize Route Reads and Recover Credential Changes

* fix: Bind Credential Revocation to Its Requested Scope

* fix: Refresh Credential Metadata After Pending Key Reads

* fix: Revalidate Inactive Credential Metadata on Target Mount

* fix: Preserve Reviewed Chat Resolutions After Rebase

* fix: Resolve Dev Conflicts and Preserve Startup Boundaries

* test: Preserve the ChatView Slot Target Boundary

* fix: Defer Terminal Delivery Until Subscription Attachment Completes

* fix: Contain Deferred Terminal Callback Failures

* test: Classify Historical Tool Name Capability Reads

* fix: Activate Requested Catalogs and Isolate Provider Failures

* fix: Keep Healthy Provider Choices Available During Catalog Recovery

* test: Exclude Copied Trace Bundles From Dependency Comparison

---------

Co-authored-by: Lia <lia@librechat.ai>
2026-11-09 11:11:22 -05:00
Marco Beretta
c40eb522e6
⏱️ fix: Bound Generation Status Reads So a Silent Request Cannot Strand the Pane (#17927)
* fix: Bound Generation Status Reads So a Silent Request Cannot Strand the Pane
* test: Cover Status Reads That Never Answer Across Terminal, Error and Foreground Paths
* test: Match Scenario Replies Exactly
2026-11-09 16:00:45 +01:00
Marco Beretta
d6fb39727b
🧺 refactor: Move the Composer Tray and Staged Items Into @librechat/chat (#17817)
* refactor: Move the Composer Tray and Staged Items Into @librechat/chat

* chore: Retest Against Current Dev
2026-11-08 23:46:39 +01:00
Marco Beretta
a04ab256df
🧰 refactor: Move Part Helpers and activityLabels Into the Chat Package (#17771)
* refactor: Move Part Helpers and activityLabels Into the Chat Package

activityLabels moves to packages/chat/src/core/parts and exports from
@librechat/chat. useLazyCollapseBody, useProgress and useThrottledValue move
to packages/chat/src/react/parts (@librechat/chat/react). useExpandCollapse,
CopyButton, ActionButton, LangIcon and its icon paths move to
packages/chat/src/components/parts (@librechat/chat/components), since they
read @librechat/client. Specs move with them, client importers and mocks point
at the package entries, and design-lint suppressions follow the moved files.
The fold-type set in activityLabels is built on first use so the module reads
no data-provider enum at load, with a spec pinning its members.

* test: Point the About Spec's Localize Mock at the Package's Copy Button

* chore: Retest Against Current Dev
2026-11-08 23:46:32 +01:00