LibreChat/client/src/hooks
Danny Avila 038903abc0
📱 fix: Open Sign-In and External Links From iOS Home-Screen Apps (#16077)
* 📱 fix: Open Sign-In and External Links From iOS Home-Screen Apps

Sign-in prompts, the MCP OAuth Continue buttons and the account menu links opened with window.open and a noopener,noreferrer features string. WebKit treats a features string as a popup-window request, which an iOS home-screen app cannot open, and the chat sign-in also awaited its CSRF bind before opening, outside the tap. Links now open through a target=_blank link with rel=noopener noreferrer, and the chat prompt binds when it appears so the tap opens the provider synchronously.

* fix: Keep sign-in closed until its CSRF bind lands, and surface builder OAuth in its dialog

A tap while the chat prompt's bind was still in flight could open the provider before its CSRF cookie existed, and an Action callback has no fallback without that cookie; the button now stays disabled until the bind lands. The MCP builder card opened the authorization URL only after its initialize request, which iOS home-screen apps refuse and which left the card with no way to continue; it now shows the MCP OAuth dialog instead.

* fix: Let the tapped prompt own the CSRF binding, and show only the card's live OAuth flow

Live sign-in prompts share one CSRF cookie per callback path, so the last prompt to bind owned it; a tap now re-binds its own prompt right after opening the provider. The builder card kept a local copy of the authorization URL that outlived its flow and could reopen it on a later initialization; it now shows the manager's shared flow URL, cleared when the flow ends, and only for a flow the card itself started.
2026-09-19 08:09:25 -04:00
..
__tests__ 🧿 fix: Bind Login Flows to the Browser That Started Them (#15880) 2026-09-13 11:47:29 -04:00
Agents 🪃 fix: Remember the Last Code Approval Mode (#15973) 2026-09-15 14:05:10 -04:00
Artifacts 🪧 feat: Unify Artifact Triggers as Tool Rows (#15915) 2026-09-14 15:08:07 -04:00
Assistants 🧼 fix: Clear Model Spec Fields on Configured Selections (#15544) 2026-09-03 09:46:15 -04:00
Audio 🔊 fix: Autoplay Latest Message for Browser TTS and short responses (#15347) 2026-08-30 06:54:16 -04:00
Chat 📓 fix: Keep Typed Text When Starting a New Chat (#15985) 2026-09-16 01:45:04 -04:00
Config 🛂 fix: Back Off MCP OAuth Discovery (#15783) 2026-09-09 22:21:34 -04:00
Conversations 🔎 feat: Filter and Sort the Sidebar Chats List (#15842) 2026-09-12 15:56:10 -04:00
Endpoint 🖼️ refactor: Consolidate Provider Icons Into a Single Registry (#15148) 2026-08-24 13:00:38 -04:00
Files 📖 fix: Preview Extracted Upload Text (#15946) 2026-09-14 20:58:04 -04:00
Generic 📜 style: Scroll the Sidebar as One Surface (#15914) 2026-09-14 16:06:59 +02:00
Input ⏮️ fix: Keep the Last Keystrokes When a Run Finishes (#15987) 2026-09-16 01:47:25 -04:00
MCP 📱 fix: Open Sign-In and External Links From iOS Home-Screen Apps (#16077) 2026-09-19 08:09:25 -04:00
Mermaid ♿ feat: High Contrast Light and Dark Appearance Modes (#15178) 2026-09-05 22:20:33 +02:00
Messages 🫴 fix: Preserve Queued Follow-Ups Through Handoff (#15942) 2026-09-14 21:04:08 -04:00
Nav 🩻 feat(insights): Scope Insights to Authorized Agents (#15549) 2026-09-04 20:16:58 -04:00
Plugins 🕸️ feat: Complete Keenable Web Search Provider (#15288) 2026-08-27 14:29:20 -04:00
Prompts
Roles
Sharing 🩻 feat(insights): Scope Insights to Authorized Agents (#15549) 2026-09-04 20:16:58 -04:00
Skills 🎛 refactor: Replace Agent Skills Toggles With a Three-Way Mode Control (#15520) 2026-09-06 03:32:56 +02:00
SSE 🧱 fix: Keep Streamed Content When a Turn Fails (#15961) 2026-09-15 12:59:31 -04:00
ApiErrorBoundaryContext.tsx
AuthContext.tsx 🧿 fix: Bind Login Flows to the Browser That Started Them (#15880) 2026-09-13 11:47:29 -04:00
index.ts 🎨 feat: Theme-Adaptive SVG Support for Custom MCP and Group Icons (#13817) 2026-09-04 10:49:43 -04:00
ScreenshotContext.tsx ♿ feat: High Contrast Light and Dark Appearance Modes (#15178) 2026-09-05 22:20:33 +02:00
useAdaptiveIcon.ts 🎨 feat: Theme-Adaptive SVG Support for Custom MCP and Group Icons (#13817) 2026-09-04 10:49:43 -04:00
useCatalogWarmup.ts ⚡ perf: Warm Feature Catalogs in the Background After First Paint (#15047) 2026-08-21 20:33:29 -04:00
useChatBadges.ts 🧽 style: Composer, Welcome Screen and Context Panel Polish (#15838) 2026-09-11 21:23:17 -04:00
useClockFormat.ts 🕰️ feat: Clock Format and Week Start Preferences (#15121) 2026-08-23 18:41:14 -04:00
useDocumentTitle.ts
useFavorites.ts 📌 feat: Unified Pinned Section With Sidebar Drag Interactions (#15057) 2026-09-11 10:41:05 -04:00
useFocusTrap.ts 🧵 refactor: Give the Subagent Panel One Composer and Main Chat's Metrics (#15436) 2026-08-31 21:46:58 -04:00
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
useInfiniteScroll.ts
useIsActiveItem.ts
useKeyboardShortcuts.spec.tsx 🧰 feat: Unify Tool Activity, Reasoning, Search, and Agent Workflows (#14546) 2026-09-06 14:56:50 -04:00
useKeyboardShortcuts.ts 🚚 feat: Route Attachments and Provision Tools Lazily (#15763) 2026-09-08 23:28:52 -04:00
useLocalize.ts
useLocalizedConfig.ts
useLocalStorage.tsx
useLocalStorageAlt.tsx
useNewConvo.ts 🖋️ feat: Seal Code Environment Choices Per Conversation (#15868) 2026-09-12 20:45:00 -04:00
usePersonalizationAccess.ts
useRenderChangeLog.ts
useResourcePermissions.ts
useRoleSelector.ts
useScrollToRef.ts
useTimeout.tsx
useTimeTick.ts
useToolFavorites.ts
useVirtualGrid.ts
useWakeLock.ts
useWeekStart.ts 🕰️ feat: Clock Format and Week Start Preferences (#15121) 2026-08-23 18:41:14 -04:00