LibreChat/packages/api/src
Marco Beretta 29f6ec6eae
🙈 feat: Config Option to Hide Response Feedback Buttons (#15085)
* feat: add interface option to hide response feedback buttons

Adds `interface.feedback` to librechat.yaml. When set to false, the
thumbs up/thumbs down buttons are removed from the message action row
and the feedback endpoint rejects writes with 403, so deployments that
do not consume the data can stop collecting it. Defaults to true.

* refactor: hoist the feedback gate out of the message row and into typed middleware

Reading startup config inside HoverButtons put a query observer and two Recoil
subscriptions on every message row, and rows never unmount, so the cost grew
with the conversation. Resolve the flag once per chat in useChatHelpers and
carry it on TMessageChatContext; useMessageActions withholds handleFeedback
when it is off, which the action row already treats as "no feedback controls".
The flag now stays false until the config resolves, so a disabled deployment
never flashes controls whose writes are rejected.

Move the server-side policy into requireFeedbackEnabled under packages/api so
the route keeps no policy of its own.

* test: stub the feedback gate in specs that replace the api package

The messages router now imports requireFeedbackEnabled, and express rejects an
undefined handler at require time, so every spec that mocks @librechat/api
wholesale has to carry the export.
2026-08-21 11:16:44 -04:00
..
acl 🔒 fix: Prevent Role Grants on Shared Links (#14137) 2026-07-07 07:04:52 -04:00
actions
admin 🛟 fix: Report Skill Sync Files Whose Paths Cannot Be Mirrored (#15067) 2026-08-21 03:36:27 -04:00
agents 🪟 feat: Read Child Threads Through Their Parent (#15073) 2026-08-21 11:10:26 -04:00
apiKeys
app ⏱️ feat: Run Scheduled Chats Through Durable Agent Triggers (#14939) 2026-08-20 11:51:30 -04:00
artifacts 🧵 fix: Preserve Fenced Markdown Artifacts (#14121) 2026-07-05 12:04:59 -04:00
auth 🏘️ fix: Scope OpenID User Cache Keys to Signed User Identity (#14837) 2026-08-14 15:51:18 -04:00
cache 🧬 chore: Upgrade Redis Dependencies to Dodge the ElastiCache BigInt Cursor (#15068) 2026-08-21 11:14:37 -04:00
cdn 🔥 fix: Firebase CDN Initialization Under tsdown CJS Interop (#14046) 2026-07-01 08:20:40 -04:00
cluster ⚙️ ci: Bump GitHub Actions to Node.js 24 Runtimes (#14689) 2026-08-07 11:25:29 -04:00
conversations 🗄️ feat: Archive All Chats From Data Controls (#14885) 2026-08-16 22:11:57 -04:00
crypto 📬 feat: Add Durable Agent Trigger Delivery (#14925) 2026-08-17 09:25:08 -04:00
db
endpoints 🧲 refactor: Consolidate Claude Prompt Cache and Context Checks (#15008) 2026-08-20 12:18:50 -04:00
favorites 🧰 feat: Redesign Agent Builder with Unified Tools Marketplace, Skills & Orchestration (#13952) 2026-07-05 11:30:12 -04:00
files 🤐 feat: Allow Promptless Sends When Files Are Attached (#13717) 2026-08-15 12:47:31 -04:00
flow 🎟️ fix: Reconcile MCP OAuth Readiness Across Pods (#14629) 2026-08-05 19:42:26 -04:00
html ⚙️ refactor: lazy-load React Query Devtools (#13639) 2026-06-10 13:06:20 -04:00
insights 💡 feat: add DB-backed admin insights (#14898) 2026-08-18 07:51:51 -04:00
langfuse 🪢 feat: Custom Request Headers For Langfuse (#14945) 2026-08-17 20:39:23 -04:00
mcp 🧬 chore: Upgrade Redis Dependencies to Dodge the ElastiCache BigInt Cursor (#15068) 2026-08-21 11:14:37 -04:00
memory 🧠 fix: Bound Memory Agent Input (#13606) 2026-06-09 14:38:21 -04:00
middleware 🙈 feat: Config Option to Hide Response Feedback Buttons (#15085) 2026-08-21 11:16:44 -04:00
modelSpecs 🎯 refactor: Infer Agents Endpoint for Model Specs Naming an Agent (#14889) 2026-08-16 11:04:52 -04:00
oauth
plugins 🪝 feat: Execute Agent Plugin Command Hooks (#14755) 2026-08-12 13:21:15 -04:00
projects
prompts 🧵 fix: Preserve Fenced Markdown Artifacts (#14121) 2026-07-05 12:04:59 -04:00
rum 📈 fix: Isolate RUM Telemetry Proxy Auth from App Auth (#13765) 2026-06-15 12:49:44 -04:00
schedules 🗂️ feat: Scope Scheduled Chats to Chat Projects (#15056) 2026-08-21 11:09:04 -04:00
shared-links 🔗 feat: Shared Conversation Badge and Stable Share Links (#14712) 2026-08-09 08:14:54 -04:00
skills 🛟 fix: Report Skill Sync Files Whose Paths Cannot Be Mirrored (#15067) 2026-08-21 03:36:27 -04:00
storage 🌀 ci: Deterministic Circular Dependency Checks (#14579) 2026-08-01 14:43:26 -04:00
stream 🛑 fix: Confirm Scheduled Stops and Separate Terminal Scheduler Failure from Startup (#15051) 2026-08-20 18:33:51 -04:00
telemetry ⚡ perf: Reduce Agent Chat Startup Latency (#14423) 2026-07-25 07:58:20 -04:00
tools 🛤️ feat: Per-Agent Code Execution Routing With Stateful Session Scopes (#14848) 2026-08-16 09:42:15 -04:00
types ⏱️ feat: Run Scheduled Chats Through Durable Agent Triggers (#14939) 2026-08-20 11:51:30 -04:00
user 🛡️ feat: Let Admins Restrict Stateful Workspace Scopes (#14910) 2026-08-17 01:29:19 -04:00
utils 🧲 refactor: Consolidate Claude Prompt Cache and Context Checks (#15008) 2026-08-20 12:18:50 -04:00
web 📡 feat: Route Web Search and Scrape Egress through the SSRF-safe Agent (#14606) 2026-08-10 10:33:54 -04:00
credentials.spec.ts 🫆 chore: Remove Published Credential Defaults (#14680) 2026-08-07 07:25:05 -04:00
credentials.ts 🫆 chore: Remove Published Credential Defaults (#14680) 2026-08-07 07:25:05 -04:00
index.ts ⏱️ feat: Run Scheduled Chats Through Durable Agent Triggers (#14939) 2026-08-20 11:51:30 -04:00
telemetry.ts