Automatically restore page content after reauthentication instead of requiring manual refresh
Release notes
Problem to solve
When a SAML session expires on GitLab.com, users experience significant friction when working with multiple tabs:
- Session expires after 24 hours (or configured timeout)
- Work item pages show "This work item is not available. It either doesn't exist or you don't have permission to view it."
- User reauthenticates in one tab
- Authentication modal disappears across all tabs
- However, most tabs still show blank "work item not found" pages
- User must manually refresh each tab to restore content
- Users lose context of what was open since titles and content have disappeared
This creates substantial friction for users who keep multiple GitLab tabs open for reference, especially those with SAML SSO that requires daily reauthentication.
Proposal
After a user reauthenticates in any tab, all other GitLab tabs should automatically:
- Detect the authentication state change (via storage events or similar mechanism)
- Retry the failed API requests that resulted in "not found" errors
- Re-render the page content without requiring manual refresh
- Restore the user's view to the state before the session expired
Intended users
Feature Usage Metrics
Does this feature require an audit event?
Edited by 🤖 GitLab Bot 🤖