Repository navigation
feat(remote): route remote work to the Mac leading each pane - #1012
Merged
Merged
Conversation
New asks, picks, overlays, pages and status sounds go to the viewer leading their pane, or the grant holder when none does, and every follow-up goes to the viewer that owns the work. Answers are accepted only from that owner, and losing a viewer takes back or returns to pending only its own work. A clicked page and its refusal return to the clicking viewer. Session-wide work follows the primary pane's lead instead of requiring every pane to follow.
An attached Mac sends its origin the set of origin panes it leads, computed in one place from the lead book and the row's binding: after the origin's hello answer, after a layout, on any lead change, and on the client tick, and only when the set changed. A mirror that leads the clicked pane forwards link clicks, and one leading any pane sends status clear and seen, to an origin that takes lead reports; an older origin keeps the presenter-only rule.
…work goes A headless origin offers held asks, picks, overlays and pages on a grant, a lead report and after an owner leaves, batching each viewer's share on its own. The tree adds surfaces[].remote and presenters.viewers, and the CLI prints "viewed by". Docs state the per-pane routing rule.
A click in the origin's scratch carries the origin's identity, while this Mac keeps its scratch lead under its own key, so a non-presenter leading the scratch was refused. Owner doc comments name the viewer token, and batch(session:) drops a nesting guard nothing can reach since the owner-loss re-offer runs a turn later.
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.
A new ask, pick, program overlay, page or status sound for a remote session now opens on the attached Mac that leads the target pane, so it shows up where the person is working. Session-wide work follows the origin's primary pane. With no attached Mac leading the pane, the presenter takes it as before. The other half of the issue, handing the presenter role on when the presenting Mac leaves, shipped in #1008.
lead.reportpresentation frame, and the origin routes each piece of work to the latest viewer claiming that panefollowertheresurfaces[].remotesays whether a pane's next work goes to an attached Mac,presenters.viewerscounts the attached streams, andagtermctl treeprintsviewed by: Nlead.reportkeeps the presenter-only behaviorThe
agtermCoreownership changes (PresentationHubsend, batch and owner-loss signatures, and the store calls built on them) break the agterm-linux fork build until it picks up the matching update.Fixed #1007