LibreChat/client/src/utils
Atef Bellaaj 3c90cde7d8
🔗 feat: use LibreChat prompt groups as agent instructions (#16686)
* 🔗 feat(agents): use LibreChat prompt groups as agent instructions

Agents can link a prompt group revision or Production as their instructions. The link resolves at the start of each turn through a cached resolver. The cache clears on promote and delete. Editors without VIEW on the group see a restricted placeholder.

* fix: remove duplicate logger import from agent initialization tests

* fix: honor prompt management capabilities for linked agent instructions

* test: seed prompt manager capabilities in authorization fixtures

* fix: clear acknowledged linked prompt edits before version restore

* test: adapt merged chain coverage to prompt-aware payload helper

---------

Co-authored-by: Lia <lia@librechat.ai>
2026-10-04 21:27:26 -04:00
..
__tests__ 📼 fix: Replay Running Subagent Activity (#16541) 2026-10-02 13:24:47 -04:00
diagram 🧜 feat: Open Mermaid Diagrams as Artifacts with SVG/PNG Export (#14713) 2026-08-09 09:02:42 -04:00
activityLabels.ts 🫧 fix: Stop the Live Activity Row From Flashing Open on Code Calls and Thoughts (#16145) 2026-09-20 21:00:21 -04:00
agentModelSelection.spec.ts 🥛 fix: Drop Stale Saved Model Defaults in Builder Forms (#15179) 2026-08-25 08:18:17 -04:00
agentModelSelection.ts 🌐 fix: Expose Gemini Models to Vertex AI Agents (#15234) 2026-08-27 06:50:23 -04:00
agents.tsx 💬 refactor: ChatForm UI redesign with unified palette (#14473) 2026-10-01 03:46:18 +00:00
approval.spec.ts 🍡 feat: Batched User Questions With A Single Bounded Answer Form (#14737) 2026-08-11 01:06:16 -04:00
approval.ts 🫰 feat: Configure Tool Approval Modes Per Agent (#16707) 2026-10-04 13:14:48 -04:00
artifacts.ts 🧵 fix: Restore Classes tailwind-merge Was Silently Dropping (#15995) 2026-10-01 03:46:16 +00:00
breakpoints.ts 🔍 feat: App-Wide UI Scale Setting (#14903) 2026-10-04 23:20:04 +02:00
buildDefaultConvo.ts
buildTree.ts 🎨 refactor: adopt the @librechat/client design system (semantic color tokens + component migration) (#13879) 2026-08-06 09:15:17 -04:00
citations.ts
cleanupPreset.ts
clock.ts 🕰️ feat: Clock Format and Week Start Preferences (#15121) 2026-08-23 18:41:14 -04:00
cn.ts
collection.ts
composerFiles.ts 💬 refactor: ChatForm UI redesign with unified palette (#14473) 2026-10-01 03:46:18 +00:00
configHtml.ts 🧼 fix: Render Agent Description HTML Safely (#15951) 2026-09-14 22:05:51 -04:00
conversation.ts fix: Keep Manual Unread Reminders in Date Groups 2026-10-03 17:56:52 -04:00
conversationTags.spec.ts
conversationTags.ts
convos.fakeData.ts
convos.spec.ts 🖲️ fix: Enable Running Chat Menus and Preserve Renamed Titles (#16697) 2026-10-03 23:17:15 -04:00
convos.ts 🖲️ fix: Enable Running Chat Menus and Preserve Renamed Titles (#16697) 2026-10-03 23:17:15 -04:00
createChatSearchParams.spec.ts
createChatSearchParams.ts
documentTitle.ts 🔔 feat: Unseen Reply Indicators, Reply Notifications, and Mark as Unread (#15025) 2026-10-01 03:46:16 +00:00
downloadFile.ts 📄 fix: Serve Stored Text for "Upload as Text" File Downloads (#14723) 2026-08-21 14:24:43 -04:00
drafts.spec.ts 📝 fix: Preserve Chat Drafts Across Navigation and Clearing (#16161) 2026-09-21 12:56:41 -04:00
drafts.ts 📝 fix: Preserve Chat Drafts Across Navigation and Clearing (#16161) 2026-09-21 12:56:41 -04:00
email.ts
endpoints.spec.ts 🏷️ fix: Model Spec Menu Label and Agent Avatar Fallbacks (#14887) 2026-08-16 11:04:25 -04:00
endpoints.ts 🖼️ refactor: Consolidate Provider Icons Into a Single Registry (#15148) 2026-08-24 13:00:38 -04:00
errors.ts 📧 feat: add email address change (#14597) 2026-10-01 03:46:16 +00:00
favoritesError.ts
files.spec.ts 📎 fix: Re-enable Send After File Upload (#14727) 2026-08-10 15:05:22 -04:00
files.ts 🛷 perf: Reduce Browser Work When Sending Documents (#16646) 2026-10-01 20:43:02 -04:00
focus.ts 🧭 perf: Warm Conversation Switches with Single-Navigation Focus Intent (#14334) 2026-07-20 22:31:44 -04:00
forms.spec.tsx ♿ feat: High Contrast Light and Dark Appearance Modes (#15178) 2026-09-05 22:20:33 +02:00
forms.tsx 🔗 feat: use LibreChat prompt groups as agent instructions (#16686) 2026-10-04 21:27:26 -04:00
getDefaultEndpoint.ts
getLoginError.spec.ts 🧿 fix: Bind Login Flows to the Browser That Started Them (#15880) 2026-09-13 11:47:29 -04:00
getLoginError.ts 🔐 feat: Enforce Required Two-Factor Authentication (#14731) 2026-10-01 23:39:51 +02:00
getThemeFromEnv.js 🎨 feat: Add Versioned Theme Foundation (#14709) 2026-08-10 13:41:03 -04:00
getThemeFromEnv.spec.js 🎨 feat: Refine Client Colors and Sharing Dialogs (#14734) 2026-08-10 22:43:57 -04:00
greeting.ts 👋 feat: Day-Aware Landing Greeting Schedule (#14633) 2026-08-07 00:05:30 -04:00
groupToolCalls.ts 🫧 feat: Hold a Live Run's Activity at One Row (#16118) 2026-09-20 19:01:30 -04:00
heicConverter.spec.ts 🔭 feat: Recover Stale Chunks Without the Error Page and Ship Client Logs to RUM (#16701) 2026-10-03 23:17:56 -04:00
heicConverter.ts 🔭 feat: Recover Stale Chunks Without the Error Page and Ship Client Logs to RUM (#16701) 2026-10-03 23:17:56 -04:00
icons.ts 🎨 feat: Theme-Adaptive SVG Support for Custom MCP and Group Icons (#13817) 2026-09-04 10:49:43 -04:00
imageResize.ts 🗜️ feat: Let Users Toggle Client-Side Image Resizing (#14883) 2026-08-16 18:04:03 -04:00
index.ts 🔍 feat: App-Wide UI Scale Setting (#14903) 2026-10-04 23:20:04 +02:00
json.spec.ts 🗣️ fix: Keep Provider Error Text on Unclassified Agent Failures (#16034) 2026-09-16 21:32:41 -04:00
json.ts 🗣️ fix: Keep Provider Error Text on Unclassified Agent Failures (#16034) 2026-09-16 21:32:41 -04:00
lanes.ts 🧶 fix: Render Solo Agent Groups as Sequential Content (#15574) 2026-09-03 23:46:25 -04:00
languages.ts
latex.spec.ts 🧮 fix: Currency-Safe Single-Dollar LaTeX via Micromark Tokenizer (#15181) 2026-08-24 22:29:02 -04:00
latex.ts 🧮 fix: Currency-Safe Single-Dollar LaTeX via Micromark Tokenizer (#15181) 2026-08-24 22:29:02 -04:00
links.ts 📱 fix: Open Sign-In and External Links From iOS Home-Screen Apps (#16077) 2026-09-19 08:09:25 -04:00
localStorage.ts 🪃 fix: Remember the Last Code Approval Mode (#15973) 2026-09-15 14:05:10 -04:00
logger.ts 🔭 feat: Recover Stale Chunks Without the Error Page and Ship Client Logs to RUM (#16701) 2026-10-03 23:17:56 -04:00
map.ts 🛎️ feat: Wake Agents on Background Tool Completion (#15350) 2026-08-30 08:56:41 -04:00
markdown.ts ♿ feat: High Contrast Light and Dark Appearance Modes (#15178) 2026-09-05 22:20:33 +02:00
mcpApps.ts 🧩 feat: MCP Apps support (#13831) 2026-10-01 03:46:16 +00:00
media.ts 🧩 feat: MCP Apps support (#13831) 2026-10-01 03:46:16 +00:00
memory.spec.ts 🎛️ feat: Consistent Dialogs, Clearer Settings, and a Keyboard Shortcuts Switch (#14882) 2026-08-16 16:10:17 -04:00
memory.ts 🎛️ feat: Consistent Dialogs, Clearer Settings, and a Keyboard Shortcuts Switch (#14882) 2026-08-16 16:10:17 -04:00
mermaid.ts ♿ feat: High Contrast Light and Dark Appearance Modes (#15178) 2026-09-05 22:20:33 +02:00
messages.spec.ts 📔 feat: Preserve Owner Text During PII Redaction (#16311) 2026-10-02 11:43:10 -04:00
messages.ts 📔 feat: Preserve Owner Text During PII Redaction (#16311) 2026-10-02 11:43:10 -04:00
morph.ts 🧰 feat: Unify Tool Activity, Reasoning, Search, and Agent Workflows (#14546) 2026-09-06 14:56:50 -04:00
numbers.spec.ts
numbers.ts
officePreview.ts ♿ feat: High Contrast Light and Dark Appearance Modes (#15178) 2026-09-05 22:20:33 +02:00
pane.ts 💬 refactor: ChatForm UI redesign with unified palette (#14473) 2026-10-01 03:46:18 +00:00
policies.ts ⚖️ refactor: Move Policy Links to the Signup Consent (#16138) 2026-10-01 03:46:16 +00:00
presets.ts
previewCache.ts
promptGroups.ts ⚡ perf: Avoid Parallel Full and Paged Prompt Loading on Startup (#15031) 2026-08-25 21:21:17 -04:00
prompts.ts
queue.ts 🎛️ refactor: Hand Chat Preferences to the Host and the Follow-Up Queue to Jotai (#16604) 2026-10-01 17:47:26 +02:00
queueIntent.ts 💬 refactor: ChatForm UI redesign with unified palette (#14473) 2026-10-01 03:46:18 +00:00
reasoningLabels.ts 🧠 feat: Add Live Reasoning Labels (#14893) 2026-08-16 18:11:55 -04:00
redirect.ts 🔐 feat: Enforce Required Two-Factor Authentication (#14731) 2026-10-01 23:39:51 +02:00
resetConvo.ts
resources.ts 🧳 feat: Register Principal-Owned Code Environments (#15365) 2026-08-30 19:33:19 -04:00
richtext.spec.ts 🩹 fix: Restore the Client Build by Parsing Single-Dollar Math via Micromark (#15638) 2026-09-05 14:16:17 +02:00
richtext.ts 🩹 fix: Restore the Client Build by Parsing Single-Dollar Math via Micromark (#15638) 2026-09-05 14:16:17 +02:00
roles.ts
routes.ts
row.ts 🪶 style: Quieter Primitives, Shared Panel Headers, and Flat Management Lists (#16244) 2026-10-01 03:46:17 +00:00
runStepDuration.ts ⏱️ feat: Show Elapsed Time Under the Streaming Response (#15167) 2026-08-24 11:36:36 -04:00
scaleImage.ts
session.ts 📌 feat: Unified Pinned Section With Sidebar Drag Interactions (#15057) 2026-09-11 10:41:05 -04:00
share.ts
shortcuts.spec.ts 💬 refactor: ChatForm UI redesign with unified palette (#14473) 2026-10-01 03:46:18 +00:00
shortcuts.ts 💬 refactor: ChatForm UI redesign with unified palette (#14473) 2026-10-01 03:46:18 +00:00
steer.ts 🧹 refactor: Keep Store Imports Out of the Chat Hooks (#16620) 2026-10-01 18:40:51 +02:00
subagentContent.ts 📼 fix: Replay Running Subagent Activity (#16541) 2026-10-02 13:24:47 -04:00
svg.ts 🎨 feat: Theme-Adaptive SVG Support for Custom MCP and Group Icons (#13817) 2026-09-04 10:49:43 -04:00
textarea.ts
thread.spec.ts 🧶 feat: Flatten Active Message Threads Behind a Flag (#15633) 2026-09-06 14:30:50 -04:00
thread.ts 🧶 feat: Flatten Active Message Threads Behind a Flag (#15633) 2026-09-06 14:30:50 -04:00
tilde.spec.ts
tilde.ts
timestamps.ts 🔇 refactor: Quiet Framework Logging in Unit Tests (#15363) 2026-08-30 15:26:30 -04:00
tokens.spec.ts 🥧 feat: Show Last-Turn Token Usage Beside Conversation Totals (#16230) 2026-10-01 03:46:16 +00:00
tokens.ts 🥧 feat: Show Last-Turn Token Usage Beside Conversation Totals (#16230) 2026-10-01 03:46:16 +00:00
toolCallPhase.ts 🧩 refactor: Resolve Tool-Card State Once (#14934) 2026-08-17 12:05:17 -04:00
toolLabels.ts 🎴 feat: Render Background Tasks as Native Tool Cards (#16407) 2026-09-27 07:36:17 -04:00
voices.ts 🧹 perf: Share Voices Store, Gate Timestamp Ticker, Stabilize Greeting Springs (#14335) 2026-07-20 22:43:29 -04:00