You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(web): web client of tole serve (low priority — Svelte vs React undecided) #529
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.
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.
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.
Activity
feat(serve): SSE event stream GET /sessions/{id}/events (#546)
feat(client): generate and check a JSON Schema of the serve wire and …
feat(client): generate and check a JSON Schema of the serve wire and …
ajianaz commentedon Nov 25, 2026
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.
docs(desktop): record the React on GPUIX renderer decision (#1256)
ajianaz commentedon Nov 30, 2026
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.