Drain TreeCRDT work before teardown - #107
Closed
marcus-pousette wants to merge 1 commit into
Closed
Conversation
marcus-pousette
force-pushed
the
refactor/pr4325-review-cleanup
branch
from
July 24, 2026 09:11
d928934 to
90dbbe4
Compare
marcus-pousette
force-pushed
the
refactor/pr4325-lifecycle-hardening
branch
from
July 24, 2026 09:31
b0d74c3 to
6a5aacf
Compare
marcus-pousette
marked this pull request as draft
July 24, 2026 09:41
marcus-pousette
force-pushed
the
refactor/pr4325-review-cleanup
branch
from
July 24, 2026 12:04
90dbbe4 to
f4721e0
Compare
marcus-pousette
force-pushed
the
refactor/pr4325-lifecycle-hardening
branch
2 times, most recently
from
July 24, 2026 12:11
4e0621f to
f198eba
Compare
marcus-pousette
force-pushed
the
refactor/pr4325-review-cleanup
branch
from
July 24, 2026 12:11
f4721e0 to
a88ff14
Compare
marcus-pousette
force-pushed
the
refactor/pr4325-lifecycle-hardening
branch
from
August 4, 2026 13:20
f198eba to
5e8c477
Compare
Antonov548
force-pushed
the
refactor/pr4325-review-cleanup
branch
from
August 4, 2026 13:37
3f195bb to
7dc894f
Compare
marcus-pousette
force-pushed
the
refactor/pr4325-lifecycle-hardening
branch
from
August 4, 2026 13:50
5e8c477 to
567c56c
Compare
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.
Stack
This is the focused teardown follow-up after #108, #109, and #106. Review and merge that stack first.
Summary
waitForIdleor teardown consumes themdrop → persist → init, idle waiting, error-safe draining, and failed cleanup ownershipThe shared write/materialization queues intentionally represent em’s one Redux integration pipeline; em creates one active app thoughtspace per browser realm. Client, provider session, persistence accounting, and WebSocket state remain factory-local.
Validation
yarn lint:tscyarn lint, full unit suite, and Puppeteerstartupplustreecrdt-single-tabpassed