Skip to content

0025: Any screen joins any other, from one Join page

Status: Accepted (owner, 2026-11-24). Proposed (owner's direction, 2026-11-16); the Join card's "Home on" and "Quit on" items are superseded by ADR 0027

Context

M6c let a device join the TV and the TV show a device, each as its own tile on the home: one "Join " tile per screen. With two screens up the TV home filled with join tiles, one of them a test screen ("Device beef"), and a handheld could not join another handheld. The owner: "if the join feature exists, it should be available on either side", "a single menu, like the store, not spam devices on the home screen". A device that disconnected keeps its screen running (with real content) for SCREEN_IDLE_MINUTES, and nothing said it had left.

Decision

A join targets a screen (where apps run), not what a person sees. The only screen that shows another is the TV while it shows a device (the viewer). So: the TV shows a device through the viewer (as before), a device sees the TV or another device through the server's source switch (the runner's /screens/<device>/source answers the other device's PipeWire socket). Refused: joining yourself, a device joining the TV while the TV shows it, the TV showing a device that joined the TV. Two devices may join each other (they swap pictures, no loop). padd follows a second hop only through the TV.

Every home gets one "Join" tile beside the Store tile, shown when there is something to join; A opens a Join page in the Store's tiles, each screen with what runs there and "Left N min ago" for a device that disconnected. A on a screen opens its card: Join and Close (ADR 0027 removed the first version's "Home on it" and "Quit its app"). Screens opened with "test": true (label couchdogs.test) never appear.

Consequences

No new screens: joining reuses running ones, so it costs no GPU or memory. A device-to-device join ends when either side's screen stops. A TV showing a device goes Home when that device disconnects with no app open (the owner found the TV left on a handheld's idle home, looking frozen); with an app open the TV plays on. A device that joined another device plays on that screen's own apps even while its owner watches the TV there: padd follows one hop, and only through the TV. Renaming devices is a separate change (ADR 0029).

Amended (owner, 2026-11-17, the last M6c item): the watched screen can end a watch too, not only the watcher's own Home. Its Join page lists who watches it, and "Stop sharing" there sends the watcher back to its own screen with the toast " stopped sharing".