Skip to content

feat(remote): route remote work to the Mac leading each pane - #1012

Merged
umputun merged 6 commits into
masterfrom
lead-routed-presentation
Nov 16, 2026
Merged

umputun merged 6 commits into
masterfrom
lead-routed-presentation

Conversation

@umputun

@umputun umputun commented Nov 15, 2026

Copy link
Copy Markdown
Owner

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.

  • viewers report the origin panes they lead with a new lead.report presentation frame, and the origin routes each piece of work to the latest viewer claiming that pane
  • on a Mac origin, work still leaves only when the target pane, or the primary pane for session-wide work, reports follower there
  • open work stays with the Mac it went to when the lead moves, and its close, resize and answer go there
  • a Mac leading one of the session's panes also forwards link clicks and status clears, as the presenter does
  • agterm-server offers held work to each pane's viewer on a grant, on a lead report, and after a viewer leaves
  • read-back: surfaces[].remote says whether a pane's next work goes to an attached Mac, presenters.viewers counts the attached streams, and agtermctl tree prints viewed by: N
  • an origin or viewer without lead.report keeps the presenter-only behavior

The agtermCore ownership changes (PresentationHub send, 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

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.
Copilot AI balanced review requested due to automatic review settings November 15, 2026 23:58

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remote session: asks, overlays and pages open on a Mac nobody is using once the presenter leaves or another viewer leads

2 participants