Skip to content

v1.9.1 — Mobile Remote 简化版

Choose a tag to compare

@opc007 opc007 released this 17 Jun 14:04
· 10 commits to main since this release

v1.9.1 — Mobile Remote 简化版

发布日期:2026-06-17

🎯 主题

5.30 Mobile Remote 简化版(token 认证 + 设备配对 + 模拟 API)+ 修复 Thread.tsx 旧 zustand 残留 bug。

✨ 新增

5.30 Mobile Remote(v1.9.1 简化版)

  • 新增 crate mobile_remote(8/8 测试通过)
  • Token 系统
    • 32 字节随机 base64 编码(mr_xxx...
    • 持久化到 ~/.agentshell/mobile-token.json
    • 任意请求必须 Bearer token
  • 设备配对
    • 配对新设备(name + platform: ios/android)
    • 列出已配对设备
    • 解除配对
    • 跟踪 paired_at / last_seen_at
  • 模拟 APImobile_call):
    • list_sessions — 列出所有 session
    • get_session — 取 session 详情
    • send_message — 发送消息到 session
    • 失败 action 返回 error 状态
  • 7 个 Tauri 命令:
    • mobile_get_token / mobile_regen_token
    • mobile_pair_device / mobile_unpair_device / mobile_list_devices
    • mobile_verify / mobile_call

1 个新 slash 命令

  • /mobile status — 当前 token + 设备数
  • /mobile regen — 重新生成 token(老 token 立即失效)
  • /mobile pair <name> <ios|android> — 配对
  • /mobile unpair <id> — 解除
  • /mobile list — 列出配对设备
  • /mobile call <action> — 模拟 API 调用(演示)

🐛 Bug 修复

  • Thread.tsx — v1.8 store 重构(zustand → useSyncExternalStore)后遗留的 useSessionsStore.setState() 调用
    • 改为 getSessionsState().setCurrent()
    • 移除旧的 s.text 残留(v1.7 之前的 zustand 直接访问 state 字段)

📦 安装

下载 Codex gx_1.9.1_aarch64.dmg (7MB) → 双击 → 拖入 Applications

🧪 验证

# 1. Mobile Remote token 测试
# /mobile status             — 看 token
# /mobile regen              — 重生成
# /mobile pair "iPhone 15" ios
# /mobile list               — 看配对设备
# /mobile call list_sessions — 模拟 API 调用

🔧 Tech

  • 新增 crate:mobile_remote(8 测试)
  • 7 个新 Tauri 命令
  • 1 个新 slash 命令(带 6 个 subcommand)
  • TypeScript: 0 errors
  • Rust 编译: 0 errors

📋 下一步(v1.9.2 候选)

  • 5.30 Mobile Remote 完整版(HTTP server + axum + 真实公网接入)
  • 5.29 Pocket 消息 App 触发(飞书/企微/钉钉 webhook)
  • 5.31 Vision 多模态(图像/视频理解)