Skip to content

Operate multiple App Servers from the native TUI and CLI with POSIX feature parity #2269

Done
3 of 3 issues completed

Description

@eric8810

User flow

An operator has Dim App Servers on several machines. They want the existing native TUI and CLI to select one, use its full POSIX-client functionality, and switch servers in the same terminal. This includes management, approvals, Session history, input, streaming notices, and UI registration. The existing local invocation remains the default.

Proposed interaction

Design draft and terminal sketches: #2278.

  1. On the sharing computer, open Settings → Remote access and enable sharing. Show its display name, addresses and full token. The name initially comes from the system hostname.
  2. On the other computer, launch dima as usual. Use /devices to choose a discovered LAN or Tailscale device, or enter its address. Type the token on first use. A remembered credential is automatically verified on reconnect.
  3. Show the selected computer’s active Sessions and a New Session action on the same screen. Selecting a Session opens its existing conversation. New Session opens a directory picker at the remote root, hiding files and hidden directories. The user can also enter a known path.
  4. In the normal composer, show the remote device name immediately before the project path, for example office-pc:/srv/dim. Switching back to local restores the local view.

Design to agree

  • Give the native client a named App Server target. Keep provider connection, Session selection, and the standalone server binary option distinct from target selection.
  • Carry the existing full-duplex App Server protocol across a rutis-network link. Use the protected POSIX connection as the parity reference, including built-in and plugin-contributed methods, errors, notifications and independent auxiliary connections. Define how the daemon reaches the TUI leaf on the return path.
  • Distinguish terminal-local files, clipboard and display from the selected server’s workspace, settings, execution and installation. Define the destination of file, browser and callback operations that currently assume both ends share a machine.
  • Switching A → B must leave the accepted work on A running. Preserve the old view if B fails to connect. Bind drafts, pending approval or question responses, reconnects and late notices to their originating target.

Acceptance

Use two separately configured App Servers with disposable homes. Compare the POSIX and network entry on each one, exercise one-shot commands and both TUI layouts, perform a management change on B, and switch back to ongoing work on A. Include an unreachable B, a dropped link during submission, and a client and server without a shared filesystem.

The paired-device gateway redesign (#1897) and remote plugin composition (#1288, draft PR #1306) have different deliverables. This issue owns the native operator client and the POSIX-equivalent connection. Protocol entries · Native TUI · rutis-network

Sub-issues

Sub-issues

3 of 3 Issues completed
Loading 3 sub-issues

Activity

  1. added
    design
    core
    feature
    on Nov 27, 2026
  2. eric8810 commented on Nov 27, 2026

    @eric8810
    CollaboratorAuthor

    Architectural change: a new operator surface plus a transport and ownership decision. Keep the boundary stated here — this is not #1897 pairing or #1288 remote plugin composition. Before implementation, settle three things: how the daemon reaches the TUI leaf on the return path; which operations stay terminal-local versus belonging to the selected server (files, clipboard, browser, callbacks); and how drafts, approvals, reconnects and late notices bind to their target. Then split the protocol link, target selection, and terminal-local resource semantics into separate issues; the acceptance already covers two servers, unreachable B and a dropped link.

  3. added
    P2
    on Nov 27, 2026
  4. self-assigned this
    on Nov 27, 2026
  5. eric8810 commented on Nov 27, 2026

    @eric8810
    CollaboratorAuthor

    Split recorded: #2275 (sharing, transport/auth and the return path), #2276 (target selection, Session/directory choice, per-target drafts/approvals), #2277 (terminal-local vs target resources). All three are accepted as P2 parts of this programme and are unowned; none is scheduled. The design decisions from the previous comment remain the implementation gate: record the return-path/auth, resource-ownership and target-binding choices here first, then pick child owners and re-rank at the next release.

  6. eric8810 commented on Nov 28, 2026

    @eric8810
    CollaboratorAuthor

    All three child issues are complete. #2275 delivered authenticated native sharing and the TUI return connection in #2281. #2276 delivered the device, session and directory pickers in #2284. #2277 delivered attachment and workspace handling in #2289 and target-side Git worktree discovery in #2295.

    The maintainer waived the remaining two-computer acceptance run. The resource issue records the local verification and the specific checks skipped on separate machines. Acceptance record for #2277

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

Metadata

Metadata

Assignees

Labels

P2coredesignfeature

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions