LibreChat/api/server
Danny Avila 447e377b0b
✍️ feat: Authorize a Schedule Again in the Same Step That Edits It (#18541)
* ✍️ feat: Authorize a Schedule Again in the Same Step That Edits It

Editing a schedule ended its grant, and the edit form had no way to make it again:
the owner saved, then had to open the authorization dialog and confirm. The edit
form now carries the same section as the create form, starting from the grant the
schedule has, and the edit writes the new grant with it.

* 🚧 fix: Fence an Edit's New Grant on the Grant It Was Decided Against

An edit that carries an authorization writes the grant with the schedule, fenced on
the schedule's edit generation. Consent writes do not move that generation, so the
edit could undo a revocation, or drop a pin or mark a run added, made after the new
grant was decided. The write now names the grant it replaces and is refused unless
that is still what is stored, untouched.

* ✅ test: Expect the Lifetime the Edit Form Now Starts At

* 🔂 fix: Check the Grant an Edit Replaces on the Decision's Final Read

The decision reads the stored grant twice and compared the owner's expected revision
with the first read only. A revocation landing between the two was then taken as the
grant to replace, and the edit's fenced write matched it. The final read is now held
to the same revision.
2026-11-19 14:52:17 -05:00
..
controllers 🪒 refactor: Reuse the Shared User Response Sanitizer (#18530) 2026-11-19 12:56:35 -05:00
middleware ✨ feat: Support Model Spec Handoff Targets (#18089) 2026-11-18 18:16:37 -08:00
routes ✍️ feat: Authorize a Schedule Again in the Same Step That Edits It (#18541) 2026-11-19 14:52:17 -05:00
services 🫣 fix: Keep Config and Attachment Credentials Out of Logs (#18517) 2026-11-19 12:32:21 -05:00
utils 🎍 fix: Preserve Every Conversation Branch When Duplicating (#18257) 2026-11-17 09:54:40 -05:00
cleanup.js 🪦 refactor: Remove Dead Legacy API Modules and Root Tooling (#17114) 2026-10-15 12:25:24 +02:00
csp.spec.js fix: Guard Mongo Cleanup In Api Services Tests (#17990) 2026-11-11 11:10:39 +01:00
experimental.js 🧑‍🏭 fix: Initialize Remote SDK Hosts in Cluster Workers (#18519) 2026-11-19 13:36:10 -05:00
experimental.spec.js 🧑‍🏭 fix: Initialize Remote SDK Hosts in Cluster Workers (#18519) 2026-11-19 13:36:10 -05:00
index.js 🛡️ fix: Invalidate Regional Role Caches (#18099) 2026-11-18 23:34:16 -08:00
index.metrics.spec.js fix: Guard Mongo Cleanup In Api Services Tests (#17990) 2026-11-11 11:10:39 +01:00
index.spec.js ⏱️ test: Allow Cold-Cache Boot Time In API Server Spec (#18145) 2026-11-14 16:03:14 +01:00
persistence.spec.js 🚜 feat: Support Native PostgreSQL Tool Favorites (#18032) 2026-11-11 12:07:07 -05:00
socialLogins.js 🔁 feat: Retry OpenID Discovery After Startup Failures (#15899) 2026-09-13 23:16:26 -04:00
socialLogins.spec.js 🔁 feat: Retry OpenID Discovery After Startup Failures (#15899) 2026-09-13 23:16:26 -04:00
telemetry.js 🪵 feat: Add OpenTelemetry Logs Pipeline via Winston Bridge (#15565) 2026-09-03 21:16:09 -04:00
telemetry.spec.js 🪵 feat: Add OpenTelemetry Logs Pipeline via Winston Bridge (#15565) 2026-09-03 21:16:09 -04:00