Skip to content

epic: UI stack — solid core seam first, then GPUI desktop, Flutter mobile, web #523

Open
16 of 21 issues completed

Description

@ajianaz

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 (as docs/mobile-control.md already says), not an on-device FFI embed.
  • Web: React vs Svelte undecided, low priority.

Design constraints (do not bend, from AGENTS.md)

  • tole-core stays 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; Destructive is never allowlistable. A UI must never offer "always allow" for Destructive.
  • 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):

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

Sub-issues

Sub-issues

16 of 21 Issues completed
Loading 21 sub-issues

Activity

  1. added
    enhancement
    on Nov 10, 2026
  2. 8 remaining items

  3. added
    pending
    on Nov 13, 2026
  4. ajianaz commented on Nov 25, 2026

    @ajianaz
    ContributorAuthor

    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.

  5. ajianaz commented on Nov 30, 2026

    @ajianaz
    ContributorAuthor

    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.

  6. ajianaz commented on Dec 2, 2026

    @ajianaz
    ContributorAuthor

    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.

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

    enhancementpending

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions