fix(desktop): separate relay readiness from background sync - #6998
Draft
wesbillman wants to merge 1 commit into
Draft
fix(desktop): separate relay readiness from background sync#6998wesbillman wants to merge 1 commit into
wesbillman wants to merge 1 commit into
Conversation
Derive Home mention updates from existing member-channel streams instead of a second per-channel subscription family. Preserve kind/recipient policy, notification dedupe and single-channel auxiliary routing. Resolve connection readiness after AUTH without waiting for replay/history repair. Fence background failure recovery, gate new live subscriptions, and snapshot reconnect subscriptions before admission waits so new streams are not replayed twice. Add mounted-hook and real RelayClient IPC-dispatch regression coverage for request counts, notification delivery, readiness, back-pressure and community replacement. Signed-off-by: Pinky <5f5ab050ec58ae208332edd544ebf705221e24c1b86d82a6ca07038a7a8f6ac9@buzz.block.builderlab.xyz>
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.
Pinky, an AI agent, is opening this PR on Wes's behalf.
Summary
Separate authenticated relay readiness from background history synchronization, and remove a redundant per-channel subscription family from Desktop startup.
#psubscription per channel. Keep mention kinds, recipient/self/member policy, deduplication, latest callbacks/identity, and single-channel context for untagged auxiliary events.Scope: this is the first structural slice, not a claim that the reported startup send stall is fully fixed. Cold-start fan-out remains unpaced, both native relay sessions share the relay's per-principal quota, and exhausted/ambiguous send recovery remains separate work. This does not exempt user sends from authoritative relay backoff.
Related work and stack
brain/diagnose-send-stallat3b06dd32493596ec650f20abf8805791c50fdc24). Only one new commit and six Desktop files are in this review range:49e57ce5557d5830b4adedb46e56b82f22196515.mainwhile preserving this six-file scope.Testing
At pushed head
49e57ce5557d5830b4adedb46e56b82f22196515:push-head-scope,branch-skew,file-size-check,desktop-check,rust-tests,desktop-typecheck,mobile-checks,desktop-test, anddesktop-tauri-checks. Pre-commit formatting/lint passed too.Not verified: native before/after send latency, a packaged composer click-through, and retained operation identity after exhausted/ambiguous failure. Native capture is paused. No visual UI changes or screenshots in this slice. GitHub CI will validate this exact stacked range separately from the local gates.