Skip to content

Share a native App Server over LAN or Tailscale with POSIX protocol parity #2275

Done

Description

@eric8810

Part of #2269.

User outcome

Two computers running Dim Alpha can each share their App Server. The person at the keyboard can discover the other computer before authentication and use the full native client after authentication.

Scope

  • Local Settings → Remote access controls inbound sharing on the computer at the keyboard. Default off. Show the actual reachable addresses, an editable display name defaulting to the hostname, and the complete token in readable text. Token entry must work without a clipboard.

  • Use rutis-network to announce or reach a Dim endpoint over LAN or Tailscale. Accept a manual address when discovery is unavailable. Merge confirmed routes to the same instance.

  • Authenticate each new link. A client that chose to remember the token can reconnect to the same verified instance without typing it again. A reset revokes old tokens and existing links. Advertising an endpoint grants no RPC access.

  • Transport the existing full-duplex POSIX RPC stream, including independent connections and a return stream for the terminal UI leaf. The target owns the published methods, errors and notifications. Preserve cancellation and resource cleanup on link loss.

  • For the UI return path, prepare the leaf on A and a one-use listener on B. A passes the address returned by B's terminalTransport to ui.open. B's daemon dials it, and the relay carries the connection back to the waiting leaf. Update the TUI owner's §3.6 contract when implementing this path.

  • Package the rutis host required for the chosen links (including the Go host for Go plugins), discovery and link plugins in the Alpha platform artifacts. Wire the loader to the shipped components.

Acceptance

Use two actual computers with isolated Dim homes and freshly installed Alpha platform packages. Verify the bundled host and plugins load on both ends without separately installing the components. Discover over LAN, connect by a Tailscale address, switch networks, rotate the token and verify that disabling sharing withdraws the endpoint. Compare the negotiated features, management and plugin methods, asynchronous notifications and UI registration with a POSIX client connected to the same server. Include a dropped link with a pending submission.

Activity

  1. added
    enhancement
    on Nov 27, 2026
  2. added
    P2
    on Nov 27, 2026
  3. self-assigned this
    on Nov 27, 2026
  4. eric8810 commented on Nov 28, 2026

    @eric8810
    CollaboratorAuthor

    Closing the native sharing and transport milestone on maintainer acceptance. #2281 delivered authenticated sharing, the existing App Server protocol and the terminal UI return path. Its verification section records bidirectional Tailscale use on two physical computers, remembered reconnect, token revocation and LAN announcement and withdrawal. #2284 exercised the shipped transport from the device picker. The published test record documents same-host LAN discovery and leaves physical LAN handoff unverified there. Target-side filesystem and browser behavior continues in #2277.

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

Metadata

Metadata

Assignees

Labels

P2enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions