Skip to content

[Feature] 安卓端客户端支持(agent-mobile / Tauri) #464

Description

@Islatri

Affected area

Mobile Client (agent-mobile / Tauri)

Problem statement (what should this solve)

当前 LiveAgent 仅提供桌面端(agent-gui)与浏览器 WebUI 两种访问方式,用户离开电脑后无法便捷地远程使用:发送聊天消息、管理 Cron 任务、查看历史记录等。在手机上直接运行完整 Agent 运行时既不现实也无必要(工具执行仍应在本地桌面端完成)。

因此需要一个轻量的移动端客户端:作为 Gateway 的远程客户端,通过 WebSocket 连接远程 Gateway,复用桌面端的会话与设置,而非在手机上运行 Agent。

Linked PR

  1. feat(android): 安卓移动端初适配 (agent-mobile / Tauri) #467
  2. fix(mobile): 增加顶部padding,避免工具栏与系统状态栏重合 #499

Proposed behavior

  • 新建基于 Tauri v2 的 agent-mobile 工作区,优先支持 Android 构建目标
  • 行为模式与 agent-gateway 的 WebUI 客户端一致:本地不运行 Agent 运行时,通过 WebSocket 连接远程 Gateway(薄壳模式)
  • 复用共享 UI 契约(@liveagent/ui)与 i18n,从 WebUI 前端移植核心组件与业务逻辑,保持功能一致
  • 覆盖核心能力:Chat 消息收发、Cron 任务管理、历史记录查看、工作区项目浏览
  • 与桌面端保持单技术栈(Rust + React/TypeScript),降低长期维护成本

Screenshots / Preview

以下三图分别是在 Pixel Emulator / Redmi Note 12 Turbo / Huawei Nova 13 (卓易通)上的主页面视图

pixel
Pixel Emulator
449×962
mi
Redmi Note 12 Turbo
1080×2400
hmos
Huawei Nova 13(卓易通)
1084×2412

Estimated change scope

  • crates/agent-mobile/ - 新建的 Tauri 移动端应用(含 src/ 前端与 src-tauri/ 后端)
  • Cargo.toml / pnpm-workspace.yaml - 工作区注册
  • .github/workflows/ - 新增移动端检查与发布流程(CI 检查 + Android 发布)
  • docs/ - 移动端架构与操作文档

Alternatives considered

  • PWA / 浏览器直接访问 WebUI:实现成本最低,但缺少原生体验(通知、常驻连接、系统集成)
  • React Native / Flutter:移动端体验好,但与现有 Rust + React 技术栈割裂,需双套实现,维护成本高
  • Tauri v2(选定):与桌面端同技术栈,可复用 UI 契约与大量前端代码;Rust 后端轻量,适合薄壳远程客户端定位,可借助tauri的插件系统接入安卓移动端原生系统能力

Pre-submit checklist

  • I searched existing issues and pull requests and found no duplicates.
  • This proposal is focused on a single feature or improvement.
  • I understand a PR should come after this issue is confirmed by maintainers, otherwise it will be converted to draft.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions