fix(wa-sqlite): recover cleanly from OPFS initialization failure - #208
Merged
Antonov548 merged 1 commit intoAug 5, 2026
Merged
Conversation
This was referenced Jul 12, 2026
marcus-pousette
force-pushed
the
fix/wa-sqlite-opfs-init-fallback
branch
2 times, most recently
from
July 14, 2026 20:36
ed2a220 to
f57f74c
Compare
This was referenced Jul 14, 2026
marcus-pousette
force-pushed
the
fix/wa-sqlite-opfs-init-fallback
branch
2 times, most recently
from
July 15, 2026 07:16
f36e6d7 to
7f7b5e3
Compare
marcus-pousette
changed the base branch from
main
to
stack/wa-sqlite-explicit-init
July 15, 2026 07:16
marcus-pousette
force-pushed
the
fix/wa-sqlite-opfs-init-fallback
branch
from
July 15, 2026 08:01
7f7b5e3 to
b10857c
Compare
marcus-pousette
force-pushed
the
stack/wa-sqlite-explicit-init
branch
from
July 15, 2026 08:01
c3b9927 to
4401d00
Compare
marcus-pousette
force-pushed
the
fix/wa-sqlite-opfs-init-fallback
branch
from
July 16, 2026 09:52
b10857c to
853fa52
Compare
marcus-pousette
force-pushed
the
stack/wa-sqlite-explicit-init
branch
from
July 16, 2026 09:52
4401d00 to
1952830
Compare
marcus-pousette
force-pushed
the
stack/wa-sqlite-explicit-init
branch
from
July 16, 2026 11:30
1952830 to
0a2f290
Compare
marcus-pousette
force-pushed
the
fix/wa-sqlite-opfs-init-fallback
branch
from
July 16, 2026 11:30
853fa52 to
386c1bd
Compare
Antonov548
approved these changes
Aug 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
#210 prevents the reproduced automatic-extension failure, but any remaining OPFS initialization error still has to unwind every layer cleanly. A failed attempt can leave behind a database handle, VFS resources, wa-sqlite module callbacks/retry state, worker listeners, pending RPC calls, or an attached SharedWorker port.
In SharedWorker mode, that stale port can keep a failed session alive and make the next client using the same worker name fail as if a different database were already initialized.
Change
close, ordropfails.This PR is the cleanup and recovery layer after #210; it does not claim to be the root fix for the initialization failure.
Dependencies and merge order
Stacked directly on #210. Use a merge commit after #210, then retarget #163 to
main.