fix(desktop): cross-machine session-list sync (pins/titles) — focus refresh + 30s focused poll - #283
Merged
Merged
Conversation
Kyzcreig
force-pushed
the
fix/cross-machine-session-list-sync
branch
from
July 11, 2026 01:42
191b7e5 to
8fc3b7f
Compare
…cus + 30s focused poll BroadcastChannel only reaches windows on the SAME machine, and gateway session.info events route to the owning transport only, so a pin/unpin/ title/create on one desktop never propagated live to another (visible only after app restart — reported by Ace pinning on Studio and MBP). Mirrors the poll-based livesync pattern: refresh on window focus + a 30s interval while focused. No new RPCs; reuses refreshSessions().
Kyzcreig
force-pushed
the
fix/cross-machine-session-list-sync
branch
from
July 11, 2026 01:47
8fc3b7f to
ace3dcb
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.
Ace repro'd both directions live: pin on Studio ≠ visible on MBP; unpin on MBP ≠ visible on Studio (until app restart).
Root cause: two mechanisms both stop at the machine boundary —
session-sync.tsuses BroadcastChannel (same-machine renderer windows only), and gatewaysession.infoevents route to the session's OWNING transport only (write_jsonprecedence: per-session transport first). A second desktop connected to the same gateway never hears about the mutation.Fix: refresh the session list on window focus + a 30s poll while focused (mirrors the shipped livesync poll pattern). Reuses
refreshSessions(); no new RPCs; pop-out windows excluded as before. Typecheck clean.