LibreChat/client/src/hooks
Marco Beretta caeb786e97
🔀 feat: Show the Conversation Pull Request in the Sidebar List (#16815)
* feat: Show the Conversation Pull Request in the Sidebar List

Add a batch lookup route and a sidebar row mark: the state icon with the CI dot, opening the same card beside the row on hover. The row keeps the conversation's own title.

* fix: Address Review Findings on the Sidebar Pull Request Batch and Row Mark

Cap the whole batch with a configurable deadline, make the row mark a keyboard-reachable button that opens the card on focus, refresh rows when the window regains focus through the shared batch, and show a retryable failure state instead of treating a failed first lookup as no pull request.

* fix: Send Sidebar Pull Request Batches One at a Time

Queue every batch request behind the one before it, so an oversized list or an overlapping flush cannot multiply the server's configured lookup concurrency, and bound how long one request may hold the queue so a request that never answers cannot stop the rest.

* fix: Keep the Batch Request Timeout Above the Server Deadline

Default the client's request timeout to just past the longest batchTimeoutSeconds a deployment may configure, so a queued request never starts while the previous request's server-side lookups are still running.

* fix: Keep Batch Lookups Inside the Concurrency Limit and Per-Entry Failures Per Entry

Share one lookup limiter across every batch request so lookups that outlive a request's deadline keep their slot, answer a missing token only for the conversations that needed it, and point the row at its pull request description only while that text is in the page.

* fix: Bound Batch Reads, Scope Concurrency Per Credential, and Gate the Sidebar on the Batch Version

Start the batch deadline when the request arrives and bound the config and lane reads, count lookup slots per credential, advertise a batch route version and ask only a server that has it, take no row space for an absent mark, show a failed refresh over a cached empty answer, keep a malformed response from stalling the request queue, and repair the lane recording tests that still used a mock removed on dev.

* fix: Move Capability Resolution Into the Package and Harden the Batch Route and Queue

Resolve the pull request startup capabilities in packages/api so the route stays wiring only, bound the config and lane reads by the configured deadline, merge identical lanes before taking limiter slots, fall back to the single route when a replica has no batch route, and dispose the batch queue when the signed-in user changes.

* fix: Abort the Batch Fallback With Its Request So the Queue Never Overlaps It

Give the batch fetcher the request's abort signal and pass it to every single-route call, abort a request that times out or is disposed, and stop the fallback workers from starting more calls once it has.

* fix: Forward the Abort Signal to the Batch POST

Pass the request's abort signal through the batch fetcher, the data-provider call and Axios, so a batch request that times out or is disposed is cancelled instead of continuing beside the next one, and settle a request promptly when it is aborted.

* fix: Close the Pull Request Lookup Follow-Ups and Cancel Abandoned Sidebar Rows
2026-10-07 12:36:57 +02:00
..
__tests__ 🔀 feat: Show the Conversation Pull Request in the Sidebar List (#16815) 2026-10-07 12:36:57 +02:00
Agents 🏝️ fix: Let a No-Workspace Turn Carry a Remembered Approval Mode (#16763) 2026-10-05 07:28:28 -04:00
Artifacts 🌊 perf: Trim Per-Token and Per-Render Work in Streaming and Lists (#16718) 2026-10-03 10:40:55 -04:00
Assistants
Audio 🔇 fix: Keep Reasoning Out of Read Aloud (#16790) 2026-10-05 23:44:39 +02:00
Auth 🔭 feat: Recover Stale Chunks Without the Error Page and Ship Client Logs to RUM (#16701) 2026-10-03 23:17:56 -04:00
Chat 🗂️ feat: Merge Change and Remove Project Into One Submenu (#16844) 2026-10-07 07:24:01 +02:00
Config 💬 refactor: ChatForm UI redesign with unified palette (#14473) 2026-10-01 03:46:18 +00:00
Conversations 🖲️ fix: Enable Running Chat Menus and Preserve Renamed Titles (#16697) 2026-10-03 23:17:15 -04:00
Endpoint
Files 🔭 feat: Recover Stale Chunks Without the Error Page and Ship Client Logs to RUM (#16701) 2026-10-03 23:17:56 -04:00
Generic 💬 refactor: ChatForm UI redesign with unified palette (#14473) 2026-10-01 03:46:18 +00:00
Input 🧹 refactor: Clear the Raw-Color and Unknown-Class Design Suppressions (#16825) 2026-10-06 22:06:20 +02:00
MCP 💬 refactor: ChatForm UI redesign with unified palette (#14473) 2026-10-01 03:46:18 +00:00
Mermaid 🔭 feat: Recover Stale Chunks Without the Error Page and Ship Client Logs to RUM (#16701) 2026-10-03 23:17:56 -04:00
Messages 🪪 feat: Name and Face Subagents Like Main Chat Turns (#16692) 2026-10-05 07:15:04 -04:00
Nav 🔍 feat: App-Wide UI Scale Setting (#14903) 2026-10-04 23:20:04 +02:00
Plugins 💬 refactor: ChatForm UI redesign with unified palette (#14473) 2026-10-01 03:46:18 +00:00
Prompts
Roles
Sharing
Skills
SSE 🪶 perf: Load Tool-Call Previews and Fetch Full Parts on Demand (#16753) 2026-10-05 07:42:45 -04:00
ApiErrorBoundaryContext.tsx
AuthContext.tsx 🔀 feat: Show the Conversation Pull Request in the Sidebar List (#16815) 2026-10-07 12:36:57 +02:00
index.ts 🪶 style: Quieter Primitives, Shared Panel Headers, and Flat Management Lists (#16244) 2026-10-01 03:46:17 +00:00
ScreenshotContext.tsx 📔 feat: Preserve Owner Text During PII Redaction (#16311) 2026-10-02 11:43:10 -04:00
useAdaptiveIcon.ts
useBalanceSummary.ts 💳 feat: Show Balance in the Context Gauge as Credits, Currency, or Percent (#16762) 2026-10-05 06:46:44 -04:00
useCatalogWarmup.ts
useChatBadges.ts 🧽 style: Composer, Welcome Screen and Context Panel Polish (#15838) 2026-09-11 21:23:17 -04:00
useClockFormat.ts
useDocumentTitle.ts 🔔 feat: Unseen Reply Indicators, Reply Notifications, and Mark as Unread (#15025) 2026-10-01 03:46:16 +00:00
useFavorites.ts 📌 feat: Unified Pinned Section With Sidebar Drag Interactions (#15057) 2026-09-11 10:41:05 -04:00
useFocusTrap.ts
useGenerationsByLatest.ts 🪢 fix: Withhold the Editor's Rerun Where No User Turn Can Be Replayed (#15887) 2026-09-13 12:54:01 -04:00
useGreeting.ts
useIsActiveItem.ts
useKeyboardShortcuts.spec.tsx 💬 refactor: ChatForm UI redesign with unified palette (#14473) 2026-10-01 03:46:18 +00:00
useKeyboardShortcuts.ts ⏳ feat: Add Ephemeral Retention Mode for Forced Temporary Chats (#13811) 2026-10-01 03:46:19 +00:00
useLocalize.ts
useLocalizedConfig.ts
useLocalStorage.tsx
useLocalStorageAlt.tsx
useNewConvo.ts 🎛️ refactor: Hand Chat Preferences to the Host and the Follow-Up Queue to Jotai (#16604) 2026-10-01 17:47:26 +02:00
usePersonalizationAccess.ts
useRenderChangeLog.ts
useResourcePermissions.ts
useRoleSelector.ts
useScaledMaxWidth.ts 🔍 feat: App-Wide UI Scale Setting (#14903) 2026-10-04 23:20:04 +02:00
useScrollFade.ts 🪶 style: Quieter Primitives, Shared Panel Headers, and Flat Management Lists (#16244) 2026-10-01 03:46:17 +00:00
useScrollToRef.ts ⏹️ fix: Cancel Stale Throttled Scroll Callbacks (#16167) 2026-09-21 21:43:10 -04:00
useTimeout.tsx 🔐 feat: Enforce Required Two-Factor Authentication (#14731) 2026-10-01 23:39:51 +02:00
useTimeTick.ts
useToolFavorites.ts
useVirtualGrid.ts
useWakeLock.ts
useWeekStart.ts