Repository navigation
Description
What problem does this solve?
docs/mobile-control.md already defines the phone as a client of the token-authenticated serve face (list sessions, start a mission, approve/deny, cancel, steer). What is missing is a first-class client and the pieces that make it more than a status viewer: streamed output and history.
Proposed solution (not decided)
A Flutter app that talks to tole serve over HTTP/SSE, same stack as uteke-mobile (Riverpod, go_router, feature folders, a shared theme), but without flutter_rust_bridge:
- tole's agent loop uses shell and git tools that do not exist on a phone and the box owns the workspace, so an on-device embed gains little. A remote client matches the existing mobile-control design.
- No FFI means none of the codegen / native-lib sync problems recorded for uteke-mobile.
- Reuse of the shared protocol types: generate Dart models from the JSON Schema produced by the serve issue instead of hand-writing them.
Scope for a first version: session list, transcript view (history + live stream), composer with steer/cancel/detach, approvals inbox (allow/deny, one-shot semantics unchanged), status/usage. Push notifications (ntfy/UnifiedPush vs FCM) stay a uteke-mobile decision; tole exposes no push endpoint by design (see the threat model).
Open questions
- New app, or a module inside uteke-mobile (one app store listing, shared theme and auth)? The repo boundary is the owner's call.
- Auth: a long-lived bearer token on a phone needs secure storage and rotation; check the threat model for the revocation story.
- Offline: read-only cached transcripts, or none?
- If an on-device mode is ever wanted,
tole-corealready builds--no-default-featuresand CI cross-checks the iOS/Android targets, so FFI stays an option later.
Alternatives considered
- FRB embed like uteke-mobile: rejected for now (see above).
- Native SwiftUI/Compose shells (Discord's mobile approach): rejected for team size; revisit if Flutter proves inadequate.
Acceptance criteria
- Blocked by the serve issue in epic: UI stack — solid core seam first, then GPUI desktop, Flutter mobile, web #523 (events, transcript, resume).
- Decision recorded: repo layout, auth storage, offline policy.
- Dart models generated from the shared protocol schema.
- Approval round trip works against a real
tole serve, includingDestructivenever being auto-approvable.
Part of #523.
Activity
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 …