LibreChat/api/server/controllers/agents
Danny Avila a0f17e5581
🙋 feat: Let a Schedule's Owner Approve a Tool Before Each Use (#18277)
* 🙋 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.
2026-11-18 12:18:15 -05:00
..
__tests__ 🙋 feat: Let a Schedule's Owner Approve a Tool Before Each Use (#18277) 2026-11-18 12:18:15 -05:00
callbacks.background.spec.js
callbacks.js 💧 feat: Add Gemini Hydrogen Support (#18159) 2026-11-16 10:26:55 -05:00
client.codeDecision.spec.js 🍯 fix: Stop Approval Pauses From Unsealing Code Environments (#15963) 2026-09-15 12:30:37 -04:00
client.imageDetail.spec.js 🖍️ fix: Honor Agent Image Detail Settings (#15407) 2026-08-31 08:34:05 -04:00
client.js 🙋 feat: Let a Schedule's Owner Approve a Tool Before Each Use (#18277) 2026-11-18 12:18:15 -05:00
client.test.js 🛒 fix: Correct Agent Admission and Failed-Run Billing (#18157) 2026-11-14 12:20:51 -05:00
filterAuthorizedTools.spec.js 🏯 fix: Bind MCP Grants to Authorized Agent State and Server Identity (#18233) 2026-11-16 18:42:32 -05:00
openai.js 🚔 fix: Enforce Host Model Policies for Responses and OpenAI Callers (#18400) 2026-11-18 08:31:19 -05:00
promotion.js 🧷 fix: Promote Unapplied Steers to Durable Queued Turns at Run End (#18028) 2026-11-10 22:43:32 -05:00
protocol.js
queuedTurns.js 🍱 fix: Carry Coding Approval Mode With Queued Turns (#16326) 2026-09-25 07:28:43 -04:00
recordCollectedUsage.spec.js 🛒 fix: Correct Agent Admission and Failed-Run Billing (#18157) 2026-11-14 12:20:51 -05:00
request.js 🔷 feat: Declare Turn Shapes in Created Frames (#18401) 2026-11-18 08:31:01 -05:00
responses.js 🚔 fix: Enforce Host Model Policies for Responses and OpenAI Callers (#18400) 2026-11-18 08:31:19 -05:00
resume.js 🙋 feat: Let a Schedule's Owner Approve a Tool Before Each Use (#18277) 2026-11-18 12:18:15 -05:00
steer.js
v1.js 🏯 fix: Bind MCP Grants to Authorized Agent State and Server Identity (#18233) 2026-11-16 18:42:32 -05:00
v1.spec.js 🩼 fix: Keep Parent Agents Editable After Subagent Deletion (#18415) 2026-11-18 09:30:16 -05:00