Skip to content

🪪 docs: Document conversationIcons and Keep English Fallbacks Out of Localized Search - #946

Merged
berry-13 merged 2 commits into
mainfrom
berry-13/docs-conversation-icons
Nov 19, 2026
Merged

berry-13 merged 2 commits into
mainfrom
berry-13/docs-conversation-icons

Conversation

@berry-13

@berry-13 berry-13 commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Documents three interface options changing in LibreChat: the new conversationIcons key, which hides the icon on sidebar chat history rows; landingHeading: greeting, which now also drops the entity icon beside the greeting; and messageAuthor: whenDifferent, which now also covers model spec and endpoint conversations, not only saved agents.

The Vercel deployment of main has failed since 2026-11-17 with FALLBACK_BODY_TOO_LARGE: the pt-BR search index is a 20.09 MB prerendered response, over Vercel's 20 MB limit. The search route filters each localized index down to translated pages, but it wrapped getLanguages() while createFromSource reads getPages(), so every locale indexed all 218 pages, English fallbacks included. This PR wraps getPages() instead, which drops 38 English fallback pages from each non-English index (largest index now 15.62 MB) and leaves the English index unchanged.

Related to LibreChat-AI/LibreChat#18535, LibreChat-AI/LibreChat#18536, LibreChat-AI/LibreChat#18537

Change Type

  • Documentation
  • Bug fix

Testing

  • pnpm test: 43 files, 483 tests pass, including the new __tests__/search-route.test.ts (2 of its 3 cases fail on the old route and pass on the fix).
  • pnpm lint:prettier, pnpm check:config-version, pnpm check:locale-meta, pnpm typecheck and pnpm lint pass.
  • pnpm build: every prerendered /api/search/<locale> body is under 20,000,000 bytes, the largest being pt-BR at 15,616,073 (was 20,085,938); the English body is unchanged at 18,655,231 bytes (1.34 MB under the limit).
  • Queried the built search route through the site's search client: a translated page is found in pt-BR, the English-only background responses page is found in en and no longer in pt-BR.
  • Read the rendered documentation sections against the code in the three LibreChat branches; no other pages reference these keys.

Checklist

  • I reviewed my own changes

@berry-13 berry-13 added the documentation Improvements or additions to documentation label Nov 19, 2026
@vercel

vercel Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
librechat-ai Ready Ready Preview Nov 19, 2026 7:03pm UTC

Request Review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-19T18:55:46.026163Z 4b743b6 New commits
🔒 Security Review ✅ Completed 2026-11-19T18:15:52.274079Z 58c737a PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown
Contributor

📦 Next.js Bundle Analysis for librechat.ai

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

createFromSource builds each locale's index from getPages(), but the
translated-pages filter in the search route wrapped getLanguages(), so it
never applied. Every non-English index carried all 218 pages, English
fallbacks included, and the pt-BR index reached 20.09 MB. Vercel rejects a
prerendered response body over 20 MB (FALLBACK_BODY_TOO_LARGE), so the
production deployment of main has failed since 2026-11-17.

Wrap getPages() instead, and cover the route with a test that runs the real
fumadocs loader and createFromSource over a small translated source.
@berry-13 berry-13 added the bug Something isn't working label Nov 19, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📦 Next.js Bundle Analysis for librechat.ai

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

@berry-13 berry-13 changed the title 🪪 docs: Document conversationIcons and the Greeting and Spec Author Behavior 🪪 docs: Document conversationIcons and Keep English Fallbacks Out of Localized Search Nov 19, 2026
@berry-13
berry-13 merged commit 6a825fb into main Nov 19, 2026
5 checks passed
@berry-13
berry-13 deleted the berry-13/docs-conversation-icons branch November 19, 2026 21:56

This branch was successfully deployed

1 active deployment
Preview — 4b743b61 Deployed Nov 19, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant