* 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
* 🔐 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
* feat: Audit Resource ACL Changes and Fail Closed by Default
* fix: Keep Non-Reversible Admin Audit Handlers Fail-Open
* docs: Narrow AUDIT_LOG_FAIL_CLOSED Description
* fix: Audit and Restore ACL and Insights Changes in One Pass
* fix: Break Audit and Insights Permission Type Cycle
* test: Cover Resource ACL Audit Scenarios
* refactor: Audit Resource Permission Changes Before Writing
* test: Align Concurrent Revoke Audit Expectation
* fix: Skip Deleting ACL Entries That Were Not Audited
* fix: Read ACL Snapshots Through the Write Session
* fix: Never Block Revocations on Audit Outages and Normalize Principal Keys
* fix: Let an Explicit Public Disable Win Over a Public Update
* fix: Audit Duplicate ACL Rows as Combined Permissions
* fix: Audit Permission Changes Under One Target and Dedupe Revokes
* fix: Audit Capability Grants Before Writing Them
* feat: Serialize Resource Permission Updates With a Per-Resource Lease
* fix: Fence the Resource Lease Before Writes and Always Audit Grant Assignments
* fix: Renew the Resource Lease Before Each ACL Write Phase
* fix: Serialize System Grant Assignment and Revocation With a Per-Grant Lease
* fix: Keep Leases Alive During Audits, Bound Lock Index Wait, Canonicalize Audit Target IDs
* fix: Retry Deferred Revoke Audits Under the Lease and Audit Canonical Principal and Role IDs
* test: Expect Role IDs in Permission Audit Metadata
* fix: Read Mutation Snapshots From the Primary Outside Transactions
* fix: Flush Deferred Audits Before Cache Invalidation, Keep Renewals Monotonic, Keep Role Case in Grant Lease Keys
* refactor: Map the Busy Permission Error to Its Code in the API Package
* style: Sort Lease Imports and Type the Renewal Spec Read
* fix: Keep Success Audits After Commit, Report Downgrades as Revocations, Code Audit Outages
* refactor: Move the Audit Outage Code to Its Own Module
* fix: Translate Lock Failures, Lease Non-Transactional Sessions, and Code Grant Audit Outages
* fix: Sanitize Lease Renewal Failures at the Permission Boundary
* fix: Annotate the Unavailable Error Code for Isolated Declarations
* fix: Keep the Admin Route Fail-Closed Opt-In and Document Lease Clock Skew Safety
* fix: Translate Grant Lease Store Failures to a Retryable 503
* fix: Log Failed Grant Audit Writes With Safe Metadata Only
* test: Detect Raw Error Arguments in the Grant Audit Log Spec
* feat: Make Permission Lease Limits Configurable and Localize Retryable Sharing Failures
* fix: Bound Lock Index Readiness by the Lease Wait and Carry the Resource ID in Every Audit Entry
* test: Cover Lease Config Reaching the Leases and the Sharing Dialog Failure Messages
* fix: Load App Config on the Sharing and Grant Routes and Log Failed Lease Releases
* perf: Load App Config Only on the Grant Mutation Routes
* refactor: Move text-like message parts into @librechat/chat
Text, EmptyText, CollapsibleText, Summary and AgentUpdate move into the package's components entry with their unit specs and read the app only through MessagePartsHost, which gains renderMarkdown, useSmoothStreaming, useAgent and renderAgentIcon. The app's markdown and agent-icon renderers register from the Parts barrel, so the host module keeps its import graph.
The design-suppression runner compares a moved file's diagnostics by their first sentence: the remedy that follows names app-only compositions for client paths, so the same violation read as new after a move.
* test: Cover text-like parts rendered from @librechat/chat in the browser
* fix: Enforce Terms Acceptance on the Server When modalAcceptance Is On
* fix: Mark Backfilled Terms Acceptance Timestamps
* test: Cover Server-Enforced Terms Acceptance in the Mock Harness
* fix: Gate Management Routes and Skill Sync and Resolve Terms Policy Fail-Closed
* fix: Evict Cached Auth Documents When Terms Acceptance Is Reset
* fix: Guard Skill Sync Behind Terms Acceptance for Every Skill List Route
* fix: Move Terms Skill-Sync Guard Into the API Package and Evict All Users on Reset
* fix: Batch Terms Reset Cache Eviction and Sign the Spec User In Fresh
* fix: Let Stop Through the Terms Gate, Refresh Startup Config, and Wait Out Failed Eviction
* refactor: Narrow the Terms Exemptions and Share One Refusal Path Across Clients
* refactor: Compose the JWT Terms Gate Through an API Package Helper
* style: Sort Imports for the Shared Terms Refusal Helper
* test: Expose the Terms Gate Helper in the JWT Auth Spec Mock
* test: Cover the Terms Refusal Code on Pre-Stream Upload Errors
* feat: Paint the Operator Theme on a First-Ever Visit
The server embeds the deployment's base interface.theme in the HTML shell, with both modes the build resolved for a bundled name, so the boot script and the first commit of DeploymentTheme paint it before /api/config answers. A tab's owned cache still outranks it, shared links skip it, and a request scoped by a trusted X-Tenant-Id header gets the shell without it.
* test: Type the Inline Shell Theme Fixture as Raw JSON
* test: Tag the First-Visit Scenarios Literally
* fix: Ignore a Theme Boot File That Is Not an Object
* fix: Keep the Base Theme for a Tenant Header the Config Rejects
* fix: Report a Theme Boot File That Exists but Cannot Be Read
* fix: Embed the Base Config Theme in the Experimental Shell
* test: Stand In the Shell Theme for an Owned Copy Whose Session Ended
* fix: Boot-Paint a Cached Theme Only for the Tab's Signed-In Owner
The boot script and DeploymentTheme's first commit replayed the deployment-theme cache without checking its owner, so a browser that last held one identity's theme painted it for another until the config answered. The tab now records its signed-in owner in session storage and both paths replay the cache only when it matches.
* test: Assert Session Ends Forget the Tab Theme Owner
* test: Hold the First-Paint Config Answer Until the App Paints
* fix: Skip the Boot-Painted Theme Cache Once the Session Has Ended
* fix: Bind the Readable Session Hint to the Signed-In Owner
* test: End the Session for Real in the Expired-Hint Scenarios
* fix: Clear the Session Hint When a Local Refresh Finds No Session
* test: Give the Refresh Specs the Cookie Surface the Session Hint Uses
* test: Count the Signed-Out Config Answer in the No-Cached-Paint Scenarios
* fix: Retire the Session Hint on Every Rejected OpenID Refresh
* fix: Retire the Session Hint When a Refresh Carries No Token
* fix: Retire the Session Hint on Account Deletion and Password Reset
* refactor: Own the Session Hint Lifecycle in the Typed Auth Cookies
* fix: Hold Button Heights and the Dialog Close Button at the 24px Target
* fix: Write a Zero Button Height as a Length the Target Floor Can Compare
* test: Let the Delete Dialog Settle Before Measuring Its Close Glyph
* test: Pin the Theme Cache Digest the Rebased Resolver Emits
* feat: Add a Connected Account Setting for Pull Requests
* fix: Watch an Open Account Sign-In and Keep the Retry Button Named
* fix: Name the Disconnect Confirmation and Show the Provider the Server Reports
* feat: Tell the Client How Long a Pull Request Account Sign-In Lasts
* fix: Follow the Sign-In Lifetime and Keep Account Actions Settled Past Settings
* fix: Watch an Account Sign-In Until Its Window Closes, Even After Settings Closes
* fix: Refresh Pull Requests Once per Change of the Credential They Were Fetched With
* fix: Record Every Status the Sign-In Watch Reads
* fix: Keep Watching a Severed Sign-In Through Its Landing Page and End Watches With the Session
* fix: Drop a Sign-In Begun Before the Session Ended
* fix: Keep a Surviving Grant Removable and Tie a Sign-In Watch to Its Own Flow
* fix: Ask for the Pull Request Account Wherever Pull Requests Are On
* fix: Refresh Pull Requests on a Session's First Status and End a Failed Sign-In's Watch
* fix: Ignore an OAuth Failure That Names No Sign-In Flow
* fix: Start No Sign-In for a Window Closed Before the Server Answered
* fix: Keep a Known Grant Removable While the Status Check Fails
* fix: Name a Grant Without a Current App Only as an Account
* fix: Keep the Pull Request Account Row Readable on a Phone
* fix: Show a Grant Whose App Is Off as Not in Use
* fix: Apply a Sign-In Status Asked For Before the Flow Expired
* fix: Keep Focus When Removing the Last Pull Request Grant and Reuse Its Status
* fix: Resync Pull Request Credentials After Failed Sign-Ins and Disconnects
* fix: Ask for the Connection Status Afresh Once a Sign-In Settles
* fix: Resync Pull Requests From the Settings Visibility Status
* fix: Reconcile Pull Request Credentials Until a Status Read Succeeds
* fix: Keep Pull Request Sign-In State Accurate Across Failures and Account Switches
* fix: Drop Replaced Sign-In Answers and Reset Status When the Account Changes
* fix: Reset Unwatched Connection Status and Keep Focus When a Retry Hides the Row
* fix: Hear Late Sign-In Settlements and Explain Connect Failures After Settings Closes
* fix: Listen Until a Sign-In Settles and Keep Focus After a Dismissed Disconnect