Skip to content

feat(web): web client of tole serve (low priority — Svelte vs React undecided) #529

Open

Description

@ajianaz

What problem does this solve?

A browser client would let any machine drive a tole serve instance without installing an app. It is the lowest priority of the three clients and is only a discussion issue for now.

Proposed solution (not decided)

A thin web client over the same protocol as mobile (SSE events, transcript read, approvals), no logic of its own. GPUI-on-WASM is not the plan: upstream lists "Zed on the web" beyond Zed 1.0 and the community ports are experimental.

Framework: Svelte (SvelteKit) is the suggested default, because the same maintainers already ship Svelte 5 apps (Corin, Waca and others) and the typed client can come from the shared JSON Schema either way, which keeps the choice reversible. React is the alternative if its ecosystem (diff/markdown components) outweighs team familiarity.

Open questions

  • Browser EventSource cannot send an Authorization header: use fetch-stream reading, or a short-lived stream token issued by serve. Needs a decision in the serve issue.
  • Serving: static bundle hosted separately (CORS policy) vs bundled into tole serve (larger binary, same origin).
  • Token storage in a browser: avoid localStorage for long-lived tokens; consider a session-scoped token.
  • Persisted client state must be validated on load (lesson from earlier web work: stale stored data bypasses new validation).

Alternatives considered

  • Skip web entirely and rely on mobile and desktop.
  • Tauri wrapping the web client for desktop: rejected, desktop is GPUI.

Acceptance criteria

Part of #523.

Activity

  1. added
    enhancement
    on Nov 10, 2026
  2. added
    pending
    on Nov 13, 2026
  3. ajianaz commented on Nov 25, 2026

    @ajianaz
    ContributorAuthor

    Note (owner decision 2026-11-25): the desktop renderer is React on GPUI (GPUIX). GPUIX can render the same React tree in a browser through wasm, so this web client may reuse the desktop front end later (fonts must ship with the app and AccessKit is not available in wasm). Still parked; see #1241 milestone M6.

  4. ajianaz commented on Nov 30, 2026

    @ajianaz
    ContributorAuthor

    Note (2026-11-30): the Svelte-vs-React question here is overtaken by the renderer decisions — the desktop went full native Rune (owner, 2026-11-27) and any future web client would be decided against that direction (Rune on web/DOM), not Svelte or React on GPUIX. Parked as before.

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