144 Commits

Author SHA1 Message Date
fmfsaisai
4a985f18ee docs(mobile): 补充原生编译版本要求与指纹对比注意事项
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: fmfsaisai <fmfsaisai@gmail.com>
2026-11-14 17:06:53 +08:00
DavidShen
e9a316ab0f feat(mobile): add handheld trigger scrolling and Start send
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: DavidShen <david@xd.com>
2026-11-13 21:03:24 +08:00
Dash
9ccaa3a857 Merge main and preserve Dynamic Island resume behavior
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-13 09:49:13 +13:00
Dash
8ff662d14a fix(mobile): preserve current screen when returning from Dynamic Island
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-13 09:40:46 +13:00
Dash
2b91f61d4c Merge origin/main into cindy/clever-wozniak
Preserve notification action handling and locked-launch gating alongside task badge initialization and foreground tray behavior. Keep both development-guide sections and cover action failure visibility after the merge.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-13 00:51:18 +13:00
Lizi
d397266308 Merge pull request #9547 from makecindy/feat/mobile-task-badge-counts
feat(mobile): 用账号汇总与后台推送显示任务数字角标
2026-11-12 19:43:03 +08:00
Dash
ce3e341ea3 feat(notifications): answer questions and act on task alerts from the notification
Task alerts on iPhone can now be acted on without opening the app:

- A question the agent asked shows a custom card when the alert is expanded
  (task, full question, what each option means) with one system button per
  option, plus "Reply" and "Open task".
- A finished task can be replied to from the alert.
- A low-risk permission request whose whole operation fits the alert offers
  "Allow once" (unlocked device only) and "Deny".

The press is handled in the background: the app reconnects, re-reads the
pending request from the computer, and answers only the request the alert
described. A press that does not get through is reported with a local alert.
Login credentials become readable after first unlock so this works while the
phone is locked; a locked background cold launch is held instead of being
treated as signed out.

The agent Live Activity also gains a compact layout for the Apple Watch Smart
Stack.

Protocol: NotifyPayload gains an optional `action`. Old servers and apps
ignore it.

Native changes (new content extension target, background-work module,
notification categories, Keychain accessibility) change the mobile runtime
fingerprint and need a native release.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-12 18:05:27 +13:00
Dash
4211b8f81e fix(mobile): 错误页的重新加载不再重建登录与设备连接
RootErrorBoundary 原先包在整棵业务树外,重新加载会连 AuthProvider 一起重挂:
页面报错时若有令牌刷新在途,新实例会再刷新一次,两个请求用同一个会轮换的
令牌,被服务端拒绝时会清掉登录状态。

改为只包 NavigationGate,留在 AuthProvider / DeviceLinkProvider 里面,重新加载
只重挂页面树。

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-11 18:57:56 +13:00
Dash
05d306379f fix(mobile): 修复多类线上闪退并留存 iOS 崩溃符号
按商店后台与 Xcode Organizer 里的线上崩溃日志逐类处理:

- JS 致命错误:启动稳定后(根布局首次提交 20 秒后),渲染报错由根级
  RootErrorBoundary 显示可重新加载的错误页,回调与定时器里的未捕获报错由
  jsErrorGuard 降为非致命。窗口内保持致命,expo-updates 的错误恢复照旧回滚坏热更。
  本机诊断记录新增 `js error` 事件,只含报错类型与打包文件行列号。
- iOS 0xdead10cc:后台启动时不读取入站分享暂存区(读取期间持有 App Group 文件锁),
  回到前台再读。
- Android 图片绘制崩溃:expo-image 补丁在绘制前修正未预乘标记,画布仍拒绝时丢弃
  这张图;该模块改为从源码编译,否则补丁进不了包。
- Android 长按输入框崩溃:expo-paste-input 补丁在选区没有可见宽度时让本次触摸
  不触发长按,避开系统零尺寸拖拽缩略图的异常。
- build-ios.mjs 把 archive 里的 dSYM 打成 .dSYMs.zip 留在 .ipa 旁边。

只改变 Android 的 runtime fingerprint(iOS 不变):两个 Android 补丁须随冷更发布,
其余为纯 JS 改动。

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-11 18:31:29 +13:00
Dash
eed830cc3c fix(mobile): 保留锁屏实时活动内容并改善过期恢复
Preserve confirmed activity content across background suspension, use state-aware freshness windows, and recover stale push registrations in foreground without replacing server-owned aggregates.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-11 13:49:05 +13:00
Dash
825e7c6611 Merge origin/main into docs/protocol-compatibility-split
protocol-compatibility.md 冲突:必读页保持本分支版本,主干对该文档的改动落到记录文件:

- 新增「伙伴后台任务(委派)退役」→ teammate-background-task-delegation-retirement.md
- 新增「伙伴 V1 其余远程入口退役(2026-11-08)」→ teammate-v1-remote-entry-retirement.md
  两节正文与主干一致,仅相对链接按记录目录补 ../。
- 已有章节内的 11 处追加/改写,逐处应用到对应记录:
  schedule-and-routine-plugin-precheck、teammate-settings-management-action、
  delegated-and-automation-completion-notification、cloud-teammate-switch-primary-computer(2 处)、
  cross-computer-task-action-receipt(3 处)、teammate-follow-up-invitation、
  teammate-roster-follow-up-task-link、desktop-teammate-source-filter、owner-request-cross-task-continuity。
  其中「见下节」「见上文」「见「…」」拆分后无处可指,改为指向对应记录的链接。

docs/product-rules/cindy-bots-runtime.md、message-source.md 与主干内容冲突:取主干版本,再套回本 PR 各自唯一的一处引用更新(指向新记录)。

只改排列与引用,不改规则内容。

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-11 08:08:04 +13:00
Cindy
e55748d177 merge: 同步主干推送注册修复并保留角标能力
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Cindy <cindy@Cindys-Mac-mini.local>
2026-11-11 06:59:26 +13:00
Dash
e57d1d7708 Merge origin/main into docs/protocol-compatibility-split
protocol-compatibility.md 冲突:必读页保持本分支版本,主干对该文档的两处改动落到记录文件(来自 7bef3b345b,#9672):

- 新增一节「手机群内执行与停止范围」→ 新记录 bot-group-mobile-execution-and-stop-scope.md,正文与主干逐字一致,标题提升一级并加回链行。
- 「群聊」节里一句话改动 → 应用到 bot-group-single-speaker.md;其中「见本文「…」」拆分后无处可指,改为指向新记录的链接,其余文字与主干一致。

只改排列与引用,不改规则内容。

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-11 02:26:44 +13:00
Cindy
8f026411a4 merge: 同步主干并保留角标与 Android 推送降级
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Cindy <cindy@Cindys-Mac-mini.local>
2026-11-11 01:59:33 +13:00
Dash
e3b708d4b9 Merge origin/main into fix/personal-ios-distribution-docs
Keep both the per-endpoint push registration diagnostics and Android
direct-delivery availability tracking in pushNotifications.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-11 01:52:26 +13:00
Lizi
1d47fdfd94 Merge pull request #9349 from zqchris/android-auto-notifications
fix(mobile): automatically receive Android notifications without Google push
2026-11-10 20:48:05 +08:00
Dash
e405db1be9 docs(dev-rules): 协议兼容拆成必读规则页与每项能力一份记录
protocol-compatibility.md 已长到 555 KB、194 节:文档抬头落在第 1290 行,
§1 的规则被挤到无关小节下面,Review 清单在第 3967 行。每个协议改动都要求
先读它,但没有 Agent 能读完;新记录又都往同一处插,近 30 天 453 次提交改这
一个文件,彼此反复冲突。

- 原页只留对所有跨端改动都成立的规则(事实来源、§1–§3、自建中转同步维护、
  Review 清单),10 KB;新增一节说明检索与新增记录的做法。
- 205 项能力记录各占 protocol-compatibility/ 下一个文件,正文逐行保留,只
  提升标题层级并修正相对链接;11 个挂在无关章节下的小节独立成篇。
- 7 处「上一节/见下文」改为指向具体文件;其他文档里 29 处按章节名或锚点
  的引用改指新文件。
- dev-docs 契约新增一条:规则页不超过 16 KB、记录一文件一标题,防止再次堆回。

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-11 00:33:32 +13:00
Dash
2cdd07147d feat(mobile): retain opt-in push diagnostics in developer settings
Integrate the local diagnostic UI from 5aa5cf5d36, preserving transient token handling and developer-only placement. Add a real-process supervisor control handoff regression and document acceptance boundaries.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-11 00:20:59 +13:00
Dash
613d44b007 Merge main and document persistent personal delivery acceptance
Keep the reviewed monitor initialization ahead of normal startup. Desktop, Mobile and Host typechecks pass on the merged tree; test-hygiene now passes against the current main baseline.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-11 00:18:30 +13:00
Lizi
b70c690274 Merge pull request #9696 from makecindy/cindy/humble-kalam
fix(mobile): 灵动岛日常点击回首页,展开后保留任务入口
2026-11-10 18:54:15 +08:00
Lizi
b966cbb69a Merge pull request #9665 from makecindy/cindy/loyal-hopper
fix(mobile): 修复 Windows Android 原生构建长路径
2026-11-10 18:43:54 +08:00
Chris
905ef48578 merge: sync main and retain Android notification delivery
Keep updated mobile cold-release documentation and the Android direct notification contract.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-11-10 18:22:13 +08:00
Dash
be16fb5f1a fix(mobile): open home from the collapsed Dynamic Island
Keep explicit task links in the expanded island and lock-screen presentation. Route stale activity taps home and preserve the installed app scheme.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-10 20:46:15 +13:00
DavidShen
ae0c959fe1 fix(mobile): 修复 Windows Android 原生构建长路径
Windows 模拟器构建恢复 CMake 平台路径缩短,并为 app 代码生成选择较短的独立 staging 缓存。

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: DavidShen <david@xd.com>
2026-11-10 13:53:31 +08:00
Dash
dbf6441a19 docs(mobile): 同步 main 新增的冷更确认门引用
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-10 17:42:24 +13:00
Dash
d2b594e98f merge: 同步 main
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-10 17:42:17 +13:00
Dash
eda964e1ac fix(mobile): fence push registration during account logout
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-10 12:21:22 +13:00
Dash
0db9d007eb fix(mobile): stop APNs token registration feedback loop
Reuse token event data, deduplicate repeated events within the account lifecycle, and preserve real token rotations.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-10 11:33:05 +13:00
Dash
7fdd178a5f fix(mobile): retain redacted push registration outcomes
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-10 11:32:40 +13:00
Dash
b853022012 fix(mobile): 使用签名推送环境并恢复活动移除标记
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-10 06:45:05 +13:00
Dash
48ba7bfb2c fix(mobile): 同步桌面素材源哈希并澄清过期口径
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-10 06:29:28 +13:00
Dash
5f48dccbd6 merge: 同步 main 并保留两项增量协议文档
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-10 04:49:20 +13:00
Dash
072c0b98ce feat(mobile): 接入任务汇总与 ActivityKit 后台推送
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-10 04:40:47 +13:00
Cindy
cdb9767e6b feat(mobile): 从账号汇总与后台推送同步任务角标
Replace partial Home counting with the shared versioned task-activity API and push summary. Add native Android badge-only handling and installation capability registration.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Cindy <cindy@Cindys-Mac-mini.local>
2026-11-10 04:30:45 +13:00
Cindy
fbf0d69472 fix(mobile): 完整同步任务与活动后再更新角标
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Cindy <cindy@Cindys-Mac-mini.local>
2026-11-10 04:30:45 +13:00
Cindy
09ac98c5da feat(mobile): 按待处理任务数显示 iOS 和 Android 角标
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Cindy <cindy@Cindys-Mac-mini.local>
2026-11-10 04:30:44 +13:00
Dash
6e05a48a0c fix(mobile): 使用桌面 Cindy 角色作为灵动岛形象
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-10 03:37:29 +13:00
Dash
6f568ea471 fix(mobile): 补齐灵动岛未读结果计数与展示优先级
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-10 03:19:06 +13:00
Chris
5ec2997beb Merge upstream/main into android-auto-notifications
Preserve Android direct fallback availability alongside upstream push registration diagnostics and signing-environment handling.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-11-09 19:51:04 +08:00
Dash
7c6ce0f40b feat(mobile): 添加复用桌面美术的 iPhone 任务灵动岛
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-10 00:25:29 +13:00
Dash
7a54770122 Merge remote-tracking branch 'origin/main' into fix/personal-credentials-signing 2026-11-09 18:04:26 +13:00
Dash
e44316f8c3 fix(mobile): keep communication entitlement on containing app
Xcode cannot provision Communication Notifications on the notification service extension. Retain it on the application and preserve the extension implementation.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-09 10:33:04 +13:00
Dash
c9fdb717e5 wip(mobile): preserve interaction and cache optimizations before rebase
Local preservation of the current Beta 42 source for the requested rebase.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-08 20:05:14 +13:00
Chris
89edd1cb78 fix(mobile): preserve chat delivery across partial push failures
Keep task and chat registration outcomes separate before stopping the shared fallback. Bind native chat identities to account and realm, preserve same-account identity/config through transient lookups, and retain explicit logout and account-switch fences.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-11-08 11:37:39 +08:00
Chris
95dd12e396 fix(mobile): receive Android notifications automatically without Google push
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-11-08 11:14:43 +08:00
Dash
6f0fe0a9e5 merge: 同步 main(键盘高度逻辑合并 RN 0.88 的 metrics 空值处理)
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-07 22:24:13 +13:00
Dash
551405a32f build(mobile): 升级 Expo SDK 58 并适配原生依赖
保留原有手势、导航、文件读写和自建 OTA 行为,迁移原生补丁并记录真机构建与资源对比。

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-07 20:41:04 +13:00
Chris
8395bad38b fix(mobile): recover queued edit snapshots alongside later typing
On queue-save failure, restore a cleared edit snapshot with the newer document once and persist the result. Keep complete edits when no clear occurred, and leave cancelled or replaced edit scopes untouched.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-11-07 15:21:04 +08:00
Chris
915091cc63 fix(mobile): keep rejected native paste batches out of placeholder cleanup
Ignore empty and unaccepted native image batches before placeholder or file work. Retain accepted in-flight image delivery across sending and protect it from oversized clipboard rejection events.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-11-07 15:07:25 +08:00
Chris
fac534f0fb fix(mobile): retain image paste acceptance for each batch
Capture image delivery and failure callbacks when a WebView paste batch starts. Accepted batches survive send-state changes, rejected batches cannot become accepted later, and recovery only releases placeholders for accepted batches.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-11-07 14:54:03 +08:00