Repository navigation
fix(sync): make syncOnce cancellation race-safe - #204
Open
marcus-pousette wants to merge 1 commit into
Open
marcus-pousette wants to merge 1 commit into
marcus-pousette wants to merge 1 commit into
Conversation
marcus-pousette
force-pushed
the
fix/sync-once-cancellation
branch
from
July 12, 2026 14:09
a6ed58e to
91ca885
Compare
marcus-pousette
force-pushed
the
sync/app-facing-controller
branch
from
July 12, 2026 15:23
7821011 to
b1b50a2
Compare
marcus-pousette
force-pushed
the
fix/sync-once-cancellation
branch
2 times, most recently
from
July 13, 2026 16:05
e3d69f3 to
7f537fe
Compare
marcus-pousette
force-pushed
the
sync/app-facing-controller
branch
from
July 13, 2026 16:05
b1b50a2 to
46cf7ac
Compare
marcus-pousette
force-pushed
the
sync/app-facing-controller
branch
from
July 24, 2026 15:13
46cf7ac to
c30c662
Compare
marcus-pousette
force-pushed
the
fix/sync-once-cancellation
branch
from
July 24, 2026 15:13
7f537fe to
88d5372
Compare
marcus-pousette
force-pushed
the
sync/app-facing-controller
branch
from
August 19, 2026 08:52
c30c662 to
d9379ed
Compare
marcus-pousette
force-pushed
the
fix/sync-once-cancellation
branch
from
August 19, 2026 08:52
88d5372 to
5cd76f4
Compare
Co-Authored-By: Codex GPT-5 (unknown context) <noreply@openai.com>
marcus-pousette
force-pushed
the
sync/app-facing-controller
branch
from
August 20, 2026 11:32
d9379ed to
8af9a3f
Compare
marcus-pousette
force-pushed
the
fix/sync-once-cancellation
branch
from
August 20, 2026 11:32
5cd76f4 to
8145916
Compare
This was referenced Aug 20, 2026
This branch has not been deployed
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
The inbound controller in #138 must stop an in-flight
SyncPeer.syncOncewhen a timeout fires or an exact peer registration is replaced, removed, or closed. Stopping only the caller's wait would leave auth, backend, responder, or send work running and could recreate state after teardown.This PR is the protocol-only prerequisite; it contains no controller or playground code.
Fix
AbortSignalsupport tosyncOnceand reuse it for subscription reconciliation.transport.sendsynchronously triggers cancellation.Cancellation cannot retract a valid frame or operation that was already transmitted or committed; operation IDs make such late valid delivery idempotent. It does prevent later frames, continuation, and state resurrection.
Stack
Based on #137. #138 adds the application-facing inbound controller on top.
Size and validation
git diff --checkpasses