Repository navigation
Gate overlay and ask handoff on the origin's pane lead - #661
Merged
Merged
Conversation
the origin handed every new overlay and ask to whichever attached Mac held the presenter role, even after the user came back to the origin and took the lead. A `--block` overlay then ran on the origin but drew on the other Mac's screen, so nothing showed locally and the caller waited until a manual close. the handover now also requires the origin's target pane to report `follower`, or every existing pane for a session-wide overlay or ask. A pane that leads, is unowned, or never reported a role keeps the request local. One already handed over stays where it is when the lead changes. the hosted presenter fixtures seed the follower role, and new hosted cases cover the local fall-through for an overlay, a terminal ask and a targeted GUI ask.
…not guarantee the app-side overlay and ask wrappers still said nil meant no viewer presents the session. They now also return nil while a presenter exists, so the doc comments say nil leaves the request to the caller here. The guide said a request that stays local opens on the origin, which a hidden GUI ask never does; it now says the request stays there.
nickalie
added a commit
to nickalie/agterm-linux
that referenced
this pull request
Sep 29, 2026
…ollows Upstream umputun#661 gates the presenter handoff on the origin's pane following. Claude-Session: https://claude.ai/code/session_01Phfsdpubm1RJGzh7EtShyn
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.
the origin handed every new session overlay and ask to whichever attached Mac held the presenter role, whether or not anyone was working there. After coming back to the origin and taking a pane's lead back, a
--blockoverlay ran on the origin but drew on the other Mac's screen, so nothing showed locally and the caller waited until a manual close.the handover now also requires the origin's pane to report
follower: the target pane for a pane-scoped overlay or ask, every existing pane for a session-wide one. A pane that leads, is unowned, or never reported a role (a daemon predating the lead patch) keeps the request local. One already handed over stays where it is when the lead changes, so close, resize and result keep working against it.the rule lives in one internal
Session.followsRemotelypredicate that bothAppStore.openRemoteOverlayandAppStore.presentAskRemotelycheck. Core tests cover the role matrix, swapped pane identities and the lifecycle after a lead change; the hosted presenter fixtures seed the follower role, and new hosted cases check that the control server falls through to a local overlay, terminal ask and GUI ask.known limit, unchanged: the presenter role still goes to the first attached Mac, so with two viewers an overlay can reach the one holding the role rather than the one leading the pane.