Skip to content

docs(multi-pc): design for driving several remotes at once - #835

Merged
mgth merged 6 commits into
v6from
feat/mpc-multi-slave-design
Nov 25, 2026
Merged

mgth merged 6 commits into
v6from
feat/mpc-multi-slave-design

Conversation

@mgth

@mgth mgth commented Nov 25, 2026

Copy link
Copy Markdown
Owner

Design first, as asked: docs/multi-pc.md, "Several remotes at once", plus a pointer from docs/multi-pc-etat.md §6. No code in this PR; the code follows in two independent PRs to v6 (hook, then agent).

In short

  • The destination exists only on the master's hook → agent hop: a new input event Host { id } before every Enter. The master's agent splits each batch at its Host events and relays each run to that machine's link without it. Remotes, of any version, see exactly what they see today — so the network Hello needs no new capability.
  • Compatibility is negotiated on the hop that changes: the hook says InputHosts in its Hello; the agent answers on every hook connection with Drivable { Hosts }, the machines it can reach now. A remote's zones are enterable only while it is in that set. Without either side, the current "one selected remote" rule stays in force.
  • hook::crossing: remote → remote is Leave (first machine) + Host + Enter + Locks in one batch; keyboards stay grabbed, cursor stays hidden; what the first machine held is released by its Leave.
  • Agent: no selected remote with a capable hook (every linked remote with displays is merged, in machine-id order; SelectedRemote absent from the state, which old and new frontends already read as "merge them all"). One connection to the hook for all remotes. The end of a hop becomes per machine: full queue, InputReset, service reset, UIPI block bring the pointer home only from the machine it is on.
  • Unchanged: two masters on one remote (Multi-PC: the driven machine knows it, and the tray shows it without hovering #816) — remote side untouched. Known limit: the clipboard does not go from one remote to another (only remote ↔ master).

Also in this PR

docs/multi-pc.md on v6 still held the conflict markers of the #821/#817 merges (two blocks). Resolved by keeping both sides, as a separate commit.

🤖 Generated with Claude Code

mgth and others added 2 commits November 25, 2026 08:50
…he merges of #821/#817

Both sides are kept: the clipboard's control messages and section, and the
rulers' ones.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The destination is said on the master's hook -> agent hop only (a Host event
before each Enter), split and stripped by the master's agent: remotes of any
version are unaffected. The hook says InputHosts, the agent answers with the
machines it can reach (Drivable); without either, the one-selected-remote rule
stays. Covers the crossing between two remotes, the selection, the per-machine
end of a hop (InputReset, service reset, UIPI), the indicator, the lock keys,
the clipboard (not relayed between remotes) and two masters on one remote.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…hat never ran

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@mgth mgth left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Le compte rendu distingue bien l’essai TLS sur boucle locale avec un hook simulé des parcours qui restent à essayer sur matériel. Il manque une règle de transition pour le service Windows, également visible dans l’implémentation de #839.

Comment thread docs/multi-pc.md Resolved
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@mgth mgth left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Le compte rendu ajouté dans 3e407a3b décrit le passage Linux → vm124 → Linux et le suivi du curseur sur la VM. Il précise que le service Windows reste à essayer. La règle demandée dans le contrat reste à écrire : lorsque la machine pilotée garde le même identifiant mais change de relais, préciser qui délivre Leave à l’ancienne cible et quand la nouvelle peut recevoir Enter.

mgth and others added 2 commits November 25, 2026 09:54
… the Leaves it is owed

Review of #835.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@mgth mgth left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Vérifié dans 88e821a9. Le contrat couvre les deux sens de la bascule agent/service. Pour la machine pilotée, l’ancien relais reçoit Leave avant toute nouvelle session et le nouveau attend un Enter. Une bascule sur une machine inactive laisse le pointeur sur la machine en cours. La remarque est traitée.

@mgth
mgth merged commit 31415d8 into v6 Nov 25, 2026
3 checks passed
@mgth
mgth deleted the feat/mpc-multi-slave-design branch November 25, 2026 09:31
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.

1 participant