SharePoint session reconnect
Overview
Browsing documents does not refresh the SharePoint token. When the gateway asks to sign in again, thumbnails fail quietly unless the user is told.
How it works
Thumbnail loads that hit a gateway re-authentication error set a shared session-expired signal. A banner under the other top warnings offers Reconnect. Thumbnails do not open a login window by themselves. A SharePoint download still opens the login. A successful login clears the banner and refetches thumbnails.
Key files
src/protocol/externalSession.ts— session-expired signalsrc/protocol/bcyipApi.ts— maps a gateway re-authenticate error to that signalsrc/components/SharePointSessionBanner/SharePointSessionBanner.tsx— reconnect bannersrc/components/DocumentsPanel/Thumbnail.tsx— report expiry and refetch after loginsrc/utils/downloadHelpers.ts— download still opens login when the session is expired