Repository navigation
Description
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)
- 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 servethe 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. - Transport for a local desktop. Loopback HTTP to a
tole servethe desktop starts, or the session module as a library (refactor: extract one session-host module from tole-cli (merge Sessions and TuiSession) #525 postponed atole-sessioncrate "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
- Build the GPUI client first and discover the gaps on the way: rejected, epic: one assembly for every face (finish #525, the drift behind #536) #941 shows the gaps are structural.
Acceptance criteria
- The two open decisions are answered by the owner and recorded in the note.
- Every screen of the desktop draft maps to a route, with its readiness (exists, planned issue, not planned).
- Threat-model rows for a remote desktop client.
- feat(desktop): tole-desktop — GPUI desktop client (first graphical client) #527 and docs(design): shared UI/UX plan for the graphical clients (flow map, screens, wireframes, tokens) #561 updated to point at the note.
Activity
docs(design): tole-desktop, local and remote over the same serve API (#…
ajianaz commentedon Nov 25, 2026
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.
docs(epics): refresh the open-work table and open owner decisions (20…
docs(epics): refresh the open-work table and open owner decisions (20…