Repository navigation
Open
Labels
Description
What problem does this solve?
Three graphical clients are planned (#527 desktop, #528 mobile, #529 web) and nothing defines what they share. Without a common design, each client invents its own screens and its own handling of the server's behavior (approvals, streaming, resume), and they drift, which is the same duplication the session-host work (#525) removed on the server side.
Proposed solution
A design pass done on a canvas first and committed as docs only after review, in this order:
- Session flow map. One diagram of a session as any client sees it: create or resume, open the SSE stream from a
seq, send a prompt, streamed text and tool frames, durable entry frames from the log, and the approval branch (a non-pre-authorized Write stops the turn, the approval is queued, a decision resumes it). A draft exists, drawn from the behavior covered by the serve tests; it needs a review against the code before it is trusted. - Screen inventory. The screens and states all clients share: session list, transcript, editor, footer, approval panel, model picker, empty and error states. Most already exist in
tole-tui, so this is mostly writing down what is there. - Wireframes per client. Desktop (three panes), mobile (single column, approvals as notifications), web later.
- Design tokens (colors, type, spacing) only after the wireframes are approved.
Behaviors the flow map already surfaced that every client has to handle:
POST /promptblocks until the turn ends and progress arrives only on the SSE stream, so a client always holds two connections.- The turn that resumes after an approval streams durable entries only (no streamed text frames); this is a known limitation recorded in the CHANGELOG.
- There is no image path in the server yet (feat(serve): image input and an image read route for graphical clients #558), and a browser
EventSourcecannot send anAuthorizationheader (stream token, part of feat(web): web client of tole serve (low priority — Svelte vs React undecided) #529).
Alternatives considered
- Start with the clients and design as we go: rejected, it repeats the unmaintainable-copies problem for UI behavior.
- Full visual design up front: rejected, the flow and screen inventory are the high-value part and cost little; visual tokens wait for the wireframes.
Acceptance criteria
- The flow map is reviewed against the code and corrected, then stored in
docs/as an editable source plus an exported image (format decided with the maintainer). - The screen inventory is written, marking which screens exist in the TUI today.
- Wireframes exist for desktop and mobile and are approved.
- feat(desktop): tole-desktop — GPUI desktop client (first graphical client) #527, feat(mobile): Flutter client of tole serve (proposal — remote client, no FFI) #528 and feat(web): web client of tole serve (low priority — Svelte vs React undecided) #529 link to the approved docs; no client implementation starts before items 1 to 3 are done.
Activity