Skip to content

docs(design): tole-desktop, local and remote over the same serve API #949

Done

Description

@ajianaz

What problem does this solve?

Step 7 of #941. The desktop client (#527, design plan #561) has to work against a local tole serve and, later, a remote one. The UI/UX draft (a Design canvas, 11 boards, 2026-11-18) assumes the desktop is a thin client of tole serve over SSE, /entries, /approvals and the rest of the route table, and that the only difference between local and remote is the address. Two things are not decided yet.

Open decisions (owner)

  1. How a remote desktop reaches the server. The owner decision of 2026-11-18 skipped private-reach features (Tailscale and the like) and made the chat gateway (epic: gateway — Telegram (then Discord) over tole serve, in a separate repository #910) the only reach path. A remote desktop therefore either (a) connects to a tole serve the user exposes by their own means (reverse proxy with TLS, ssh tunnel, their own VPN), with Tole shipping no new reach mechanism, only authentication ([PLAN] serve auth providers: basic / OIDC beyond static bearer token #742: Basic and later OIDC), or (b) goes through the gateway as a relay. This design note has to pick one and state the threat-model consequences.
  2. Transport for a local desktop. Loopback HTTP to a tole serve the desktop starts, or the session module as a library (refactor: extract one session-host module from tole-cli (merge Sessions and TuiSession) #525 postponed a tole-session crate "until the GPUI client needs the host as a library").

Proposed solution

A design note docs/desktop-design.md covering: the client contract (the routes it uses, the two connections a client needs because POST /prompt blocks, polling of GET /approvals?session= after an allow because a resumed turn has no observer, usage_report being null while a turn runs), local versus remote differences, authentication and TLS expectations, the threat-model rows for a remote client, and the dependency on the parity work (#941): the screens the desktop needs and which operation each one calls. The UI/UX canvas is the visual input.

Alternatives considered

Acceptance criteria

Parent: #941. Related: #527, #561, #523, #742, #910.

Activity

  1. added
    enhancement
    on Nov 19, 2026
  2. ajianaz commented on Nov 25, 2026

    @ajianaz
    ContributorAuthor

    Done: docs/desktop-design.md (#966) covers the client contract, local vs remote, auth/TLS expectations and the threat-model rows. Both open decisions of this issue are recorded there: the reach question (no vendor relay, section 3 and the 'no private reach' note) and the local transport (D1/D2 decided, section 0). Remaining desktop work is tracked in #1028-#1037.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions