* 🪪 feat: Authorize a Schedule in the Same Step That Creates It
Where consent is on, a new schedule was created unauthorized and stayed exempt until
its owner edited it or the operator's deadline passed. The create form now asks what the
schedule may use, from the offer for its agent, and the schedule is created with its
grant in one write. A schedule created without a choice is marked as needing
authorization from the start.
The grant dialog's tool list and choice are split out so the form shows the same thing.
* 🔁 fix: Read the Offer Again When a Create's Authorization Is Turned Down
The create form kept the offer it first read. Once the server refused a choice made
from it, every retry sent the same refused digest. The form now reads the offer again,
keeps the ticks that still apply, and holds the create until the new offer is in.
* 🧭 fix: Check Readiness at Creation for the Tools the Owner Allowed
A schedule being created has no stored grant, so its readiness check covered every
MCP tool the agents select, including servers the owner left out. The grant is now
validated first and handed to the check, which covers what it allows.
* 🗓️ feat: Let Any Schedule Be Authorized, With or Without an MCP Server
A grant needed at least one MCP tool, so a schedule whose agents use no MCP server, or
none the operator declared, had nothing to authorize and its other tools were never
gated. A grant can now allow the agents' other tools alone. It has no consent to carry a
deadline, so every grant stores its own lifetime; one made before that is read from its
consents.
A schedule that needs a grant it does not have was refused its MCP calls only. Every
tool call is now refused with the same reason until the owner confirms.
* 🧯 fix: Bound the Held-Run Lookup, Accept a Grant With No MCP Tool at Readiness, and Authorize Other Tools Without MCP Use
The run hook gives its two reads one deadline, so a slow grant lookup is refused
before the SDK discards the hook. Readiness has nothing to connect when the grant
allows none of the selected MCP tools. Authorizing a schedule needs the schedules
permission and the agent; only MCP tools are held to the MCP servers permission.
* 🚦 fix: Ask for the MCP Permission After the Grant Filter at Readiness
A granted run needs the MCP servers permission only for the MCP tools its grant
allows. Readiness asked for it first, so an owner without it who authorized only
other tools had a schedule that could never activate or fire.
An OpenAPI Action that needs its owner to sign in published the sign-in
prompt into the remote agent API response and waited for it, as MCP servers
did before #18058. The Action tool now receives whether anyone can sign in
for the run, derived from the execution context at tool loading, and refuses
to prompt when nobody can. A stored access token and a working refresh token
are unaffected.
* 🧰 feat: Let a Schedule's Owner Authorize Each of the Agent's Tools, or Everything at Once
A schedule's grant could only be offered for an agent whose tools were all MCP tools. An
agent that also had code execution, web search, file search or an action could not be
authorized at all, and once its owner edited the schedule or the operator's deadline
passed its MCP tools stayed refused with no way out.
Each of an agent's other tools is now its own item in the offer, allowed or left out like
an MCP tool. The grant stores the ones the owner allowed, per agent. Under a grant, one
the owner left out is not loaded for the run and does not stop it; one the owner allowed
loads and runs, with the code environment's tools all allowed by code execution. The
dialog lists them in their own group and gains one control that allows every server and
tool at once. An API key's grant still limits MCP tools only.
* 🧰 fix: Hold a Schedule's Other Tools to the Grant's Deadline and Revocation
An MCP call is checked against the stored grant when it is made. The agents' other tools
have no such call, so a grant that had expired or been revoked still loaded and allowed
them. The run now holds them to the grant it read when it started: none loads from a
revoked grant, and they stop at the grant's deadline.
* 🧰 fix: Leave Out a Schedule's Unallowed Tools Where the Initializer Sets Them Up
The grant narrowed what the loader was asked for, but the initializer also reads the
agent's tool list for the markers that set up code execution and memory. A tool the owner
left out was still defined for the model and only refused when called. The list is now
narrowed once, where the initializer takes the agent, so everything below reads the
owner's choice.
Memory runs as two tools of other names. An allowed memory item now covers both at the
run's hook, as code execution covers the code environment's tools.
#18377 made `delegated` the default of endpoints.agents.remoteApi.integrations.mode, so
on upgrade a run started with a personal API key lost its MCP tools until the operator
declared servers and the key's owner granted them. That is a surprise for deployments
that never asked for grants.
The default is `owner` again: a key run uses the MCP servers its owner can, as before
grants existed. `delegated` stays available as an opt-in. The config loader's warning now
fires only for an operator who sets `delegated` and declares no server to grant.
* ✨ feat: Support Model Spec Handoff Targets
* fix: Preserve Effective Config and Transcript Identity for Preset Handoffs
* test: Provide Query Client for Search Transcript Handoff Fixture
* fix: Match the Subagent Icon Display Contract
* 🧱 fix: Bound Attachment Reads and Keep Bedrock's Document Limit
`getFileStream` buffered a stored object in full for every provider and every
kind of attachment, and the Bedrock document limit was `configured ??
provider`. The merged file config always carries a size limit (512 MB by
default), so with any `fileConfig` section Bedrock's 4.5 MB limit never
applied: an 8 MiB CSV was downloaded, decoded and serialized before Bedrock
refused it.
The shared reader takes a byte limit and stops at the first chunk past it. A
Bedrock document is refused from its recorded size before storage is opened,
read under that limit so an object larger than its record cannot reach memory
either, and reported as a 413 attachment error. A configured limit can lower
Bedrock's limit and no longer raise it.
* fix: Let a Set Limit Override Bedrock's, Keep Replay Tolerant
A limit the operator set overrides Bedrock's own, up or down, as it does for
other providers. What no longer counts is the 512 MB the merge fills in for
every endpoint, which is how the provider limit was lost whenever a
`fileConfig` section existed.
Replayed history skips the recorded-size refusal so an object that is gone is
still reported missing and left out; the bounded read refuses one that is
present. The client shows the size refusal under its attachment-limit
headline, not as a provider failure.
* 🔆 feat: Add GPT-6.2 Sol Support
* test: Correct Sol Request Helper Types
* fix: Apply Sol Constraints at Final Request Boundaries
---------
Co-authored-by: Lia <lia@librechat.ai>
* 🦪 fix: Keep Model Discovery Credentials Out of Logs
* fix: Preserve Model Lists When Shared Token Cache Fails
* test: Seed Shared Token Cache With a Typed Fixture
* test: Expect Safe Model Discovery Error Metadata
---------
Co-authored-by: Lia <lia@librechat.ai>
* 🗝️ feat: Store an API Key's MCP Grants on the Key, One per Agent
* 🧬 refactor: Let the Consent Service and Enforcement Act for Any Grant Subject
* 🗝️ feat: Check an API Key Run's MCP Calls Against the Key's Grant for the Agent
* 🗝️ feat: Put Remote API Runs Under Their Key's Grant, Behind a Config Switch
* 🩹 fix: Export the Key Grant Storage the Server Wiring Loads
* 🔌 feat: Let an Owner Grant an API Key Its MCP Access From Settings
* 🗝️ fix: Decide Key Grant Access, Mode and Kind of Key in the TypeScript Host
The agent-access check and the grant-mode lookup lived in the legacy route and service
files. The host now builds the check from an injected agent reader and permission
reader, and the key handlers resolve the mode from an injected configuration reader.
Each authorized call read the owner three times and their configuration twice. The host
now reads both once per call and shares them between the access check, the limits and
the offer; nothing is kept between calls.
A background worker rebuilds its request from the admitted record, which names the key
but not its kind, so a key issued to an integration lost its exemption and its channel
runs were refused. The host asks the key store when the request carries no key itself.
* 🔌 fix: Say When a Key Grant's Agent List Is Loading, Failed or Empty
The key grant dialog turned a failed or pending agent list into an empty picker with an
instruction to choose from it. It now shows a spinner while the list loads, an error
with a retry when it could not be read and nothing is cached, and a plain statement when
the owner has no agent the key could run.
* 🧪 test: Hold the Pin Fences on an API Key's Per-Agent Grants
* 🔌 fix: Offer a Key Grant for the Agents the Key Can Run, and Only for Personal Keys
The grant dialog's picker read the app's agent catalog, which lists agents the owner can
view. Running an agent with a key follows another rule: the agent is shared with the
owner for remote use, or is theirs to share. An agent shared only for remote use could be
run but not granted. A new list, GET /api/api-keys/agents, applies that rule to all
agents, and the picker reads it.
A key issued to an integration holds no grants but showed the MCP access button. The key
list now marks such a key, and the button is not shown for it.
* 📮 fix: Resend a Durable Workspace Submission Lost Before It Reaches the Bridge
A durable submission clamped its queue wait to the whole admission horizon, so a same-ID resend could never keep its fingerprint without extending admission. A POST lost in transport was therefore never resent; the client polled 404 lookups until the queue horizon and execution reserve ran out (about 340-380 s under the default 300 s horizon). Leave a small share of the window unclaimed so the identical request can be resent while it still fits the original admission window.
* 🎚️ refactor: Configure the Durable Resubmission Window Through Admission Policy
Expose admission.resubmissionWindowMs on the attached code environment config. Omission keeps the transport-derived default of two transport timeouts plus one poll interval; 0 disables the same-ID resend; any value stays capped at a tenth of the remaining admission window.
* 📝 docs: State What a Zero Resubmission Window Reserves
* 🙋 feat: Let a Schedule's Owner Approve a Tool Before Each Use
* 🧪 test: Drive a Real Run Through a Schedule's Approval Pause and Resume
* 🙋 fix: Keep a Stored Ask-First Choice When a Run Can No Longer Pause
Where pausing became unavailable, the dialog hid the ask-first boxes and renewed the
grant without them, so a tool the owner approved each time started running unattended.
The dialog now starts from the stored choice either way and always sends it. Where a run
cannot pause it shows only the stored questions, with a note that those tools are refused
for now, and the owner can keep or drop them but add none. The server keeps the stored
questions for tools still allowed when a confirmation says nothing about asking, and
refuses only a new question where a run cannot pause.
* 🙋 fix: Say Why a Schedule Asks for Approval in the Reader's Language
The approval card showed an English sentence sent by the server as the request's
description. The server now sends a code, and the card maps it to a localized string.
Any other description is shown as sent.
* 🙋 fix: Never Offer Always Allow for a Tool a Schedule Asks About Each Use
Where the endpoint enables Always allow, a schedule's approval card offered it for a tool
the owner approves on each use. Choosing it stored a conversation allow the schedule
still overrode at the next use. The offer and the recheck at resume now take a predicate
for anything beyond the policy that asks on every use, and the schedule's grant supplies
it, so such a tool is neither offered nor stored.
* 🙋 fix: Let the Owner Ask First About as Many Tools as They Can Allow
The confirmation accepted up to 25,600 allowed tools per server but only 256 to ask
about, so a large grant could not be confirmed with every tool set to ask first.
* 🙋 fix: Keep a Tool Asking First When the Owner Allows Its Changed Definition
The dialog derived the ask-first boxes from the ticked tools. A tool whose definition
changed starts unticked, so its stored question was dropped, and ticking the tool again
confirmed it as unattended. The ask-first selection is now kept apart from the ticks,
starts from the stored grant, and is narrowed to the ticked tools only when the
confirmation is sent. The owner's edits to it hold only for the grant they were made
against, so a question added to a grant confirmed elsewhere is not dropped unseen.
Under a grant, a run loads only the MCP tools the owner allowed. The filter looked only
at keys naming one tool, so a key standing for every tool on a server, or for the server
alone, was loaded as it was. The run policy and the call-time check still refused the
calls, but the tools were defined for the model and the server was connected to.
A key for every tool on a server is no longer loaded under a grant, since the grant lists
tools by name. A key for the server alone is kept only where the grant lists a tool on
that server for the agent.
* 🪞 fix: Deliver Each Text Delta Once When a Redis Resume Lands on the Hosting Replica
On the replica that hosts a run, a Redis resume snapshot is the run's live content array.
It was read before the Pub/Sub subscription existed and serialized after it, so every text
delta produced in between reached the client twice: once in the snapshot and once from
Pub/Sub. The client appends deltas, so the text doubled until the final message replaced it.
Publish each chunk with the emitting manager's id and emission count. After subscribing,
take the snapshot again as a copy at a known count, and skip that manager's text and
reasoning deltas up to it. Other events are still delivered, since the client applies them
idempotently and run-step deltas are not always folded into the content.
* 🪞 fix: Anchor a Hosted Resume on a Local Content Copy Instead of a Second State Read
Anchoring the snapshot by reading the whole resume state again added three Redis read
phases to every resume on the hosting replica. The content, the emission count and the run
steps the copy needs are all local, so take them synchronously after the fenced job read the
resume already makes, and keep the rest of the state from the first read.
* 📜 fix: Read a Child Thread's Messages a Page at a Time
The child messages route read a thread's whole stored history, and a
card previewing a running child triggers that read without anyone
asking. Every read is now one page (50 rows or 2 MiB, newest first)
with a cursor for the page before it, the followed pane keeps the pages
it has read and offers the earlier ones, and a client or server that
predates paging still gets a list.
* 📜 fix: Start a New Follower From Its Own Newest Page
A follower recreated over rows another one left in the cache kept them
without knowing where they began, so the earlier-messages control was
gone. It now places its first page itself and takes that page's
cursor.
* 📌 feat: Pin an Allowed Schedule Tool to the Definition It First Ran With
* 📌 fix: Bind a Confirmation to the Changed Tools the Owner Was Shown
* 📌 fix: Untick a Tool Marked as Changed While the Owner Is Choosing
The dialog reads the offer again while it is open. A tool marked as changed after the
owner's last tick kept its tick, so confirming would have allowed the new definition
without the warning having been in view when the box was ticked. The edit now records
which tools were marked when it was made, and a tool marked since then is unticked
until the owner ticks it again.
* 📌 fix: Check Pins and Marks in the Writes That Admit, Confirm and Revoke
A use read the grant, then was admitted by a write that looked at neither the marks nor
the pins. A mark or a first pin stored in between did not stop it. Admission now carries
the definitions in use and refuses, in the same write, a tool that is marked or pinned to
another digest. A use refused this way marks the tool when the stored pin disagrees with
what it saw.
A confirmation and a revocation replace the grant whole, built from an earlier read. A
pin or mark a run added in between was dropped, so the next use could pin a different
definition unnoticed. Both writes now refuse when either list has grown since the read:
the confirmation reports the offer as changed, and the revocation reads again.
* 📌 fix: Tie a Tick on a Changed Tool to the Grant That Marked It
The dialog remembered which tools were marked when the owner last ticked a box, by name
only. If the grant was replaced elsewhere and a run marked the same tool again, the old
tick stood and confirming accepted a change the owner had not looked at. The edit now
records the grant revision, and a tool marked under another revision is unticked until
the owner ticks it again.
* 🗳️ feat: Let a Schedule's Owner Choose Which MCP Tools It May Use
An enrolled scheduled chat could call an MCP tool only when an operator had
listed it in config as read-only, pinned to a hash of its definition. Whether
a tool is safe to run with nobody watching is the owner's call, and read-only
is a poor proxy for it.
The consent offer now lists every MCP tool the agent graph selects on servers
whose recipient the operator declared. The owner ticks servers and tools, and
the grant stores only those. A tool is allowed at run time when the grant
lists it for the calling agent and that agent still selects it; anything else
is refused. Selecting another tool later no longer invalidates the grant.
The operator `mcpConsent.readOnlyPolicy` list is retired: the loader warns
when it is still configured. The stored grant keeps its shape.
* 🗳️ fix: Check the Server Box Only When Every Tool Is Allowed
The shared Checkbox has no partly-selected appearance, so a server with some
tools ticked showed its "allow all" box as checked.
* 🧪 test: Check the Live Catalog at the Manager Boundary Without the Retired Pin
* 🧭 fix: Check Readiness Against What the Owner Allowed, Not What the Agents Select
* 🧭 fix: Turn Away a Tool the Owner Left Out Without Failing the Run
* 🧭 fix: Load Only the MCP Tools the Owner Allowed in a Scheduled Run
* 🪪 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
* 🧭 refactor: Build One Execution Context Where a Run Enters
Each consumer of a scheduled run's identity (the host token resolver, the
scheduled MCP authority and the resource-bearer host) read the trigger body
and the restored job for itself, and the remote agent API carried a separate
`unattended` flag through tool loading.
The entry point now builds one frozen ExecutionContext: the chat controller
from the verified schedule trigger, the resume host from the saved job, and
the remote controllers from the run envelope. The initializer and tool
loading receive it as an argument. The schedule consumers project their
identity from it, and `unattended` is derived from it at the tool-loading
boundary. No client or model input sets any field.
* 🧭 refactor: Decide Whether a Run Is Unattended in Its Execution Context
A subagent child thread is reachable only through the parent the requester
owns: /api/messages/<threadId> answers 404 by design, and the durable thread
view sends a bounded projection, not messages. A chat pane pointed at a child
thread therefore had nothing to load.
GET /api/convos/:parent/subagents/:thread/messages returns the thread's rows
with the conversation route's projection and tool-call previews, after the
thread view's parent, lineage and tenant check. An event thread's input is
the raw payload of an external event, so its row is sent with empty text, as
the thread view already does. A second route reads the full tool call behind
a preview, reusing the conversation route's reader.
* 🗓️ feat: Align Balance Resets to Fixed Calendar Boundaries
Add balance.refillAnchor, an ISO timestamp with a fixed offset that periods align to: a refill or reset is due at the first anchor-plus-whole-intervals boundary after the last one, so every user resets at the same moment (e.g. each Monday at 00:00 UTC, or the 1st of each month). Omitted, periods keep running from each user's last refill. The gauge names the reset date for anchored periods.
* 🧭 fix: Clear a Removed Reset Anchor During Admission and Shape Balance Responses in TS
A policy built without a record now always carries refillAnchor, null when unset, so removing the setting clears a stored anchor instead of looping admission until its retry bound throws. Balance response shaping moves to toBalanceResponse in packages/api; the CJS controller delegates to it.
* fix: prevent Action writes from expanding MCP access
* fix: fence MCP grant snapshots before Action token cleanup
* fix: reject Action writes after concurrent agent deletion
* fix: enforce MCP grant provenance across saves and server replacement
* test: expect reserved MCP names after server replacement
* feat: Add Gemini Hydrogen Model Support
* fix: Restore Google History For Reachable Agents
* fix: Preserve Mixed Google Signature History
* refactor: Inject Google billing configuration at application boundary
* fix: Preserve Call Signatures From Unsupported Google Output
* chore: Use Released Agents SDK 4.2.5
---------
Co-authored-by: Lia <lia@librechat.ai>
* fix: Keep runtime MIME state out of file inspection
* fix: Preserve attachment-free inspection admission
---------
Co-authored-by: Lia <lia@librechat.ai>