Commit Graph

47 Commits

Author SHA1 Message Date
Chris
cadbf7e13d fix(mobile): recover cold notification task entry after connection startup
Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-10-21 23:31:41 +08:00
Chris Zhang
bdcd37d4c6 fix(mobile): resume interrupted Android update downloads (#6600)
Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
Co-authored-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-10-21 02:09:05 +08:00
Dash
200bf3e64c feat(mobile): 模拟器脚本默认优先 Cindy 模拟器,没有再用系统模拟器
mobile:sim:whoami / rebuild / open 不再固定系统(Xcode)设备目录:默认先找 Cindy
模拟器(官方 Baguette 插件的独立设备目录)中已启动的设备,未安装、插件关闭运行或
没有已启动设备时用系统模拟器;--udid 跟随设备所在目录。个人选择放在仓库外的
CINDY_MOBILE_SIMULATOR=auto|cindy|system|<设备目录绝对路径>。

非系统目录的设备用通用目标编译、simctl --set 安装启动;它们没有外部窗口,open 拒绝、
whoami --viewer 报不可用。

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-19 16:43:08 +13:00
Lizi
aca5fbdead Merge pull request #6317 from makecindy/dash/mobile-cached-pending-messages
fix(mobile): 修复老任务缓存消息仍显示发送中
2026-10-17 17:34:11 +08:00
Dash
099acc4be0 fix(mobile): 优先用历史缓存结束旧消息发送等待
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-17 21:07:33 +13:00
Dash
81de6007bd fix(mobile): 原图就绪后立即更新上传中预览
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-17 20:48:28 +13:00
Dash
d50cfbc5dc Merge remote-tracking branch 'origin/main' into dash/mobile-optimistic-creation
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-17 18:41:41 +13:00
Dash
f78b8aa301 fix(mobile): preserve input entered during draft recovery
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-17 18:41:19 +13:00
Dash
99f8cc1b9e fix(mobile): 隔离留图账号并拒绝已取消上传的迟到缓存
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-17 17:14:46 +13:00
Dash
42dde81a27 fix(media): 保留手机和桌面已发送图片的离线缓存
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-17 16:55:03 +13:00
Dash
b2e6369f8e fix(mobile): 统一失败创建草稿的恢复与编辑判据
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-17 16:41:52 +13:00
Dash
43d34dc656 fix(mobile): 等待恢复草稿编辑结算并回收超限上传
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-17 16:14:41 +13:00
Dash
900593bcc6 fix(mobile): 底部活动提示保留位置,发送后不再跳动
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-17 15:56:48 +13:00
Dash
3442e5ea39 fix(mobile): 同步删除恢复草稿中的文字和附件
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-17 15:49:38 +13:00
Dash
79893e46f1 fix(mobile): 创建失败时带回已排队的后续消息
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-17 15:35:24 +13:00
Dash
6ff6a08326 fix(mobile): 补齐选择器恢复提示并同步主干附件流程
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-17 13:00:44 +13:00
Dash
91634b5552 fix(mobile): 选图后立即预览并后台读取 iCloud 照片 (#6242)
* fix(mobile): 选图确认后立即预览并后台读取 iCloud 原图

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>

* fix(mobile): 本地化原生选图与原图读取错误

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>

---------

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-17 07:48:57 +08:00
Dash
18d14a3826 fix(mobile): 自动恢复时保留当前输入并避开新附件输入
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-17 12:33:07 +13:00
Dash
b52bd0eff6 fix(mobile): 恢复新建任务乐观交互并清理失败恢复残留
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-17 12:10:52 +13:00
Cindy
80fe8599aa fix(mobile): 修复发件箱恢复阻挡首页缓存加载
Signed-off-by: Cindy <cindy@Cindys-Mac-mini.local>
2026-10-17 00:38:25 +13:00
Lizi
febe2e5110 Merge pull request #6199 from zqchris/android-update-sheet-redesign
feat(mobile): 安卓应用内更新改为一张卡走完全程
2026-10-16 16:05:00 +08:00
DavidShen
68d83f2a0d fix(mobile): 修复 Android 声纹录入的 ONNX 混淆闪退
Signed-off-by: DavidShen <david@xd.com>
2026-10-16 15:02:33 +08:00
zqchris
d7def78d8a feat(mobile): 安卓应用内更新改为一张卡走完全程
发现更新、授权说明、下载进度与安装在同一张内容高度的 Material 底部卡内切换,
替代系统弹窗 + 半屏可拖面板两段式;卡上展示应用图标、版本变化与更新内容。
未授权先说明、点击才进系统设置,拒绝后保留浏览器下载;强更屏按钮直接开始。

Signed-off-by: zqchris <chrisz83@gmail.com>
2026-10-16 13:25:46 +08:00
bobo
e57a79793b fix(mobile): enable Android release R8 optimization across regions (#6124)
Signed-off-by: xd-bobo <caojianbo@xd.com>
2026-10-15 21:07:49 +08:00
Dash
d51754316e fix(mobile): 保留后台刷新前已缓存的聊天历史 (#6128)
* fix(mobile): 保留后台预读前已缓存的历史消息和详情

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>

* fix: keep history read-ahead within existing cache budgets

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>

---------

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-15 20:24:06 +08:00
DavidShenXD
0bbf5b39c0 fix(mobile): 修复新建任务失败后空白且无法恢复 (#6055)
* fix(mobile): restore task entry recovery after creation failures

Signed-off-by: DavidShen <david@xd.com>

* docs(design): sync mobile session recovery inventory

Signed-off-by: DavidShen <david@xd.com>

* fix(mobile): finish edit recovery after leaving the task

Signed-off-by: DavidShen <david@xd.com>

* fix(mobile): preserve recovery ownership across task remounts

Signed-off-by: DavidShen <david@xd.com>

* fix(mobile): retain mirror-confirmed sources across reconnects

Signed-off-by: DavidShen <david@xd.com>

* fix(mobile): scope recovered edit drafts to their failed tasks

Signed-off-by: DavidShen <david@xd.com>

* fix(mobile): retain durable edit recovery until form handoff

Signed-off-by: DavidShen <david@xd.com>

* fix(mobile): align recovery navigation and subscription guards

Signed-off-by: DavidShen <david@xd.com>

* fix(mobile): retire stale creation tasks on account changes

Signed-off-by: DavidShen <david@xd.com>

* fix(mobile): preserve durable edit recovery across restarts

Signed-off-by: DavidShen <david@xd.com>

* fix(mobile): persist send suspension before worktree cleanup

Signed-off-by: DavidShen <david@xd.com>

* fix(mobile): release durable draft claims when editors leave

Signed-off-by: DavidShen <david@xd.com>

* fix(mobile): retain recovery through draft resubmission

Signed-off-by: DavidShen <david@xd.com>

* fix(mobile): suppress stale return-to-edit error alerts

Signed-off-by: DavidShen <david@xd.com>

---------

Signed-off-by: DavidShen <david@xd.com>
2026-10-15 12:33:39 +08:00
bobo
7085c77678 fix(mobile): 从 Play AAB 移除安装包权限 (#5187)
* fix(mobile): exclude package install permission from Play AAB

Signed-off-by: xd-bobo <caojianbo@xd.com>

* docs(mobile): clarify Play artifact permission validation

Signed-off-by: xd-bobo <caojianbo@xd.com>

* test(mobile): remove duplicate goal route fixture bindings

Signed-off-by: xd-bobo <caojianbo@xd.com>

---------

Signed-off-by: xd-bobo <caojianbo@xd.com>
2026-10-13 20:30:49 +08:00
Dash
a0327ce33a fix(mobile): 保留已发送消息直到本地历史缓存接管
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-09 15:15:06 +13:00
Dash
d460df8c17 fix(mobile): 安卓本地库写满时清理旧消息缓存并重试发送 (#5404)
* fix(mobile): 安卓本地库写满时清理旧消息缓存并重试发送

旧版把消息缓存写在 AsyncStorage,未打开会话的旧副本会占满安卓 6 MiB 库,
导致发件箱写入 SQLITE_FULL、所有任务都无法发送(#5403)。

- 启动时丢弃剩余旧 AsyncStorage 消息条目(可从主机重建,不动文件与其他键)
- 发件箱写入遇到 SQLITE_FULL 先丢弃旧条目再重试一次,仍失败给出本地存储已满提示

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>

* fix(mobile): 旧消息缓存改为迁移成文件而非直接丢弃

旧条目里的 mobile-system-* 卡片没有服务端副本,直接删除会永久丢失。
启动与写满重试改为逐条走 getItem 迁移(成功后才删旧值),与同 key 写删
共用队列,登出全清会作废排队中的迁移。

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>

* fix(mobile): 已有文件缓存时也清理残留的旧 AsyncStorage 副本

文件已存在时 getItem 直接返回文件,不会删除旧值;回退旧版或此前删除失败
留下的旧条目因此会一直占库。新增 migrateLegacy:已有文件时只删旧值,
否则走原迁移路径。

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>

---------

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-03 15:34:11 +08:00
Chris Zhang
ac0c2a4a63 feat(ios): 伙伴推送显示头像和名字 (#5268)
* feat(ios): add teammate identity to communication notifications

Signed-off-by: zqchris <chrisz83@gmail.com>

* test(notifications): cover teammate avatars in session previews

Signed-off-by: zqchris <chrisz83@gmail.com>

* fix(notifications): load sharp through a static import

Signed-off-by: zqchris <chrisz83@gmail.com>

---------

Signed-off-by: zqchris <chrisz83@gmail.com>
2026-09-30 20:05:01 +08:00
bobo
fd73bc91fd fix(mobile): route Google Play installs away from website APK updates (#5181)
* fix(mobile): route Play installs away from website APK updates

Signed-off-by: xd-bobo <caojianbo@xd.com>

* fix(mobile): address Play update review feedback

Signed-off-by: xd-bobo <caojianbo@xd.com>

---------

Signed-off-by: xd-bobo <caojianbo@xd.com>
2026-09-28 16:33:52 +08:00
bobo
a21072bbbd fix(mobile): 恢复中国大陆版 iOS 微信登录并修正身份选择行 (#5161)
* fix(mobile): enable Mainland China WeChat sign-in

Signed-off-by: xd-bobo <caojianbo@xd.com>

* fix(mobile): keep identity row content inside native button

Signed-off-by: xd-bobo <caojianbo@xd.com>

* fix(mobile): show WeChat only on installed CN iPhones

Signed-off-by: xd-bobo <caojianbo@xd.com>

* fix(mobile): dim disabled identity row contents

Signed-off-by: xd-bobo <caojianbo@xd.com>

---------

Signed-off-by: xd-bobo <caojianbo@xd.com>
2026-09-28 11:36:59 +08:00
Dash
53c45c9218 fix(mobile): 移除分享确认的逐文件标记与部分回滚
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-09-27 11:07:43 +13:00
Dash
fd3713202e fix(mobile): 防止已处理分享附件在重启后恢复
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-09-27 10:44:53 +13:00
Dash
5ac26ed2bd fix(remote-desktop): 修复多屏 Mac 解锁并隔离手机指纹影响 (#4896)
* fix(remote-desktop): 修复多屏 Mac 自动解锁窗口识别

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>

* test(remote-desktop): 覆盖多窗口采集预算与对象映射

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>

* fix(remote-desktop): 副屏变化时仍清理原密码框

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>

* fix(mobile): 排除 Mac 专用凭证源码的指纹变化

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>

* test(mobile): 兼容指纹边界测试的 Windows 换行

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>

---------

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-09-25 21:29:53 +08:00
bobo
e4d05c9bee fix(mobile): 修复微信回调并暂时隐藏手机登录入口 (#4943)
* fix(mobile): 避免微信登录回调进入错误页面

Signed-off-by: xd-bobo <caojianbo@xd.com>

* fix(mobile): route WeChat Universal Link verification callbacks

Signed-off-by: xd-bobo <caojianbo@xd.com>

* fix(mobile): include required WeChat URL parameter query scheme

Signed-off-by: xd-bobo <caojianbo@xd.com>

* fix(mobile): temporarily hide WeChat sign-in on phones

Signed-off-by: xd-bobo <caojianbo@xd.com>

---------

Signed-off-by: xd-bobo <caojianbo@xd.com>
2026-09-23 22:45:15 +08:00
Dash
ea8ce325bb fix(mobile): 缓存清理失败后仍尝试其余删除
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-09-23 15:16:22 +08:00
Dash
81c0345348 fix(mobile): 清理缓存无需写入并阻止失败清理后的账号激活
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-09-23 15:01:00 +08:00
Dash
2022be6b9c fix(mobile): 统一消息文件缓存并提示存储失败
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-09-23 14:17:42 +08:00
xd-bobo
221ced0622 fix(mobile): hide WeChat login when unavailable on iOS
Signed-off-by: xd-bobo <caojianbo@xd.com>
2026-09-21 15:23:02 +08:00
bobo
2d87efd570 fix(mobile): 校验国内微信登录配置并隔离 Global (#4480)
* fix(mobile): 校验国内微信登录配置并隔离 Global

Signed-off-by: xd-bobo <caojianbo@xd.com>

* fix(mobile): reject invalid WeChat universal links

Signed-off-by: xd-bobo <caojianbo@xd.com>

---------

Signed-off-by: xd-bobo <caojianbo@xd.com>
2026-09-21 13:19:30 +07:00
Dash
79ffdcd97c fix(mobile): 修复 Xcode 27 启动并校验原生包兼容性 (#4689)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-09-18 22:33:16 +07:00
Chris Zhang
957d19d851 feat(mobile): 支持 Android 应用内更新与安装权限引导 (#4561)
Signed-off-by: zqchris <chrisz83@gmail.com>
2026-09-17 10:44:22 +07:00
DavidShen
a146eb5041 fix(dev): 修复 Windows 移动端调试与测试门禁
Signed-off-by: DavidShen <david@xd.com>
2026-08-31 14:54:34 +08:00
Dash
6ca0cfc0a6 feat(region): 将 Global 设为默认区域 (#475)
* feat: 将 Global 设为默认区域

Signed-off-by: Dash <dashhuang@gmail.com>

* fix(region): 让本地入口与测试显式使用区域

Signed-off-by: Dash <dashhuang@gmail.com>

* fix(region): 同步本地构建身份并改进清单错误

Signed-off-by: Dash <dashhuang@gmail.com>

---------

Signed-off-by: Dash <dashhuang@gmail.com>
2026-07-26 09:21:10 +08:00
Lizi
3c9627f7fb chore(mobile): 落地冷更审查标准并让 fingerprint guard 结论机器可读
## 这次改了什么

- `docs/dev-rules/mobile-development.md`「冷更边界」新增硬性规则:除非必要,不得提交
  会改变 runtime fingerprint 的改动;确需冷更时 PR Description 必须写清为什么冷更
  不可避免、存量装机影响范围与发版节奏;审查上与技术框架变动同级,必须由仓库指定的
  把关人针对冷更明确确认后才能合并,提交者身份不构成例外。同时补全指纹输入清单
  (eas.json production 段、plugins/、modules/、依赖版本含 lockfile 传递依赖),并修掉
  「PR 有 fingerprint guard 自动比对」这句与当前公开 workflow 不符的描述。
- `AGENTS.md` 规则索引新增触发条件(改 app.json / app.config.js / eas.json /
  apps/mobile/package.json / plugins/ / modules/ 前必须先读冷更边界)。
- PR 模板风险段补上冷更需额外说明的三项与合并条件。
- `apps/mobile/scripts/ci-fingerprint.mjs` 的 guard sticky comment 增加机器可读结论行
  `<!-- fingerprint-changed: true|false -->`,让审查侧读这一行而不是匹配标题文案;
  step summary 同步剥掉两行 marker,并加单测钉住格式,防止改文案把下游判定弄瞎。

## 怎么验证的

- `pnpm --filter mobile typecheck` 通过
- `pnpm --filter mobile test`:249 files / 2348 tests 全通过
- 定向 `src/__tests__/ciFingerprintScript.test.ts` 8 passed
- `node scripts/check-pr-template-rules.mjs` 通过;`dev-docs-contract` 5 passed
- 用 renderGuardComment 的真实产物验证机器可读行可被下游解析(changed / unchanged 两态)

## 风险

- 无已知运行时风险:改动集中在规则文档与 CI 辅助脚本的评论渲染,不进入 app 运行时,
  也不影响 fingerprint 本身(apps/mobile/scripts/ 不是指纹输入)。
- 未执行:根 `pnpm test:unit` 仍有 3 个既有失败(dev-migration-policy ×2、
  restart-desktop-remote ×1),在未改动的干净 HEAD 上同样失败(跨平台测试基础设施问题,
  PR #449 正在修),与本次改动无关。

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Signed-off-by: Lizi <jiali@magiclizi.com>
2026-07-25 22:30:44 +08:00
Lizi
bb3f71d084 chore: Cindy 首次开源提交 / initial open-source release
Cindy 是心动网络 (X.D. Network Inc.) 的跨端 AI Agent 客户端。
本次提交包含 Desktop(Electron)、Mobile(Expo)及全部共享 packages
的完整源码,以 Apache-2.0 协议开源。

This is the first public release of Cindy, X.D. Network's cross-platform
AI agent client: the Electron desktop app, the Expo mobile app, and all
shared workspace packages, licensed under Apache-2.0.

- 许可与合规:根 LICENSE(Apache-2.0)+ NOTICE;第三方组件归属声明与
  SPDX SBOM 收口在 docs/legal/notices/,由 pnpm licenses:generate 生成。
- 社区文件:README / CONTRIBUTING / CODE_OF_CONDUCT / SECURITY / SUPPORT
  中英双语;issue / PR 模板与 CI workflow 在 .github/。
- 协议层以公开 submodule 引入:github.com/makecindy/cindy-protocol。
- 提交前已通过仓库门禁:全量 pnpm test:unit 与涉及 package 的 typecheck。

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-24 08:30:44 +08:00