mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-11-16 21:08:17 +00:00
* 📱 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.
|
||
|---|---|---|
| .. | ||
| __tests__ | ||
| Agents | ||
| Artifacts | ||
| Assistants | ||
| Audio | ||
| Chat | ||
| Config | ||
| Conversations | ||
| Endpoint | ||
| Files | ||
| Generic | ||
| Input | ||
| MCP | ||
| Mermaid | ||
| Messages | ||
| Nav | ||
| Plugins | ||
| Prompts | ||
| Roles | ||
| Sharing | ||
| Skills | ||
| SSE | ||
| ApiErrorBoundaryContext.tsx | ||
| AuthContext.tsx | ||
| index.ts | ||
| ScreenshotContext.tsx | ||
| useAdaptiveIcon.ts | ||
| useCatalogWarmup.ts | ||
| useChatBadges.ts | ||
| useClockFormat.ts | ||
| useDocumentTitle.ts | ||
| useFavorites.ts | ||
| useFocusTrap.ts | ||
| useGenerationsByLatest.ts | ||
| useGreeting.ts | ||
| useInfiniteScroll.ts | ||
| useIsActiveItem.ts | ||
| useKeyboardShortcuts.spec.tsx | ||
| useKeyboardShortcuts.ts | ||
| useLocalize.ts | ||
| useLocalizedConfig.ts | ||
| useLocalStorage.tsx | ||
| useLocalStorageAlt.tsx | ||
| useNewConvo.ts | ||
| usePersonalizationAccess.ts | ||
| useRenderChangeLog.ts | ||
| useResourcePermissions.ts | ||
| useRoleSelector.ts | ||
| useScrollToRef.ts | ||
| useTimeout.tsx | ||
| useTimeTick.ts | ||
| useToolFavorites.ts | ||
| useVirtualGrid.ts | ||
| useWakeLock.ts | ||
| useWeekStart.ts | ||