LibreChat/packages/api/src
Serhii Zghama 9cd2fc2ed6
🧩 fix: Add REDIS_CLUSTER_SAFE_DELETE Flag for ElastiCache Serverless CROSSSLOT Errors (#13275)
* fix(redis): add REDIS_CLUSTER_SAFE_DELETE for ElastiCache Serverless CROSSSLOT errors

ElastiCache Serverless and similar managed Redis services present a single-node
connection endpoint but shard keys internally. When USE_REDIS_CLUSTER=false (as
required for single-endpoint services), batchDeleteKeys() uses multi-key DEL
commands that fail with CROSSSLOT errors because the managed cluster rejects
cross-slot operations.

Adds REDIS_CLUSTER_SAFE_DELETE=true which forces per-key deletion (the same
cluster-safe path) without changing the connection mode. This makes the delete
strategy independent of the connection topology.

Closes #13261

* test(cache): add REDIS_CLUSTER_SAFE_DELETE config tests

* fix: Avoid nested Redis delete mode ternary

* docs: Add Redis cluster-safe delete env example

---------

Co-authored-by: Danny Avila <danny@librechat.ai>
2026-05-24 14:49:40 -04:00
..
acl 🧭 fix: Reduce MCP Registry ACL Lookups (#13195) 2026-05-19 17:16:37 -04:00
admin 🪟 fix: Apply Admin-Panel Config Overrides To YAML-Defined MCP Servers (#13173) 2026-05-23 17:11:13 -04:00
agents 🎨 chore: prettier --write all workspaces (#13281) 2026-05-23 17:52:58 -04:00
apiKeys 📦 chore: npm audit fixes and Mongoose 8.23 TypeScript follow-ups (#12996) 2026-05-07 09:47:40 -04:00
app 🎨 chore: prettier --write all workspaces (#13281) 2026-05-23 17:52:58 -04:00
auth ⚖️ feat: Add Operational Prometheus Metrics (#13265) 2026-05-22 20:47:41 -04:00
cache 🧩 fix: Add REDIS_CLUSTER_SAFE_DELETE Flag for ElastiCache Serverless CROSSSLOT Errors (#13275) 2026-05-24 14:49:40 -04:00
cdn 🧾 feat: Add Structured Logging Context (#13110) 2026-05-13 19:17:39 -04:00
cluster
crypto
db
endpoints 🧱 fix: Validate Bedrock User Credentials (#13277) 2026-05-23 16:46:15 -04:00
files 🎨 chore: prettier --write all workspaces (#13281) 2026-05-23 17:52:58 -04:00
flow 🪂 feat: Graceful HTTP shutdown on SIGTERM/SIGINT (#13211) 2026-05-20 13:33:53 -04:00
mcp 🪟 fix: Apply Admin-Panel Config Overrides To YAML-Defined MCP Servers (#13173) 2026-05-23 17:11:13 -04:00
memory 💭 feat: Require Explicit Auto-agent Enablement for Memories (#12886) 2026-05-01 23:56:08 +09:00
middleware 🎨 chore: prettier --write all workspaces (#13281) 2026-05-23 17:52:58 -04:00
modelSpecs 🗝️ fix: Protect Model Spec Instructions (#13125) 2026-05-14 10:07:23 -04:00
oauth 🍪 feat: Add Session Cookie Secure Override (#13189) 2026-05-19 09:44:14 -04:00
prompts 📁 refactor: Prompts UI (#11570) 2026-03-22 16:56:22 -04:00
skills 📦 feat: Configure Skill Import Size Limit (#13073) 2026-05-11 16:24:04 -04:00
storage 🌩️ feat: Strict CloudFront signed cookie enforcement via requireSignedAccess (#13078) 2026-05-11 23:30:01 -04:00
stream ⚖️ feat: Add Operational Prometheus Metrics (#13265) 2026-05-22 20:47:41 -04:00
telemetry 🎨 chore: prettier --write all workspaces (#13281) 2026-05-23 17:52:58 -04:00
tools 🪨 fix: Normalize Empty MCP Tool Descriptions to undefined for Bedrock Compat. (#13217) 2026-05-23 09:43:40 -04:00
types 🪙 feat: Add AWS Bedrock API key support (#8690) 2026-05-23 12:41:38 -04:00
utils 🎨 chore: prettier --write all workspaces (#13281) 2026-05-23 17:52:58 -04:00
web 🛟 refactor: Gracefully Skip Unavailable Web Search Rerankers (#13191) 2026-05-19 09:48:12 -04:00
index.ts 🗝️ fix: Protect Model Spec Instructions (#13125) 2026-05-14 10:07:23 -04:00