LibreChat/api/server/services/Endpoints/agents
Marco Beretta 784582850a
🧯 fix: Guard SSE Writes and Interval Cleanups Against Crashes (#17462)
* fix: Harden Timer Sweeps, SSE Writes, and Violation Counters

Guard SSE writes against ended or destroyed responses through one helper, catch and single-flight the job store and TTL cache cleanup timers, serialize in-process counter updates, cap the violation log, prune stale OAuth failure records, batch the active-job lookup, and count Redis keys with DBSIZE.

* refactor: Drop the redundant violation log entry copy

* refactor: Log single-flight sweep failures from the API package

* test: Cover active generation listing and client disconnect mid-stream

* refactor: Configure violation log retention and move title timeout into the API package

* feat: Configure OAuth failure retention through mcpSettings

* fix: Prune OAuth failures promptly under short retention
2026-10-27 23:06:58 +01:00
..
addedConvo.js 🧬 fix: Skip Re-Embedding Legacy File Search Files After Upgrade (#17206) 2026-10-17 19:19:14 +02:00
addedConvo.spec.js 🍵 fix: Support Renewable MCP Credentials for Schedules (#15908) 2026-09-14 10:27:47 -04:00
backgroundCompletion.js 🪇 perf: Coalesce Ready Background Completions (#16650) 2026-10-02 15:03:22 -04:00
build.js ⚡ perf: Exclude Agent Version History From Default getAgent Reads (#16070) 2026-09-20 19:27:21 -04:00
eventChildLease.js
index.js
initialize.js 📎 feat: Copy Chat Attachments into Attached Workspaces (#17376) 2026-10-23 07:37:50 +02:00
initialize.spec.js 🐡 fix: Bound Tool Approval Admission Work (#17387) 2026-10-24 08:58:17 +02:00
linkedInstructions.js 🏭 refactor: Centralize Source Prompt Imports in the Prompt Service (#17272) 2026-10-24 13:51:31 +02:00
skillDeps.js 🔌 feat: Integrate Durable Skill Lifecycle Across Writers and Routes (#17043) 2026-10-16 09:05:05 -07:00
skillDeps.spec.js 🔌 feat: Integrate Durable Skill Lifecycle Across Writers and Routes (#17043) 2026-10-16 09:05:05 -07:00
subagentThreadStore.js 📔 fix: Recover Subagent Content With Shared Chat Rendering (#17290) 2026-10-22 15:32:40 +02:00
subagentThreadStore.spec.js 📼 fix: Replay Running Subagent Activity (#16541) 2026-10-02 13:24:47 -04:00
title.js 🧯 fix: Guard SSE Writes and Interval Cleanups Against Crashes (#17462) 2026-10-27 23:06:58 +01:00
title.test.js 🖲️ fix: Enable Running Chat Menus and Preserve Renamed Titles (#16697) 2026-10-03 23:17:15 -04:00