Skip to content

feat(mobile): Flutter client of tole serve (proposal — remote client, no FFI) #528

Open

Description

@ajianaz

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-core already builds --no-default-features and 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

Part of #523.

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