* test: Spec the First-Sentence Diagnostic Comparison in the Suppression Runner
* test: Copy the Diagnostics Module into the Suppression Spec Synthetic Roots
* test: Copy the Diagnostic Comparison Spec into the Suppression Synthetic Roots
* refactor: Drop Queue Reset Helper From The Client Queue Module
* refactor: Drop Unused Shortcut Getters And Subagent Batch Wrappers
* refactor: Move HITL Approval Payload Builder To Test Fixtures And Drop Dead Helpers
* refactor: Remove Unused Agent Helpers and Superseded Wrappers
* refactor: Remove Dead Auth, Middleware, Protection and Prompt Helpers
* refactor: Remove Dead MCP, File, Skill and Endpoint Code
* refactor: Remove Dead Stream, Telemetry, Utility and Type Exports
* chore: Drop Unused packages/api Dependencies From bun.lock
* refactor: Keep Published Compatibility and Deprecated packages/api Exports
Bump @modelcontextprotocol/sdk from ^1.30.0 to ^1.32.1 in api and
packages/api. 1.31.0 binds stored OAuth credentials to the issuing
authorization server; LibreChat does not use the affected auth()/
authProvider path and already pins refreshes to the stored token endpoint.
1.32.0 makes the client transports follow same-origin redirects
themselves, which would re-issue requests the connection fetch declined
(hop cap, reauthorized tools/call). Set redirectPolicy: 'follow' so
redirects stay with the connection fetch, and cover both transports with
real-SDK tests.
Plan the complete mock suite's shards from recorded per-file durations instead of Playwright's equal-count split, widen the memory lanes from six to ten, and give the nightly full suite ten shards per store so it fits its 30-minute job timeout again.
* 🔐 fix: Skip Reasoning Labels for Encrypted Reasoning
OpenAI models on Bedrock (and Claude's redacted thinking on Bedrock) return
reasoning as encrypted `redactedContent` bytes. The current agents SDK
base64-encodes those bytes into the reasoning stream, so they arrive as THINK
text: the reasoning-label wiring summarized the blob ("Inspecting an encoded
data snapshot"), activity and phase labels quoted it as reasoning evidence, and
the UI rendered it as thinking.
Add a shared `stripOpaqueReasoning` / `isOpaqueReasoning` predicate in
data-provider that recognizes long unbroken base64/base64url runs (Bedrock
redactedContent, Anthropic redacted_thinking data, OpenAI encrypted_content,
Gemini thought signatures) and keep them out of every label path:
- reasoning labels drop encoded deltas, ignore persisted payloads on resume,
and re-check the accumulated text before a billed label call
- activity-label and phase-summary evidence carries readable excerpts only;
phase anchoring still uses the raw excerpt
- the THINK renderer, grouped reasoning rows and the live header show a
neutral "Reasoning (encrypted)" marker instead of the payload, and ignore
labels previously generated from it
Readable reasoning on every provider, including readable text mixed with an
encoded payload in the same step, is still labeled.
* fix: Classify streamed and persisted payloads by readable content
- isOpaqueReasoning / stripOpaqueReasoning ignore the persisted `<think>`
wrapper, so stored encrypted reasoning renders as the encrypted marker and
never reaches label evidence as tags-only "text"
- add advanceOpaqueReasoning, a streaming cursor that holds a trailing
payload-alphabet run until it settles as a word or grows into a payload,
so a payload split across sub-threshold deltas is dropped as it streams
- reasoning labels count only settled readable characters plus a word-sized
pending tail, so ciphertext fragments never advance the minChars or
updateChars gates or trigger extra billed label calls
* fix: Show readable reasoning around payloads and settle words before counting
- the reasoning disclosures, grouped rows, live header and conversation
export render and copy the readable text of a THINK part with encoded
payloads removed; the encrypted marker stays for parts with nothing readable
- reasoning labels count and send only settled readable text: an undecided
trailing run never advances minChars/updateChars or reaches the prompt,
whatever the configured thresholds, and a short final word settles when the
step closes
* fix: Classify reasoning before every bound and across resume
- once a run is classified as a payload, it continues through the next
non-payload character even when that arrives in the same delta as readable
text, so no tail fragment of the payload is released as readable
- add sliceReasoningTail: the activity-phase rolling reasoning window (and its
snapshot/restore bounds) never starts inside an unbroken run, so a payload cut
by the window cannot leave a fragment too short to classify; the window stays
a substring of the raw THINK text, so phase anchoring is unchanged
- a resumed reasoning step replays its persisted text through the stream
filter and keeps the resulting cursor, so a payload prefix that was still
undecided at the snapshot is dropped once the continuation classifies it
* fix: Classify phase evidence while it streams and mask payloads while pending
- activity phases classify each reasoning delta with the stream cursor and keep
a readable rolling window beside the raw anchor window; tracked activities
carry readableExcerpts as prompt evidence, so a window cut into a payload can
never forward a fragment (older snapshots fall back to stripping); the
cursor-free sliceReasoningTail is removed
- add readableReasoning / flushOpaqueReasoning: while reasoning streams, the
disclosures and live header hold back a trailing run that could still grow
into a payload instead of showing its first characters
- the message editor offers no field for payload-only reasoning and shows only
the readable text of mixed reasoning; an unchanged part is never written, so
its stored payload stays intact
* fix: Replay legacy phase snapshots through the reasoning stream filter
A pending-reasoning lane restored from a snapshot without a readable window
or cursor is replayed through advanceOpaqueReasoning instead of stripped, so a
payload prefix that was still undecided at the snapshot stays in the cursor
and is dropped once the continuation classifies it.
* fix: Drop the cut leading run of a full legacy phase window
A legacy pending-reasoning window that filled the 600-char bound may have been
cut inside a payload, so its leading payload-alphabet run is dropped before the
replay; a shorter window is the whole lane and is replayed as is.
* fix: Keep payload-bearing reasoning read-only and drop payload-derived titles on resume
- reasoning that carries an encoded payload is not offered in the message
editor: the edit endpoint replaces the whole value and the payload cannot be
positioned in an edited draft, so editing would silently delete it
- a resumed reasoning step whose persisted text has no readable reasoning
drops its existing title (which could only describe the payload) instead of
carrying it forward where a short readable continuation would revive it
* fix: Reset a resumed payload-derived title on the client, only for payload-only steps
- a resumed step drops its title only when its persisted reasoning is entirely
an encoded payload, so a short readable token (still undecided for the
stream cursor) keeps a valid title
- dropping it emits a same-step on_reasoning_label reset, which the client
already applies, so a resumed client clears the snapshot title too
* fix: release OpenID delivery lease when the client disconnected before delivery
A refresh whose client disconnects before the response is sent claims the
delivery lease and then arms finish/close listeners on a response that has
already closed. Neither event fires again, so the lease is never released and
every later refresh for the same generation polls until the 30-second lease
expires.
Arm the listeners only while the response is open; otherwise release the lease
directly after the send.
* fix: defer the silent refresh until a prerendered page is shown
A prerendered page runs the startup silent refresh before the user sees it.
When the browser discards the prerender, the refresh is aborted mid-flight
after the server has already rotated the refresh token, and the page the user
actually opens has to recover from a session it never received.
Wait for prerenderingchange before refreshing so a prerender has no effect on
the session.
* refactor: move OpenID response delivery into packages/api
* refactor: Move Pending Quotes and Manual Skills onto Jotai
* test: Tag the Quote Staging and Delivery Specs as Scenarios
* fix: Clear Staged Quotes and Skill Picks for Every Conversation on Sign-Out
* fix: Mask Email Addresses and Drop Personal Identifiers from Logs
* fix: Log User IDs in OpenID Admin Role and LDAP Domain Block Messages
* fix: Mask Unicode Email Addresses in Log Redaction
* test: Add Log Email Masking Scenarios
* fix: Bound the Email Redaction Matcher and Handle Quoted Local Parts
* fix: Mask Quoted and Special-Character Email Local Parts
* fix: Redact Whole Email Tokens, Top-Level Log Fields and Metadata Keys
* fix: Redact Top-Level Metadata Keys and Escaped Quotes in Email Local Parts
* fix: Redact Truncated Emails, Address Literals and Request Paths in Logs
* fix: Redact the Full Log String Before Truncating
* fix: Preserve Colliding and Object Keys When Redacting Log Metadata
* fix: Bound Log Redaction to a Window Past the Truncation Limit
* fix: Redact the Truncation Window Without a Whitespace Cut
* fix: Redact Serialized Quoted Addresses and Keep Key Collisions Linear
* fix: Bound Every Log Redaction Path and the URL Credential Pattern
* fix: Keep Long-Scheme Credential Redaction and Serialized Escaped Quotes
* test: Cover Every Secret Shape Across the Log Truncation Cap
* fix: Drop Unfinished Window Tokens, Mask Short TLDs and Redact Direct Error Stacks
* fix: Treat Input End as a Token Boundary and Mask Parenthesized Identifiers
* fix: Remove the Quoted Local Part Length Cap Without Quadratic Scans
* fix: Drop an Unfinished Quoted Address at the Window Edge
* fix: Check Quoted Locals Before Accepting a Window Delimiter
* fix: Count Only Opening Quotes When Trimming the Window
* fix: Track Unmatched Quoted Locals Instead of Counting Closing Quotes
* fix: Lift Residual Email Caps, Keep Punctuated Credential URIs Masked and Move OBO Log Id to the API Package
* fix: Mask Empty Quoted Locals and Tolerate Read-Only Log Fields
* fix: Return a Sanitized Copy When a Log Field Cannot Be Replaced
* fix: Treat a Failed Key Removal as a Failed Replacement and Guard Stack Writes
* fix: Skip Heavy Error Graphs and Accept Escaped Backslashes in Serialized Locals
* fix: Accept Lone Escaped Backslashes in Serialized Locals Without Rescans
* fix: Compact Axios Request Info Before Redaction and Skip Heavy Splat Error Graphs
* fix: Redact Address Keys on Nested Error Objects
* fix: Materialize and Redact Enumerable Getters on Nested Errors
* fix: Guard Throwing Top-Level Getters and Skip Heavy Fields Only on Error Records
* fix: Skip Serialized Quotes When Trimming an Unfinished Address
* fix: Bound Redaction With a Per-Record Node Budget and Accept JSON Control Escapes
* fix: Match Credential URIs From the Separator So Scheme Length Is Unbounded
* fix: Count Strings Against the Redaction Budget and Guard Nested Getters
* fix: Rebuild the Log Record When a Top-Level Accessor Ignores Writes
* fix: Rebuild the Log Record When a Stack Accessor Ignores Writes
* fix: Guard the Initial Stack Read on Direct Error Logs
* fix: Accept Escaped Solidus and Preserve the Outer Budget on Reentrant Logging
* fix: Guard the Axios Marker and Error-Like Probes Against Throwing Getters
* fix: Guard the Axios Marker on Nested Errors
* fix: Replace Skipped Heavy Fields Up Front, Budget Top-Level Fields and Mask Encoded Emails
* fix: Mask Encoded Address Keys and Guard Nested Axios Config Compaction
* fix: Redact URL Objects in Compact Request Info
* fix: Remove Encoded Email Caps and Strip Serializer Hooks From Clones
* fix: Strip Serializer Hooks From Error Clones and Top-Level Records
* fix: Neutralize Inherited Serializer Hooks on Log Records
* fix: Guard the Serializer Hook Probe
* fix: Replace Function Values in Log Records
* fix: Mask Percent-Encoded Domain Separators in Logged URLs
* fix: Bound the Encoded Email Domain at URL Delimiters
* fix: Shadow Throwing Serializer Getters on Nested Errors
* fix: Rebuild Accessor Messages and Mask Doubly Encoded Addresses
* fix: Redact Multiply Encoded Address Keys
* feat: Make the Log Redaction Node Budget Configurable
* fix: Guard Message and Serializer Property Reads
* fix: Contain Proxy Failures and Redact the Compact Request Method