Commit Graph

72 Commits

Author SHA1 Message Date
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
DavidShen
38aa743d24 fix(mobile): 补齐 Mermaid URL 兼容与渲染回归验证
Signed-off-by: DavidShen <david@xd.com>
2026-10-08 18:30:37 +08:00
DavidShen
2d2ba2b7ce fix(mobile): 修复旧版 WebView 的 Mermaid 渲染 #5586
Signed-off-by: DavidShen <david@xd.com>
2026-10-08 18:09:16 +08:00
Dash
48bfca40df feat(usage-limit): 账号用量上限重置后自动继续,覆盖更多订阅套餐 (#5540)
* feat(usage-limit): 账号用量上限重置后自动继续,覆盖更多订阅套餐

- 普通任务撞上 5 小时 / 周用量上限时照常报错,同时等额度重置;到点仍无人处理
  就自动继续(有产出发续跑指令、零产出重发原文)。横幅显示「将于 X 自动继续 ·
  取消」,手机端同步;替换原「恢复后继续」一次性自动化入口。仅本次运行有效。
- 重置时刻统一按会话所用账号求:错误自带 → 报错原文(Codex try again at、Pi
  ~N min、ChatGPT resets_at)→ 订阅用量快照(ChatGPT / Claude / SuperGrok 按
  provider 的 auth.native)。目标模式共用同一套来源。
- 新增 maker:input:cancel-usage-limit-wait 与可选投影字段 usageLimitWait;
  账号限额不再进入秒级中断重连。

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

* fix(usage-limit): scope waits to the session model and subscription, tighten lifecycle

- Read only the Codex bucket / Claude scoped window that limits the session model
- Never wait on non-subscription providers even when the error text has a retry time
- Bind waits to the candidate recovery issued at the terminal error; drop in-flight
  resolutions on user action or close; withdraw the hint when eligibility lapses
- Check the renderer sender on the cancel IPC; renderer no longer clears the hint
  optimistically

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

* fix(usage-limit): only trust reliable reset times of the limited subscription window

- Goal mode reads error-text reset times through the host, only for subscription sessions
- An exhausted window without a reset time yields no reset time instead of borrowing another
- Ignore windows already past their reset and stale SuperGrok snapshots

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

* fix(usage-limit): restore the error when a reset continuation is dropped before dispatch

- Keep a pre-dispatch rollback record for usage-limit continuations (no interrupted-turn token)
- Restore the original error and manual retry from the existing discard / undispatched hooks
- Document that scheduler-origin inputs, including hook channel messages, are not covered

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

* fix(usage-limit): withdraw a fired wait when the continuation does not start

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

* fix(usage-limit): recognise built-in subscription accounts, commit unconfirmed continuations

- Map the built-in default providers (openai / anthropic / xai) to their subscription family
- Treat a usage-limit continuation as current while its pre-dispatch rollback record exists,
  so an unconfirmed dispatch is committed instead of being restored as retryable
- Do not pass the usage-limit sessionTotal (0) to interrupted-turn bookkeeping

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

* fix(usage-limit): only use snapshot reset times when the snapshot confirms the limit

- Return a snapshot reset time only when a window is exhausted; goal's reactive path checks limited too
- Void the snapshot-level reached flag once any window has rolled over

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

* fix(usage-limit): judge snapshots by exhausted windows only, withdraw waits on model switch

- Drop snapshot-level reached flags (stale or credits depleted); only an exhausted live window counts
- A user model / source switch withdraws the pending usage-limit wait
- Document that goal mode keeps its persisted usageLimited resume across restarts

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

* docs(usage-limit): scope the model-switch withdrawal rule to ordinary tasks

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

* fix(usage-limit): match usage windows against the model the session actually runs

Runtime overrides (set_session_runtime / automatic fallback) take precedence over the saved
session model and provider for both ordinary tasks and goal mode.

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

* fix(usage-limit): never auto-continue a shared-task guest turn

The guest's access may be revoked while waiting; re-sending their instruction hours later is
unsafe, so the error stays for the owner to handle.

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

* test(usage-limit): pin that guest steers never leave a usage-limit wait

Covers both orderings (steer ack before / after the terminal error); docs mention guest steers.

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

* fix(usage-limit): goal mode skips local subscription snapshots for SSH sessions

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

* fix(usage-limit): withdraw the wait before a user model switch starts

Cancelling after handleSetModel could lose to a continuation that fired during the switch.

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

* fix(usage-limit): never treat billing depletion as a periodic usage limit

Share the billing-depletion check between the usage-limit classifier (goal and ordinary tasks)
and the reset-time parser, so quota wording on a billing error no longer schedules a wait.

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

* fix(usage-limit): ignore zone-less clock times from SSH session errors

Remote Codex reports 'try again at 3:05 PM' in the remote host's local time; only relative,
zoned or structured reset times are used for SSH sessions.

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

* fix(usage-limit): never auto-wait on a usage limit while the task is shared

Per Dash (2026-10-08): ordinary tasks and goal mode stay on the error / usageLimited for the
owner to resume when the task is currently shared; a wait that becomes shared does not resume
at the reset time. Goal overload retries are unaffected.

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

---------

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-08 08:40:08 +08:00
Dash
30f5d8c16b fix(mobile): 远程桌面画中画保持浏览时的缩放区域 (#5374)
* fix(mobile): 远程桌面画中画保持浏览时的缩放区域

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

* docs(mobile): 说明画中画跟随浏览缩放区域

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

* fix(mobile): 修正画中画帧复用注释

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

* fix(mobile): 画中画裁剪缓冲不因 AVKit 持帧而回退整帧

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

---------

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-02 14:04:05 +08:00
DavidShen
eb072c4261 fix(mobile): defer Java discovery until Maestro actually runs
Signed-off-by: DavidShen <david@xd.com>
2026-10-02 02:43:33 +08:00
JiangJiahao
25e7f16638 feat(desktop): iOS Simulator Native 默认使用 30 FPS 原尺寸 (#4996)
* feat(desktop): default native iOS simulator to 30 FPS full scale

Signed-off-by: JiangJiahao <jiangjiahao@xd.com>

* fix(desktop): guard stale iOS simulator profile responses

Preserve newer manual selections when old requests fail, and confirm the Native default only after a successful profile response. Cover delayed results, transport changes, and generation resets with regression tests.

Signed-off-by: JiangJiahao <jiangjiahao@xd.com>

* ci: retrigger checks for PR #4996

Trigger a new CI run because upstream workflow rerun requires repository admin rights. No source or test changes.

Signed-off-by: JiangJiahao <jiangjiahao@xd.com>

* test(mobile): bound Swift share feedback phases in CI

Give compiler probing, compilation, and execution separate bounded budgets, preserve startup and cleanup headroom, and log phase timing. Keep generated Swift behavior assertions unchanged and add regression coverage for failures, timeouts, and cleanup.

Signed-off-by: JiangJiahao <jiangjiahao@xd.com>
(cherry picked from commit 35f146cf059a59f45136718c32ca5161a2b8496b)

* test: harden Swift and PowerShell CI startup boundaries

Signed-off-by: JiangJiahao <jiangjiahao@xd.com>

---------

Signed-off-by: JiangJiahao <jiangjiahao@xd.com>
2026-09-28 19:13:18 +08:00
Dash
dfd4b615eb feat(mobile): 移除自动化管理与例行任务 (#5150)
* feat(mobile): 移除自动化管理和例行任务入口

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

* feat(mobile): 移除伙伴资料中的例行任务管理

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

* fix(mobile): 清理废弃自动化文案并兼容旧链接

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

* docs: 对齐例行任务的手机端范围

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

* docs(mobile): 从现行计划和验收范围移除自动化管理

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

---------

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-09-27 17:51:50 +08:00
Dash
baf3f41300 fix(mobile): 为 iOS 分享接收和唤起失败提供明确反馈 (#4987)
* fix(mobile): 为 iOS 分享接收和唤起失败提供明确反馈

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

* fix(mobile): 补齐分享反馈文案并接入 Swift 行为测试

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

* test(mobile): 仅在有 Swift 编译器时运行分享反馈行为测试

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

---------

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-09-25 22:19:36 +08:00
Dash
e2089e1e0d fix(remote-desktop): 修复原生 ICE 数字桥接并统一中继配置等待预算 (#4686)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-09-20 09:10:21 +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
Dash
f58c2f110e feat(mobile): 原生接收远程桌面并保留后台画中画 (#4630)
* feat(mobile): 原生接收远程桌面并保留后台画中画

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

* fix(mobile): 恢复原生远程桌面的实时背景

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

* fix(mobile): 稳定恢复后的画中画与后台授权交接

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

* test(mobile): 覆盖原生接收器生命周期交错

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

* fix(mobile): 关闭浏览器画中画后恢复原控制模式

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-09-18 21:04:51 +07:00
Dash
397e0dce8d feat(remote-desktop): 增加防窥屏、被控端静音和双向剪贴板同步 (#4369)
* feat(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(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(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(remote-desktop): 避免 Android 版本轮询读取剪贴板正文

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

* fix(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(remote-desktop): 锁屏退出完成前保留防窥遮罩

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

* fix(remote-desktop): preserve audio restoration and offload clipboard work

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

* fix(remote-desktop): bound clipboard images and track privacy display geometry

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

* fix(remote-desktop): bound iOS clipboard image processing

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

* fix(remote-desktop): preserve clipboard images and initial content baselines

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

* fix(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(remote-desktop): 保留独立摘要并报告静音后端缺失

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

* fix(remote-desktop): verify normalized clipboard writes and retry focus loss

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

* fix(remote-desktop): bound Android clipboard image retention

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

* fix(remote-desktop): intercept physical privacy scrolling

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

* fix(remote-desktop): await privacy hook exit before locking

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

* fix(remote-desktop): preserve ordinary leases on display hotplug

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

* fix(remote-desktop): declare text representations for Android image clips

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

* fix: 回收旧进程遗留的剪贴板准备文件

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

* fix: 优先显示远程防窥和静音失败提示

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

* fix(remote-desktop): 隔离远程静音与窗口 owner 标识

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

---------

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-09-17 22:43:39 +07:00
Dash
9018f7c47a fix(mobile): 统一模拟器启动身份校验并保留依赖现场 (#4599)
* fix(mobile): 统一模拟器启动身份校验并保留依赖现场

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

* fix(mobile): 复用模拟器 UDID 参数解析并修正文档示例

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

---------

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-09-17 17:01:22 +07:00
Dash
0a104b5ae9 feat(files): 统一远程文件读取并按需预览 HTML (#4346)
* feat: preview remote HTML snapshots with peer file transport

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

* fix(files): 网页预览准备使用中性加载提示

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

* fix(files): 使用 SHA-256 生成远程缓存标识

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

* fix(remote-files): guard preview requests and owner-scoped cache completion

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

* fix(remote-files): guard preview media reference ingestion

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

* fix(files): 统一两端音视频流式读取策略

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

* fix(mobile): 区分文件预览与下载的读取意图

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

* fix(files): 避免手机预览持有短期 peer 文件地址

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

* fix(security): 为正式包文件传输页面注入 CSP

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

* fix(mobile): 统一处理文件 WebView 进程终止

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

* fix(mobile): 为 HTML 快照拒绝设备权限

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

* fix(files): enforce snapshot budgets before OSS uploads

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

* fix(files): 按需预览远程 HTML 并支持 2 GiB 文件传输

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

* test(files): 复用真实的跨平台 HTML 路径转换

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

* fix(mobile): HTML 入口加载失败进入重试态

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

* fix(mobile): 取消 HTML 预览连接超时任务

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

* chore: regenerate design inventory after main merge

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

* fix(mobile): keep on-demand document errors retryable

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

* fix(files): cancel shared remote reads when unused

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

* fix(mobile): keep async preview reads alive

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

* fix(files): serialize desktop HTML preview resource copies

Reuse the existing file-read queue so one preview cannot overlap 2 GiB materializations.

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

* test(desktop): 对齐主干 bootstrap 接线格式

GitHub CI 合入最新 main 后 bootstrap 换行变化,源码契约测试仍按旧单行断言。

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

* fix(files): allow SSH HTML preview and reuse on-demand paths

SSH on-demand HTML was rejected as 415. Repeated cache-busted requests now reuse the preview-owned file instead of fetching again.

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

* fix(files): keep on-demand preview files until close

Native on-demand responses no longer delete the materialized file when the first socket closes, and desktop reuses the preview-owned copy for the same path.

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

---------

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-09-16 22:08:39 +07:00
Dash
40f087c99c feat(mobile): 支持 iOS 分享文件和图片到新任务 (#4335)
* feat(mobile): 支持 iOS 文件分享导入新任务

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

* docs(mobile): 同步分享接收组件的设计清单

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

* fix(mobile): 隔离分享附件的账号归属

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

* fix(mobile): 回收分享临时副本和切号后的上传对象

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

* fix(mobile): acknowledge incoming shares under a shared native lock

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

* fix(mobile): preserve unclaimed shares across account switch rollback

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

---------

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-09-16 13:29:54 +07:00
Yecheng Fu
d895395501 fix(mobile): 修复 E2E 登录前置断链 (#4401)
* [mobile] fix: restore deterministic Maestro login and flow checks

Signed-off-by: Yecheng Fu <yechengfu1987@gmail.com>

* [mobile] test: record iPhone Simulator login evidence

Signed-off-by: Yecheng Fu <yechengfu1987@gmail.com>

---------

Signed-off-by: Yecheng Fu <yechengfu1987@gmail.com>
2026-09-16 12:16:06 +07:00
Dash
183c102943 merge: 同步 main 并保留远程桌面改动
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-09-09 14:29:28 +10:00
DavidShen
e232909f44 fix(mobile): track Metro environment fingerprint
Signed-off-by: DavidShen <david@xd.com>
2026-09-09 04:06:18 +08:00
DavidShen
b00f836cce fix(mobile): 校验首次听写选区与 Metro 区域
Signed-off-by: DavidShen <david@xd.com>
2026-09-09 03:41:59 +08:00
DavidShen
3f5278477d fix(mobile): 加强 Android SDK 与 Metro 构建门禁
Signed-off-by: DavidShen <david@xd.com>
2026-09-09 03:41:58 +08:00
DavidShen
42d71812da fix(mobile): 处理停止听写选区事件与 Windows Metro 路径
Signed-off-by: DavidShen <david@xd.com>
2026-09-09 03:41:58 +08:00
DavidShen
20b72e1db7 fix(mobile): 校验 Metro owner 与监听进程的关联
Signed-off-by: DavidShen <david@xd.com>
2026-09-09 03:41:57 +08:00
DavidShen
60ea49556b fix(mobile): 校验 Windows Metro 路径和 Gradle Java 环境
Signed-off-by: DavidShen <david@xd.com>
2026-09-09 03:41:56 +08:00
DavidShen
b3a5e0e9d6 fix(mobile): 按用户操作保留听写最终选区并校验 SDK 路径
Signed-off-by: DavidShen <david@xd.com>
2026-09-09 03:41:56 +08:00
DavidShen
176555ecef fix(mobile): 保留停止听写后的用户选区
Signed-off-by: DavidShen <david@xd.com>
2026-09-09 03:41:55 +08:00
DavidShen
875a1bf55c fix(mobile): 完善听写停止和 Windows 模拟器环境
Signed-off-by: DavidShen <david@xd.com>
2026-09-09 03:41:54 +08:00
DavidShen
7e97a68fd9 fix(mobile): 修复 Windows Metro 归属探测
Signed-off-by: DavidShen <david@xd.com>
2026-09-09 03:41:54 +08:00
DavidShen
ecb79119da fix(mobile): 保留 Android 模拟器 Metro 门禁
Signed-off-by: DavidShen <david@xd.com>
2026-09-09 03:41:53 +08:00
DavidShen
efc2b00a8f fix(mobile): 修复 Windows CN 模拟器重建
Signed-off-by: DavidShen <david@xd.com>
2026-09-09 03:41:10 +08:00
Dash
b5d0959530 chore(remote-desktop): 同步主干并重建设计台账
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-09-08 21:11:04 +10:00
Dash
d648b662b6 fix(remote-desktop): 统一 iOS 剪贴板字符计数
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-09-08 16:14:04 +10:00
Dash
30a91a4ce9 test(device-link): 恢复拆仓后的连接集成测试并接入 CI (#3943)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-09-08 13:51:08 +08:00
Dash
23c5b3afe3 fix(remote-desktop): 补发网络候选并隔离媒体重连
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-09-08 02:27:13 +10:00
Dash
2c26b914b9 feat(remote-desktop): 支持手机远程查看与操作电脑桌面
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-09-07 23:26:17 +10:00
guyong
2a826fe265 fix(mobile): add opt-in native self-host OTA recovery
Signed-off-by: guyong <guyong@xd.com>
2026-09-07 14:46:41 +08:00
Dash
6976af5fdf fix(mobile): 恢复设备直接筛选并集中设备管理 (#3970)
* fix(mobile): 恢复设备直接筛选并集中设备管理

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-09-06 11:13:18 +08:00
han
d16d7a9343 perf(ios-simulator): 构建链路优化(arch 预检 + 缓存复用 + 回收) (#2899)
* perf(ios-simulator): 构建链路优化(arch 预检 + 缓存复用 + artifact 生命周期)

同一 worktree 反复 build 从分钟级全量降到秒级增量,build 前说清目标 arch。

- arch 预检:build 前 -showBuildSettings 读所有 target 的 ARCHS−EXCLUDED_ARCHS,
  定位 .app target,不匹配抛 APP_ARCH_MISMATCH,避免白编译。
- 缓存复用:derivedDataPath/SPM checkout 按 sha256(worktree+arch) 跨 session 复用,
  加 -onlyUsePackageVersionsFromResolvedFile(无 resolved 时 fallback resolve)。
- 并发:同 key 进程内互斥 + prune 实时 isSkip 回调 + renameSync 原子分离。
- artifact 生命周期:cp verbatimSymlinks 到 immutable 副本,每 instance 上限 4,
  install 期间 pin,unpin 归零/dispose 时回收;dispose 等待删除完成。

Refs #2891

Signed-off-by: han <zhaohan@xd.com>

* fix(ios-simulator): lastUsed 冷缓存标记 + 收窄 SPM fallback

回应 #2958:prune 按显式 lastUsed,不再把 cache-key 目录 mtime 当最后使用;
SPM 仅在 Xcode 明确报 Package.resolved 缺失/不可用时去掉 resolved-file pin 重试。
7 天策略是机会式 TTL,不是磁盘配额。

Refs #2891 #2958

Signed-off-by: han <zhaohan@xd.com>

* fix(ios-simulator): SPM fallback 只认同一行 resolved 缺失诊断

Codex P2:全文分别匹配 Package.resolved 和 missing/no such file,会把
「一行提 lockfile、另一行缺头文件」误判成 resolved 缺失并再跑一轮完整
xcodebuild。改为同一诊断行同时点名 Package.resolved 且表示该文件不可用。

Refs #2899 #2958

Signed-off-by: han <zhaohan@xd.com>

* fix(ios-simulator): ARCH 预检文案只指向 app target

预检只读 .app 的 ARCHS − EXCLUDED_ARCHS,报错却让用户去查依赖排除,
会把人带到 Pod/SPM。改成说明 app target 有效架构与模拟器需求不匹配。

Refs #2899

Signed-off-by: han <zhaohan@xd.com>

* fix(ios-simulator): 回收崩溃遗留的应用产物

Signed-off-by: han <zhaohan@xd.com>

* fix(ios-simulator): stabilize large project builds

Signed-off-by: han <zhaohan@xd.com>

* fix(ios-simulator): 绑定构建到目标模拟器

Signed-off-by: han <zhaohan@xd.com>

---------

Signed-off-by: han <zhaohan@xd.com>
Signed-off-by: MagicLizi <jiali@magiclizi.com>
Co-authored-by: MagicLizi <jiali@magiclizi.com>
2026-09-02 04:09:42 +08:00
DavidShen
b6f8226f3e fix(ci): 修复 Linux 单测跨平台回归
Signed-off-by: DavidShen <david@xd.com>
2026-08-31 16:08:30 +08:00
DavidShen
a146eb5041 fix(dev): 修复 Windows 移动端调试与测试门禁
Signed-off-by: DavidShen <david@xd.com>
2026-08-31 14:54:34 +08:00
DavidShen
3768fecc9b fix(mobile): harden environment switching failures
Signed-off-by: DavidShen <david@xd.com>
2026-08-26 17:55:25 +08:00
DavidShen
3dc650e034 fix(mobile): 保留 Android 构建失败诊断
Signed-off-by: DavidShen <david@xd.com>
2026-08-26 17:25:50 +08:00
DavidShen
cd8e162d7f fix(mobile): 避免构建错误日志泄露环境变量
Signed-off-by: DavidShen <david@xd.com>
2026-08-26 16:26:33 +08:00
DavidShen
991db9e306 fix(mobile): harden CindyDev server env bundling
Signed-off-by: DavidShen <david@xd.com>
2026-08-26 15:45:33 +08:00
bobo
26c7215c8f build(mobile): add global Android AAB artifact (#3435)
* build(mobile): add global Android AAB artifact

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

* fix(mobile): pin Android upload certificate

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

---------

Signed-off-by: xd-bobo <caojianbo@xd.com>
2026-08-26 14:13:48 +08:00
Dash
09634e456b fix(mobile): 让 --takeover 能清掉孤儿 Metro 和脏 worktree (#3235)
--takeover 原先要求对方 worktree 的磁盘指纹仍等于 Metro 启动时的
注入值。目录已删或启动后改过文件时会误拒,8081 被占死。确认是
Cindy Metro 后即可接管;未知进程仍然 fail closed。

Signed-off-by: Dash <dashhuang@gmail.com>
2026-08-22 18:46:53 +08:00
Dash
687e6ac915 feat(mobile): 对齐桌面侧栏任务列表并同步项目顺序 (#3060)
* feat(mobile): 对齐桌面侧栏任务列表并同步项目顺序

手机首页按桌面 list 收口:同一行样式、同一套分组/排序/状态,项目手动序走双账本。
被控端只记本机 local: 顺序,「所有」混排留在控制端;旧主机没有 RPC 时静默回退。
首页改左侧抽屉进设置、顶栏磨砂与三点菜单,设置页从左边推进来。

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

* fix(mobile): 项目顺序按展示账本拖拽并同步到其它控制端

单机主机已是 custom 时,桌面列表/拖拽和手机手势都跟展示账本走,不再读查看端混排。
APPLY 对齐侧栏 owner stamp;变更经 tap + sessions topic 推到已打开的控制端。

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

* fix(mobile): 筛选补拉、临时同步失败不降级、下拖落点校正

首页单飞未完成时切状态会排队用最新筛选再拉。GET/APPLY 只在通道缺失时降到查看端账本。
项目下拖按去掉源行后的插入位计算,不再跳过相邻项。

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

* fix(mobile): 展示账本统一菜单、过期 GET 不覆盖、播种成功才锁定

列表/菜单/拖拽共用 resolveDisplayedProjectOrder。GET 在收到更新推送后丢弃。
本机自定义序只在 APPLY 成功后按 owner 记已播种。

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

* fix(desktop): 主机项目顺序 GET 临时失败后有限重试

桌面远程/本机 GET 对齐手机:超时或掉线不永久停在 activity,最多再拉两轮。

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

* fix(mobile): 项目顺序推送按 owner 代际丢弃过期帧

手机 routeFrame 对齐桌面 fence:账号不一致或 generation 更旧的
project-order-changed 不再写入首页,避免随后把旧顺序 APPLY 回主机。

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

* fix(mobile): 跨端项目键统一 Windows 折径

remapHost* 折叠为正斜杠+小写(与手机首页 projectGroupKey 同一套),
remapController* 用 knownHostKeys 还原已见过的大小写再写回主机。POSIX 路径保持原样。

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

* fix(mobile): peer 重连时清除项目顺序推送水印

连接代际、link close、镜像擦除时丢掉旧 ownerGeneration;GET 成功后按当前 stamp 重记,避免主机重启后推送被误判为过期。

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

* fix(desktop): 识别映射后的旧主机缺通道错误

桌面隧道会把 CHANNEL_NOT_ALLOWED 编成 DEVICE_LINK_* 且丢掉 Error.code。
共享判据同时读对象 code 与 [CODE] message,GET/APPLY 才能 fail-closed 到查看端账本。

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

* fix(mobile): 项目键折叠 worktree,归档行可恢复

同步键与首页分组共用同一套折径,主机 worktree 路径不再对不上。
已归档任务的滑动和选项菜单改为恢复,不再重复归档。

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

* fix(mobile): 手动序按折叠键对齐并继承状态筛选

首次写入的 Windows 小写键按折叠对上主机原拼写,不再丢整份顺序。
混合账本仍播种本机子序列;项目「查看全部」带上首页状态筛选。

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

* fix(mobile): 项目键只按盘符/UNC 识别 Windows 路径

POSIX 目录里的合法反斜杠文件名不再被误判为 Windows 分隔符而折叠,
避免 /repo/foo\\bar 与 /repo/foo/bar 合并成同一项目键。

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

* test(desktop): 补项目顺序 GET/APPLY IPC 单测

覆盖 GET 快照、非法/不匹配 stamp、丢掉 device: 键、非 app 窗口不广播。

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

* fix(mobile): 优先级独立收集未读,拖拽落点计入虚拟化前缀

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

---------

Signed-off-by: Dash <dashhuang@gmail.com>
2026-08-21 10:17:28 +08:00
DavidShenXD
e7b2cfbb6e fix(mobile): 扩大排队消息插话触控区域 (#3001)
* fix(mobile): 扩大排队消息插话触控区域

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

* fix(mobile): 兼容 Windows 换行的队列回归断言

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

* fix(mobile): 完善排队消息徽标命中区断言

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

---------

Signed-off-by: DavidShen <david@xd.com>
2026-08-19 13:40:38 +08:00
Dash
55130ca1dd fix(mobile): accept optional Metro worktree path in typecheck
Stop defaulting the second argument to null so tests can pass a POSIX worktree string without TS2345.

Signed-off-by: Dash <dashhuang@gmail.com>
2026-08-17 13:30:45 +12:00
Dash
409cca2c9d fix(mobile): restore whoami JSON contract and Windows Metro path checks
Keep expectedSource/currentSourceOnExpectedPort/anyMetro for Simulator launch validation, and compare Metro process-group cwds without path.resolve() so Windows tests do not rewrite POSIX fixtures.

Signed-off-by: Dash <dashhuang@gmail.com>
2026-08-17 13:18:40 +12:00