Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
519560c to
82e975b
Compare
82e975b to
2cb1419
Compare
c92adf4 to
197c158
Compare
|
@coderabbitai review |
|
197c158 to
6c41f37
Compare
2cb1419 to
fa4d9d2
Compare

Chained PRs
sqlite-wasm-rs0.3.0.Motivation
Importing a large SQL dump in application code creates avoidable startup work, large transient allocations, and repeated application/worker crossings. Consumers need an application-agnostic way to install an authenticated SQLite snapshot safely across multiple tabs.
Implementation
installSnapshot(url, compression, sha256, uncompressedSize)with raw and gzip streaming.PRAGMA quick_checkbefore activation.await db.close(), followed bydb.free().Multi-tab shutdown contract
Every close performs an explicit coordinator shutdown handshake:
Snapshot cancellation is separately acknowledged and fenced immediately before activation. The caller never receives a cancellation/timeout failure followed by a hidden successful activation. Cancel-before-request ordering is tombstoned with bounded expiry, last-waiter cancellation does not absorb successor jobs, and leader close cannot strand follower-owned work.
Safety
Review-loop fixes
Codex review drove fixes for recovery ordering, stream cancellation, leader loss, install coalescing, safe integer/path bounds, terminal close semantics, follower detach, cancellation acknowledgement, finalization fences, bounded cancel tombstones, successor-job ordering, leader/follower close interleavings, and explicit coordinator draining. The teammate review-loop skill was removed after verification at the user's request.
Verification
sqlite-web-coreChrome WASM: 120/120sqlite-webChrome WASM: 42/42The browser regression suite covers raw/gzip install, digest/corruption preservation, oversize cancellation, two-client coalescing, close/wipe races, zero-yield install+close, follower cancellation, finalization cancellation, leader close with coalesced/follower-only work, and OPFS reopen handoff.
Downstream
Raindex integration: rainlanguage/raindex#2872, #2873, and #2871. The SQLite Web package must be released and Raindex's dependency version bumped before standalone runtime use.