Skip to content

fix: disable multi-tab on Safari regardless of mobile or desktop - #63

Merged
michaelbarnes merged 1 commit into
mainfrom
chore/safari-multi-tab
Jul 8, 2026
Merged

fix: disable multi-tab on Safari regardless of mobile or desktop#63
michaelbarnes merged 1 commit into
mainfrom
chore/safari-multi-tab

Conversation

@michaelbarnes

Copy link
Copy Markdown
Contributor

Safari aggressively suspends background tabs, which breaks the shared worker coordination between tabs. Multi-tab enablement now lives in a single isMultiTabEnabled() helper (SharedWorker available and not Safari) used by both pickVFS and the PowerSyncDatabase flags, so the logged multiTab value always matches the actual flag. The IndexedDB fallback condition simplifies to all Safari, since desktop Safari's tab suspension can strand OPFS locks even with multi-tab disabled.

These changes were made in collaboration with Claude Opus 4.8

Safari aggressively suspends background tabs, which breaks the shared
worker coordination between tabs. Multi-tab enablement now lives in a
single isMultiTabEnabled() helper (SharedWorker available and not
Safari) used by both pickVFS and the PowerSyncDatabase flags, so the
logged multiTab value always matches the actual flag. The IndexedDB
fallback condition simplifies to all Safari, since desktop Safari's tab
suspension can strand OPFS locks even with multi-tab disabled.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@michaelbarnes
michaelbarnes merged commit 932616a into main Jul 8, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant