Repository navigation
Description
Goal
Give tole graphical clients (desktop first, then mobile and web) without bending the core. The order is deliberate: make the core and host seams solid first, then build clients on them. Every client is a thin presentation layer over one session-host module; none of them re-implements session logic.
Inspiration: Discord's Nov 2026 move to one Rust core with GPUI on desktop and native UIs on mobile (they keep native UIs on mobile, GPUI is desktop-only there). tole already has the right bones: a platform-agnostic tole-core, host-side traits, a UI-only tole-tui, and a token-authenticated tole serve. This epic closes the gaps between them.
Owner decisions (2026-11-10)
- Desktop UI is GPUI (new crate, after the core work).
- Work order is the one in "Phases" below; issues 1–6 are written first, discussion continues in the issues.
- Mobile: proposal, not decided — Flutter as a remote client of
tole serve(asdocs/mobile-control.mdalready says), not an on-device FFI embed. - Web: React vs Svelte undecided, low priority.
Design constraints (do not bend, from AGENTS.md)
tole-corestays platform-agnostic: no stdin/stdout, no UI. Hosts interact through traits.- Session storage stays append-only JSONL; corrections are new entries.
- Every non-ReadOnly tool goes through an
Approver;Destructiveis never allowlistable. A UI must never offer "always allow" forDestructive. - MCP tools stay
Risk::Write. - Adding code is a last resort: a seam or crate is introduced only when a second consumer exists.
Gate
The multi-client daemon (tole serve for several UI clients) was parked on 2026-11-04 pending a user story, owner approval and an issue-first discussion. The user story here is "a desktop GUI and a phone both drive sessions on the same box"; #524 needs the owner's explicit go before any code.
Phases
Core first (1–3), clients after (4–6):
- 1. feat(serve): event stream, transcript read and resume-by-id for remote UI clients #524 serve seam: event stream (SSE), transcript read, resume-by-id, wire types
- 2. refactor: extract one session-host module from tole-cli (merge Sessions and TuiSession) #525 extract one session-host module from tole-cli (merge
SessionsandTuiSession) - 3. refactor(tui): separate UI state from terminal input and rendering; slim TuiHost #526 separate UI state from terminal input/rendering in tole-tui; slim
TuiHost - 4. feat(desktop): tole-desktop — GPUI desktop client (first graphical client) #527 tole-desktop: GPUI client (blocked by 1–3)
- 5. feat(mobile): Flutter client of tole serve (proposal — remote client, no FFI) #528 Flutter client of
tole serve(proposal; blocked by 1) - 6. feat(web): web client of tole serve (low priority — Svelte vs React undecided) #529 web client (low priority; framework undecided; blocked by 1)
Suggested order inside the core: 2 before 3 (avoid reworking TuiSession twice); 1 can run in parallel with 2 after the gate.
Out of scope
- A new agent runtime, a second session storage format, or any approval bypass.
- Cloud/hosted tole. Desktop may run the session host in-process; mobile and web talk to
tole serve. - Theming of the TUI (feat(tui): later polish — fork/tree, export/copy, themes, keybindings #463) beyond what the shared design tokens need.
Activity
feat(serve): paginated transcript read GET /sessions/{id}/entries (#544)
feat(serve): resume a session by id with POST /sessions {"resume"} (#545
feat(serve): SSE event stream GET /sessions/{id}/events (#546)
refactor(cli): move tool registration out of session_host into tool_r…
refactor(cli): create and index sessions through one helper (#548)
refactor(cli): one turn runner shared by the server faces and the TUI (…
refactor(cli): one module for a session's durable settings (#550)
refactor(tui): UI-neutral input seam, crossterm as an adapter (#551)
8 remaining items
feat(serve): list pickable models, set the session model and thinking…
feat(serve): list past sessions with a name, folder and last activity (…
ajianaz commentedon Nov 25, 2026
UI stack epic note (owner decision 2026-11-25): the desktop renderer is React on GPUI (GPUIX) with the Rust core kept; see #1241. Mobile (#528) and web (#529) stay parked.
ajianaz commentedon Nov 30, 2026
Note (2026-11-30): the stack plan in this epic is superseded in its UI half by the owner decision of 2026-11-27 — the desktop renderer is full native Rune (not GPUI/React); the core-seam-first principle (faces over one shared assembly) is unchanged. Web and mobile stay parked; Flutter (#528) unaffected.
ajianaz commentedon Dec 2, 2026
Renderer update (owner decision 2026-11-27, supersedes the 2026-11-25 React on GPUIX comment on this issue): the desktop goes full native Rune (github.com/anomalyco/rune). The model, drivers and this issue's acceptance criteria stand; only the view layer changes, and it is written in Rune once the Rune gates pass. Epic #1241 and #1240 to #1248 are closed as superseded. The GPUI renderer is frozen (fixes only). Work on the toolkit-neutral model and drivers can start now, model first. Record: docs/desktop-design.md section 0.2 (PR #1372). Rune is a git dependency and deny.toml denies git sources, so no Rune dependency enters this workspace until the owner decides the exception.