LibreChat/e2e/specs/mock
Marco Beretta 8e6e6f062d
🪧 fix: Emit the Configured-Footer Answer With the HTML Shell (#15886)
* 🪧 fix: Emit the Configured-Footer Answer With the HTML Shell

The chat surface lays out against whether the deployment configured a footer
(customFooter, privacy policy, terms of service). The client answered that from
localStorage — whatever the last resolved `/api/config` recorded — so the answer
was a guess on a first-ever visit and could be stale for a deployment whose
configuration changed.

The backend already knows when it serves client/dist/index.html, so it says so
there: `injectConfiguredFooterBootstrap` writes `hasConfiguredFooter` into
`window.__LIBRECHAT_CONFIG__` ahead of the app's own scripts, once at boot from
the base app config, and the client reads it on its first render instead of
remembering the last answer. The `configured-footer` storage atom is gone.

Client and server share one predicate (`hasConfiguredFooter` in
librechat-data-provider) so the two cannot disagree, and the shell injection is
generalized (`injectBootstrapConfig`), with the query-devtools flag now going
through it.

* 🧷 fix: Keep Bootstrap Values Literal and State the Shell's Contract

`injectBootstrapConfig` passed its script as a replacement string, so a `$&`,
`$1` or `$'` inside an injected value was expanded by `String.replace` instead
of reaching the client. Both insertion points take a replacement function now,
and the spec reads its values back off the global through an explicit result
type rather than an unchecked dictionary.

The shell answers from the deployment's own configuration, which a per-tenant,
role or user override of `interface.privacyPolicy` or `termsOfService` can
disagree with — `/api/config` resolves the caller's and the client prefers it.
That contract was overstated in three comments ("a deployment-lifetime fact",
"the same one the config will give"); they now say what the answer is and what
resolves the rest. Two scenarios cover the disagreement end to end: a document
served without the answer, and a policy link only this caller's config carries.
2026-09-13 21:53:54 -04:00
..
scenarios 🪧 fix: Emit the Configured-Footer Answer With the HTML Shell (#15886) 2026-09-13 21:53:54 -04:00
activity-labels.spec.ts 🧰 feat: Unify Tool Activity, Reasoning, Search, and Agent Workflows (#14546) 2026-09-06 14:56:50 -04:00
activity-phases.spec.ts 🪄 feat: Smooth Activity Phase Transitions (#14832) 2026-08-14 11:57:48 -04:00
agent-file-ownership.spec.ts 🧷 fix: Align Agent File Attachment Ownership (#14149) 2026-07-07 16:23:48 -04:00
agent-handoffs.spec.ts 🧰 feat: Unify Tool Activity, Reasoning, Search, and Agent Workflows (#14546) 2026-09-06 14:56:50 -04:00
agent-skills-added.spec.ts 🧩 fix: Harden Agent Skill Lifecycles End to End (#14429) 2026-07-25 08:19:12 -04:00
agent-skills.spec.ts 🎛 refactor: Replace Agent Skills Toggles With a Three-Way Mode Control (#15520) 2026-09-06 03:32:56 +02:00
agents.helpers.ts 💠 fix: Paint Native Tool Verification Badges (#15862) 2026-09-12 16:03:03 -04:00
agents.spec.ts 🧲 refactor: Consolidate Claude Prompt Cache and Context Checks (#15008) 2026-08-20 12:18:50 -04:00
app-load.spec.ts
attachment-preview-loop.spec.ts 🐛 fix: Prevent Infinite Render Loop on Code-Execution File Preview (#13922) 2026-06-23 16:34:43 -04:00
auth.spec.ts
background-tools.spec.ts 🛎️ feat: Wake Agents on Background Tool Completion (#15350) 2026-08-30 08:56:41 -04:00
bookmarks.spec.ts 🔖 fix: Decrement Bookmark Counts When Deleting Conversations (#13830) 2026-06-18 08:37:08 -04:00
chat.spec.ts 🧷 ci: Enforce Durable Agent Finalization for E2E tests (#14740) 2026-08-11 08:27:50 -04:00
code-upload.spec.ts 📎 test: Verify Stateful Sandbox Upload Continuity (#14363) 2026-09-09 00:35:28 -04:00
completion.spec.ts 🔠 feat: Render Safe Upstream Model Errors (#15837) 2026-09-12 20:23:54 -04:00
content-filters.helpers.ts 🛂 feat: Filter Model-Bound Content by Source (#14425) 2026-08-21 22:43:32 -04:00
content-filters.persisted.spec.ts 🧶 fix: Preserve Multi-Agent Tool Call History (#15468) 2026-09-01 18:37:45 -04:00
content-filters.submissions.spec.ts 🛂 feat: Filter Model-Bound Content by Source (#14425) 2026-08-21 22:43:32 -04:00
conversation-management.spec.ts 🧷 ci: Await durable finalization in conversation-management mock e2e (#15791) 2026-09-09 14:50:57 -04:00
db.ts 🧊 fix: Withhold Rerun Controls on Compaction Turns (#15797) 2026-09-11 10:41:50 -04:00
deferred-tools-hitl.spec.ts 🧾 feat: Track Authoritative Agent Event Outcomes (#15213) 2026-08-25 18:20:57 -04:00
deployment-skills.spec.ts 🦘 feat: Share Run-Scoped Files With Subagents (#15848) 2026-09-12 20:14:22 -04:00
enforced-model-specs.spec.ts 🪃 fix: Restore Raw Spec Fallback for Enforced Presets (#13804) 2026-06-16 21:10:22 -04:00
export.spec.ts ⚡ perf: Optimize First Load of Large Conversations (#14901) 2026-08-16 19:45:21 -04:00
file-provisioning.spec.ts 🚚 feat: Route Attachments and Provision Tools Lazily (#15763) 2026-09-08 23:28:52 -04:00
helpers.ts 🚚 feat: Route Attachments and Provision Tools Lazily (#15763) 2026-09-08 23:28:52 -04:00
hover-actions.spec.ts ⏱️ feat: Show Elapsed Time Under the Streaming Response (#15167) 2026-08-24 11:36:36 -04:00
idle-animations.spec.ts 📴 fix: Stop Hidden Code Spinners (#15846) 2026-09-11 21:37:49 -04:00
isolation.spec.ts
mcp-allowlist-override.spec.ts 🧽 test: Restore the Admin Allowlist Override This Spec Leaks Into the Shard (#15543) 2026-09-03 12:42:10 -04:00
mcp-ephemeral.spec.ts 🔌 fix: Preserve Ephemeral MCP Selections Across Model Switches (#13697) 2026-06-11 18:13:41 -04:00
mcp-fixture-isolation.spec.ts 📡 fix: Refresh MCP Tools After List-Changed Notifications (#14686) 2026-08-08 13:50:21 -04:00
mcp-oauth-readiness.spec.ts 🎟️ fix: Reconcile MCP OAuth Readiness Across Pods (#14629) 2026-08-05 19:42:26 -04:00
mcp-oauth-resume.spec.ts 🪢 test: Prove MCP OAuth Resume End to End (#15485) 2026-09-01 18:38:39 -04:00
mcp-tool-list-changed.spec.ts 📡 fix: Refresh MCP Tools After List-Changed Notifications (#14686) 2026-08-08 13:50:21 -04:00
mcp.spec.ts 🧷 ci: Enforce Durable Agent Finalization for E2E tests (#14740) 2026-08-11 08:27:50 -04:00
memory.spec.ts 🧠 feat: Add Memory as an Agent Capability with Inline Tools and Ephemeral Badge (#13869) 2026-06-24 17:14:13 -04:00
mermaid-artifacts.spec.ts 🧜 feat: Open Mermaid Diagrams as Artifacts with SVG/PNG Export (#14713) 2026-08-09 09:02:42 -04:00
message-edit-layout.spec.ts 💬 style: Unify Message Row Layout and Edit Surfaces (#14770) 2026-08-13 19:30:39 -04:00
message-tree.spec.ts 🔠 feat: Render Safe Upstream Model Errors (#15837) 2026-09-12 20:23:54 -04:00
message-visual.spec.ts 💬 style: Unify Message Row Layout and Edit Surfaces (#14770) 2026-08-13 19:30:39 -04:00
model-replay-tools.spec.ts 🪂 fix: Preserve Subscribers Through Terminal Handoffs (#15462) 2026-09-01 11:15:24 -04:00
model-replay.spec.ts 🎬 test: Record-Once/Replay-Forever Model Fixtures for Mock E2E (#15210) 2026-08-25 18:29:55 -04:00
model-spec-branding.spec.ts
model-spec-icons.spec.ts
model-spec-skills.spec.ts 🧩 fix: Harden Agent Skill Lifecycles End to End (#14429) 2026-07-25 08:19:12 -04:00
model-spec-starters.spec.ts 💬 feat: Conversation Starters for Model Specs (#13710) 2026-06-13 11:38:49 -04:00
model-switching.spec.ts 🧷 ci: Enforce Durable Agent Finalization for E2E tests (#14740) 2026-08-11 08:27:50 -04:00
permissions.spec.ts
projects.spec.ts
prompts.spec.ts 🧭 refactor: make the side panels behave the same way (#14695) 2026-08-08 23:15:46 -04:00
quotes.spec.ts 🕹 fix: Keep Composer Focus Off Clicked Controls So Menus Can Close (#15669) 2026-09-06 17:31:16 -04:00
replay.helpers.ts 🎬 test: Record-Once/Replay-Forever Model Fixtures for Mock E2E (#15210) 2026-08-25 18:29:55 -04:00
run-files-delivery.spec.ts 🦘 feat: Share Run-Scoped Files With Subagents (#15848) 2026-09-12 20:14:22 -04:00
run-files-lifecycle.spec.ts 🦘 feat: Share Run-Scoped Files With Subagents (#15848) 2026-09-12 20:14:22 -04:00
run-files.spec.ts 🦘 feat: Share Run-Scoped Files With Subagents (#15848) 2026-09-12 20:14:22 -04:00
schedules-execution.spec.ts 🛎️ fix: Preflight MCP Readiness for Scheduled Chats (#15782) 2026-09-09 22:18:45 -04:00
schedules.spec.ts ⏱️ feat: Run Scheduled Chats Through Durable Agent Triggers (#14939) 2026-08-20 11:51:30 -04:00
shared-links.spec.ts 🔗 feat: Shared Conversation Badge and Stable Share Links (#14712) 2026-08-09 08:14:54 -04:00
shortcuts.spec.ts ⌨️ fix: Honor defaultPrevented in Global Shortcut Dispatch (#14570) 2026-08-02 08:08:12 -04:00
sidebar.spec.ts 🐛 fix: Give the Header's Sidebar Toggle Its Own Test Id (#14850) 2026-08-14 20:34:03 -04:00
skill-file-authoring.spec.ts
soft-default.spec.ts 🏷️ fix: Persist the Ephemeral Agent's Display Label as Sender (#14899) 2026-08-16 19:50:30 -04:00
stateful-code-bridge.spec.ts 🛰️ feat: Show BYOM Worker Readiness (#15618) 2026-09-04 19:02:35 -04:00
steering-escalation.spec.ts 🩻 feat: improve agent filter controls for insights (#15807) 2026-09-11 10:54:37 -04:00
steering.spec.ts 🫳 fix: Let the Composer Column Shrink Below a Queued Row's Text (#15665) 2026-09-06 15:32:01 -04:00
streaming.spec.ts 🧷 ci: Enforce Durable Agent Finalization for E2E tests (#14740) 2026-08-11 08:27:50 -04:00
subagent-activity.spec.ts 🧪 fix: Align Detached Activity E2E With the Removed Running Chip (#15382) 2026-08-30 19:53:59 -04:00
subagent-results.spec.ts 🧷 ci: Enforce Durable Agent Finalization for E2E tests (#14740) 2026-08-11 08:27:50 -04:00
thread-fold.spec.ts 🎨 refactor: adopt the @librechat/client design system (semantic color tokens + component migration) (#13879) 2026-08-06 09:15:17 -04:00
thread-renderers.spec.ts 🎖️ perf: Promote Flat Thread Rendering to Default (#15660) 2026-09-06 18:31:08 +00:00
tool-approvals.spec.ts 🧐 feat: Restore Interactive Tool Approval Review (#15717) 2026-09-07 22:02:56 -04:00
two-factor.spec.ts
unified-upload.spec.ts 🚚 feat: Route Attachments and Provision Tools Lazily (#15763) 2026-09-08 23:28:52 -04:00
usage.spec.ts ✨ feat: Context Gauge Hover Reveal and Breakdown Motion Polish (#15038) 2026-08-21 11:34:36 -04:00