Commit Graph

621 Commits

Author SHA1 Message Date
Dash
3cf5e2ebce fix(desktop): 远程桌面窗口隐藏、最小化、切桌面或全屏时不再断开连接
macOS 会把切换 Space、原生全屏切换和窗口被完全遮挡都报告成原生 hide/show,
远程桌面查看器原先在 hide/minimize 时结束会话、show/restore 时重连。
给辅助窗口控制器加 pauseWhenHidden 选项(默认不变),查看器关闭它,
会话只在用户关闭窗口时结束。

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-05 15:57:22 +13:00
Dash
0b3c5681e9 fix(device-link): 手机挂起不再误报电脑端未响应,relay 转发卡死时整连接重连 (#5465)
* fix(device-link): 手机挂起不再误报电脑端未响应,relay 转发卡死时整连接重连

- 手机端:发出时已不在前台、或跨越前后台切换的请求超时按不定论处理,不再计入「电脑端未响应」熔断;熔断不打开后,回前台对该电脑的重连不再被探测退避推迟。
- device-link:可靠 ACK 超时时,若该 peer 与另一已就绪 peer 的队头首发以来都没有收到任何对端帧,判定 relay 连接转发方向卡死并重建连接;只有单个 peer 沉默时仍只复位该 peer。

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

* docs(device-link): 记录熔断忽略 App 挂起超时与 relay 卡死重连条件

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

* fix(device-link): 连接级重连要求所有已就绪 peer 都有卡死证据

两台对端同时休眠时,空闲但健康的第三个 peer 拿不出卡死证据,不得因整连接重建被连带断链;补三 peer 用例,并让健康 peer 用例持续 ACK、直接断言其未被复位。

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

* fix(device-link): 活动的旧版控制端同样阻止连接级重连

未协商可靠传输的旧控制端没有队头可供取证;其入站控制方向仍活动时按缺少卡死证据处理,两台可靠对端沉默不得把它连带断开。补对应多 peer 用例。

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

* docs(device-link): 登记旧版出站目标不参与连接级卡死判定的已知边界

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

---------

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-05 04:38:16 +08:00
Dash
09de409253 feat(remote-desktop): 手机记住桌面分辨率,切换分辨率不重建视频 (#5393)
* feat(remote-desktop): 手机记住桌面分辨率,切换分辨率不重建视频

- 手机按电脑和显示器记住上次选的系统分辨率或「适配此屏幕」尺寸,下次连接在第一帧前恢复;
  选回电脑原分辨率或恢复原始比例时清除记忆。
- 被控端新增可选能力 liveDisplaySwitch:切换显示时请求带 keepVideo,原生画布截屏保留同一条
  视频连接,响应带 videoKept;手机只更新画面布局,不再重新协商视频。回执缺失时按原流程重建。
- 切分辨率不再重复读取模式列表,并在切换的同时预取 ICE 配置。

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

* fix(remote-desktop): 只有截屏页确认原生流仍在时才回报已保留视频

- 切换显示前通知截屏页 display-hold,暂停“5 秒无新帧即停流”,慢的虚拟显示创建(最长约 8 秒)
  不再把视频停掉。
- 切换后 display-swap 改为请求-回复:截屏页确认当前确实是原生截屏且视频轨道仍在才回 true。
  浏览器截屏(未声明鼠标叠加时的 macOS/Windows 默认路径)、流已结束或确认超时都回 false,
  主进程按原流程拆掉重建,手机也跟着重建,不会停在旧显示器上。

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

* test(mobile): 远程桌面分辨率记忆测试改用内存 AsyncStorage

Node >= 25 默认的 webstorage 全局是缺方法的 stub,会顶掉 jsdom 的 localStorage,
新增测试依赖 AsyncStorage 网页 fallback 时在 Node 25 下必挂。按 apps/mobile 惯例
vi.mock 成内存实现,不再依赖运行环境的 localStorage。

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

* fix(mobile): 记住的适配分辨率只在同一窗口尺寸下提前套用

连接前还量不到画面区域,原先只比较横竖方向就复用旧的适配尺寸;折叠屏展开、
分屏或窗口改变尺寸但方向不变时会套用过期的比例。记忆里额外保存适配时的
App 窗口尺寸,只有窗口完全一致才在首帧前套用,否则走首帧后重新测量的路径。

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

* fix(mobile): 记住适配时请求的尺寸,而不是宿主返回的逻辑尺寸

HiDPI 宿主可能用同比例更小的逻辑模式回应 viewerDisplay 请求(带
viewerDisplayRequest 回执)。若把实际尺寸写入记忆,每次重连都会按更小的尺寸
再请求一次,画面越来越小。改为记住请求尺寸,实际尺寸只用于当前画面几何。

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

* fix(mobile): 提前套用记住的分辨率失败时不再中断连接

提前套用是连接前的可选步骤,原先失败就把错误抛给 connect,拆掉整个会话,
绕过了 controlFailure.ts 的分类(控制被抢应降为只看、结果未知应交给下次尝试)。
现在失败时保持当前分辨率继续连接,由首帧后的路径再套用;只有租约已结束
(DESKTOP_LEASE_EXPIRED / DESKTOP_STOPPED),或显示器切换请求本身回复丢失
(几何未知,与手动切换一致)才重建。

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

* fix(mobile): 记住的分辨率切换失败后重建连接,且不再反复重试

显示器切换请求一旦发出,宿主在切换中出错会自行结束租约;此前只把超时和
明确的租约结束当作需要重建,其余错误继续用旧租约连接,随后在 offer/control
阶段失败。现在只有宿主改动前就拒绝的 DESKTOP_VIEW_ONLY / DESKTOP_DISPLAY_BUSY /
DESKTOP_INPUT_BUSY 继续连接,其余一律重建。

提前套用或首帧后套用失败并重建后,本屏不再重试记住的选择,避免持续故障时
新租约反复触发重连。

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

---------

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-04 18:36:26 +08:00
Chris Zhang
efd6431e82 fix(chat): 接通正式聊天端点并续传升级本地群记录 (#5433)
* fix(chat): wire production transport and resume local group upgrades

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

* fix(chat): isolate history failures and restore shared group operations

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

* fix(chat): honor server plan workspaces at session startup

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

---------

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
Co-authored-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-10-04 06:31:15 +08:00
Dash
c4d68f0da7 fix(remote-desktop): 转发 offer 时补回旧版 bitrate,修复连旧被控端只能截图中转 (#5435)
桌面远程桌面窗口的主进程会先用 parseRemoteDesktopRequest 校验 renderer 请求,
解析结果只保留画质档位,丢掉了 remoteDesktopVideoSettingsWire 补上的旧 bitrate。
0.1.96 及更早的被控端只认 bitrate,于是每次 offer 都返回 INVALID_REQUEST,
视频重试用尽后停在服务器截图中转。转发前重新套用 wire 形状,并补测试与协议文档。

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-04 04:37:20 +08:00
Chris Zhang
dec9afcd3b feat(chat): 接入多人伙伴聊天与主人授权设置 (#5429)
* feat(chat): integrate isolated multi-account companion chat

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

* docs(chat): refresh generated design inventory and glossary

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

* fix(chat): retry companion results and refresh group state

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

* fix(chat): resume subscriptions after history reset

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

* fix(i18n): align group chat terminology in Chinese

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

* fix(chat): use existing localized thread mention label

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

* test: provide MCP source in group privacy fixture

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

* test: align bot reply contract with shared thread actions

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

---------

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
Co-authored-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-10-04 00:49:11 +08:00
Lizi
325eeb6750 Merge pull request #5427 from makecindy/dash/task-copy-destination
feat(task-copy): 未选项目时按任务类型复制到对话或新建项目
2026-10-03 22:09:40 +08:00
Dash
905f7ed4bc feat(agent): 支持本机与在线授权设备的历史发现和搜索 (#5415)
* feat(agent): 支持本机与在线授权设备的历史发现和搜索

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

* fix(history): 在远程分页和搜索排名前过滤隐藏任务

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

* fix(history): filter remote scope before KNN candidate limit

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

* fix(history): avoid probing hidden session IDs

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

* fix(history): scope remote references and search diagnostics

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

---------

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-03 21:15:25 +08:00
Dash
bcc5a1b92f perf(remote-desktop): 控制请求走媒体直连数据通道 (#5394)
* feat(remote-desktop): 控制请求走媒体直连数据通道

- 被控端新增可选能力 channelRequests:手机把操作权、隐私屏、主机静音、窗口操作、
  分辨率列表、剪贴板同步等小请求经媒体连接的 input-v1 数据通道发送,回复也从通道返回,
  不再每次绕 relay(实测单次从约 0.6–0.9 秒降到几毫秒到几十毫秒)。
- 电脑主进程对通道请求做与 relay 相同的发送方、lease 与撤权校验;白名单外、并发超限或
  回复过大时回错误码而不结束会话,手机改走 relay。旧电脑未声明能力时手机不发通道请求。
- iOS 原生接收器新增 sendRequest(冷更新);网页播放器同样支持,供非原生路径使用。

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

* fix(remote-desktop): 输入积压时不因控制请求断开,媒体回退时及时结束在途请求

- 截屏页先识别通道请求,再对输入批次做 8 个在途上限;输入积压时切换操作权或静音
  会正常回复,不再触发结束会话。
- 手机在媒体回退或重建视频时立即以结果未知结束经通道发出的请求,不再等 8 秒超时,
  也不经 relay 重发。

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

---------

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-03 19:50:58 +08:00
Dash
90ac8a5fe0 feat(task-copy): 未选项目时按任务类型复制到对话或新建项目
「复制到其他电脑」不再提供含义模糊的「Cindy 默认位置」:对话任务显示「对话」,
副本放进目标电脑的对话工作区;项目任务显示「新建项目」,按源项目相对用户目录的
路径在目标用户目录下新建文件夹(同名加序号,不覆盖),并登记为最近项目。

源端在 manifest 中附带可选 destination,旧目标忽略;旧源端缺省时目标仍放在
task-copies/projects。重试时复用本次复制自己留下的空文件夹。

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-04 00:37:40 +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
b90eaa3e6c fix(mobile): require explicit reselection for closed models
Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-10-03 12:07:39 +08:00
Chris
fc97eaa3ea fix(mobile): send only enabled models and remove catalog paging
Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-10-03 11:44:48 +08:00
Chris
4304a582e3 fix(mobile): load large model catalogs and keep send controls visible
Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-10-03 11:20:40 +08:00
Dash
88e224475a fix(codex): keep goal continuation under Cindy ownership (#5395)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-03 09:26:01 +08:00
Dash
da76c808aa fix(task-copy): 复制传输提速、取消立即生效、恢复进度不闪表单,进度改为“已传输” (#5381)
* perf(device-link): 直连附件上传多块并发、按二进制发送,任务复制进度改为“已传输”

接收端在 file-peer caps 中声明 streamAttachments 后,发送端最多保持 3 个 1 MiB
写入块在途,块内容作为 RPC 二进制正文发送,不再逐块等待确认、也不再经 base64
膨胀。接收端仍按顺序落盘并在 finish 校验大小与 SHA-256;未声明该能力的旧主机
继续走逐块 base64 路径。

任务复制进度文案从“上传进度…(尚未完成接收)”改为“已传输…”。

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

* fix(task-copy): 取消复制立即中止正在发送的文件

此前取消只在文件之间的检查点生效,正在发送的文件(最大 2 GB 一段)要发完才停;
若这段走的是 OSS 中转,取消要等整段上传完,看起来像卡住、结束不了。

取消现在同时中止在途传输:直连上传在下一个 1 MiB 块前停止并通知接收端丢弃已收部分,
不计入直连失败冷却、也不改走 OSS;OSS 上传立即中止 PUT、不换传输栈重试并删除已签发
对象;大文件分段复制也一并停止。

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

* fix(task-copy): 从任务顶部恢复复制进度时直接显示进度,不再先闪出发起复制的表单

顶部状态按钮把已知的复制状态交给弹窗作为初始状态;此前弹窗在第一次轮询返回前把状态当成未开始,先显示目标选择并开始统计文件。

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

* fix(device-link): 慢链路上二进制正文按进度续期,排队中的上传也能立即取消

接收端在 RPC 正文头到达后,每收到一个二进制分片就重置 15 秒停滞计时器,
只有真正停住才断开连接;慢但仍在传的直连不再被固定 15 秒提前切断。

取消信号同时传入每台对端的传输队列:上传若仍排在其他预览或附件传输之后,
取消会让它立即退出队列,不再等无关传输完成。

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

* fix(task-copy): 取消在建链与等待块确认时也立即生效,取消中提示改为“正在取消…”

直连上传的建链改为接收取消信号(中止建链、不计失败冷却);等待中的块请求在取消时
立即返回,迟到的回复忽略,连接保留以便把 cancel 送到目标端清理暂存。

取消中的五语提示去掉“当前文件发送完后停止”;产品规则同步取消语义与“已传输”文案。

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

* fix(device-link): 直连上传在任意阶段取消都立即返回

取消信号覆盖整次上传调用(排队、能力探测、摘要、建链、块传输),调用方立即返回;被放弃的流程在下一个检查点退出,迟到结果被忽略,块阶段仍向目标端发出 cancel。

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

* fix(task-copy): OSS 预签名可被取消,删除中转对象设期限,取消不再等无界网络请求

取消路径上最后两处无界等待:presign-put 改为随取消立即返回(预签名不创建对象,迟到结果无需清理);removeRemote 设 15 秒期限,上传被取消时不等它。复制取消后的清理因此也不会被无响应的 relay 卡住。

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

* fix(task-copy): 取消后先释放源文件再返回,不再让调用方抢在清理前退出

撤回上一轮包住整次直连上传的外层竞速:它让调用方先返回、被放弃的上传仍在后台持有源文件,Windows 上随后删除暂存目录会失败。改为只给唯一缺少检查点的能力探测接入取消,其余等待本就响应取消;调用在 finally 关闭源文件之后才结束。OSS 流式上传被取消时同样等源文件流关闭后再返回。

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

* fix(device-link): 取消后迟到的 begin 回复仍释放目标端 ticket

begin 已送达但回复晚于取消时,前台照常立即返回;迟到回复带回的 ticket 随即补发 cancel,目标端不再残留占用磁盘预算与条目上限的空暂存。

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

* fix(device-link): OSS 换栈重试后取消,等所有源文件流关闭再返回

传输栈重试会为同一文件再开一个读流;取消时等待本次上传打开过的全部读流关闭,而不只是最后一个。

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

* fix(device-link): 慢链路上排队块按进度续期,小文件预读可被取消

发送端:带正文的块请求在同一通道上有回复(即传输有进展)时重新计时,排在窗口
后面的块不再把前面块的传输时间算进自己的期限;慢但仍在传的直连不会被切断,
与接收端的停滞计时器对称。

OSS 小文件路径:整文件预读接入取消信号,取消时停止读取,并等读流关闭后再返回。

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

* revert(device-link): 撤回发送端排队块按回复续期,极慢链路改为范围声明

上一轮在 runtime 内按回复重置块请求期限,但 Desktop main 的命令计时器仍是固定
45 秒、先于它触发,该机制在桌面端没有实际效果、只增加复杂度。撤回到固定期限;
新路径对慢链路的容忍度(约 70 KB/s)已优于原逐块路径(约 93 KB/s),更慢的链路
照旧回退 OSS,写入 PR 范围说明。

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

* fix(device-link): RPC 二进制正文只接受发送端的 16 KiB 分帧

正文分片必须恰为 min(16384, 剩余字节),与 files-v2 接收路径一致;对端无法把 1 MiB 正文拆成大量极小帧耗尽 capture renderer 的 CPU 与内存。

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

* fix(device-link): 建链信令请求不阻塞取消;补多 peer 故障半径用例

取消发生在直连建链的 offer 信令等待期间时,不再等该 RPC(最长约 30 秒)返回,迟到结果忽略;只中止本 peer 正在建立的连接。新增用例:取消对 peer A 的建链,peer B 已建连接上的在途传输照常完成且未被关闭。

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

---------

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-02 21:27:48 +08:00
Chris Zhang
faeedf0dc7 refactor(agent): 统一能力声明与权限,伙伴默认继承全部可用工具 (#5382)
* feat(session): unify session control across client entry points

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

* revert: replace draft session controller with shared agent capabilities

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

* refactor(agent): share declared capabilities and permissions with companions

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

* fix(agent): preserve companion selections and archived tool calls

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

* fix(bot): migrate every legacy tool list to shared capabilities

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

* test(bot): align capability and remote discovery expectations

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

* test: align companion capability fixtures with shared tools

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

* fix(bot): preserve inherited selections and report actual Pi tools

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

---------

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
Co-authored-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-10-02 20:40:49 +08:00
Dash
caf72d8763 feat(remote-desktop): 画质改为自动/省流/高清三档并修复静止画面模糊 (#5384)
* feat(remote-desktop): 画质改为自动/省流/高清三档,协议改传档位

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

* fix(remote-desktop): 画质与帧率改用分段控件,SDP 码率提示不依赖属性顺序

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

* fix(device-link): 省流档向旧被控端发送时帧率同步钳到 30

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

---------

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-02 19:50:48 +08:00
Chris Zhang
e90b4020ca fix(pi): adapt model refresh to official Pi APIs (#5378)
* fix(pi): adapt model refresh to official Pi APIs

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

* fix(pi): verify inherited model windows before switching

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

* test(pi): support native settings inspection in dispatch fixture

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

---------

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
Co-authored-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-10-02 17:12:02 +08:00
Dash
5d844b411d fix(task-copy): 项目内链接链与断开链接照常复制,个别问题条目跳过并在完成时列出 (#5373)
* fix(task-copy): 项目内链接链与断开链接照常复制,个别问题条目跳过并在完成时列出

- 源端打包时按文件系统语义逐跳解析链接,只跳过最终指向目录外 / .git、
  名称不可移植、仅大小写冲突的条目以及套接字、管道等特殊文件,不再让整次复制失败
- 跳过的条目随复制记录保存,成功页逐条列出路径与原因,原任务顶部状态显示未复制数量
- 目标端解包时最后按清单创建链接,避免 tar 因链接链顺序拒绝解包;并按源端权限恢复
  文件与目录模式,不受本机 umask 收窄
- 同步产品规则与协议兼容文档

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

* fix(task-copy): 跳过判定自上而下,被跳过目录的内容不再参与冲突与链接判断

- 按目录深度先判定父目录;被跳过目录下的条目不计入大小写冲突、不参与链接解析,
  其中的特殊文件也不再单独列出
- 链接解析按不区分大小写、NFC 归一化比对,避免大小写变体在不区分大小写的目标上穿过链接越界
- 文档登记已知边界:被跳过子树仍计入估算与暂存空间核算

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

---------

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-02 14:19:02 +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
DavidShenXD
c34187fa67 Merge pull request #5330 from makecindy/cindy/steady-hodgkin
feat(desktop): 新增全界面 Cindy 壁纸、自定义图片及动静切换
2026-10-02 13:16:44 +08:00
DavidShen
16498dfb27 refactor(desktop): make wallpaper lifecycle client-owned
Signed-off-by: DavidShen <david@xd.com>
2026-10-02 10:46:30 +08:00
Chris Zhang
1bde0037e4 feat(mobile): 接入插件页面与原生交互 (#5359)
* feat(mobile): integrate plugin pages and native interactions

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

* fix(mobile): register plugin UI in design inventory

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

* fix(mobile): preserve plugin receipts and page lifecycle

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

* fix(mobile): align Traditional Chinese plugin terminology

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

* test(plugins): run mobile-host interop in Node environment

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

* fix(mobile): guard plugin navigation and align integration regressions

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

* test(mobile): isolate plugin polling in drawer lifecycle fixture

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

---------

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
Co-authored-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-10-02 06:26:26 +08:00
DavidShen
f8fcb65283 chore: sync main and resolve Pi test timeout conflict
Signed-off-by: DavidShen <david@xd.com>
2026-10-02 00:28:09 +08:00
Dash
57d30d85da fix(task-copy): 复制失败可诊断,打包不再被 git status 误判为目录变化 (#5331)
* fix(task-copy): 复制失败可诊断,打包不再被 git status 误判为目录变化

- 源端后台复制失败时写入日志(错误码、原始报错、git stderr),此前只存错误码且不打日志
- 关闭失败弹窗触发的取消保留错误码,不再把唯一线索清空
- 打包结束时按 HEAD、分支与暂存区内容判定变化,不再比对 .git/index 原始字节;
  其它任务的 git status 刷新 index 缓存不会再让复制以 MIGRATION_WORKSPACE_CHANGED 失败
- 通用失败提示附错误码,并为 6 个常见错误码补充五语文案

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

* test(task-copy): 用真实五语资源验证失败提示附错误码

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

* fix(task-copy): 打包被文件名拦下时记录并显示出问题的项目路径

- 文件名不可移植、仅大小写不同或链接越界时,错误带上项目内相对路径
- 源端日志与复制记录保存该路径,状态新增可选 errorPath(旧端忽略)
- 失败弹窗在原因下方显示「问题文件」,五语文案
- 同步产品规则与协议兼容登记

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

* fix(task-copy): 统计文件失败时显示源端给出的真实原因

源端以明确原因拒绝统计(如 MIGRATION_TASK_QUEUED)时,此前一律提示「检查连接和版本」。
现在先用错误码的专门文案;没有专门文案时仍提示连接/版本并附错误码;MIGRATION_FAILED 维持原提示。

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

* fix(task-copy): 快照收尾校验同样按暂存内容判定,回收保持字节比对

captureWorktreeContent 新增 stagedContentOnly 选项,跨电脑复制使用它,
快照期间其它任务的 git status 不再让复制失败;真实的 HEAD/暂存变化抛
WorktreeChangedDuringSnapshotError,打包环节映射为 MIGRATION_WORKSPACE_CHANGED。
worktree 回收仍用默认的 index 字节比对。

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

* fix(task-copy): 大历史任务也能复制,内存超限时说明需要多少、上限多少

- 目标声明 externalTranscripts 时,32 MiB 以上的原生会话记录(Codex rollout、
  Claude、Pi,含 Worker)不进内存里的任务包:导出时边读边算哈希流式暂存,经
  files.transcripts 单独分段发送,目标按字节切行、只改写含会话 ID 的行,临时
  文件 + rename 原子落位,不再受内存与 V8 字符串上限限制。能力在每次准备时询问,
  旧目标仍随包携带。
- 新增 MigrationSizeError:超限时日志记录需要量、上限与预算各组成;状态下发可选
  errorSize,弹窗显示「需要约 X,上限约 Y」;MIGRATION_NO_MEMORY 文案不再让用户
  释放内存。只因旧版目标需随包携带而超限时提示更新两台电脑。
- 目标端 preflight / receive 失败写入带原始报错的日志。
- 写暂存副本失败(如磁盘满)直接报错,不再误降级为上下文不完整。

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

* fix(task-copy): only suggest updating when externalized transcripts would fit

Count only transcripts at or above the externalization threshold when
deciding whether an older target alone caused the oversize; otherwise
report MIGRATION_NO_MEMORY with the sizes.

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

* fix(task-copy): stop before uploading more transcripts than the target accepts

The target rejects files.transcripts beyond TASK_MIGRATION_MAX_TRANSCRIPTS,
so check the count while preparing and report MIGRATION_NO_MEMORY instead
of uploading gigabytes that every retry would resend.

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

* fix(task-copy): withdraw a migrated transcript published after losing ownership

Revalidate after the atomic rename and remove the target if the import
stopped being current, since the caller throws before journaling it.
Document that streamed transcripts still hold their longest line in memory.

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

---------

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-01 21:34:55 +08:00
DavidShen
e79d00127c Merge origin/main into cindy/steady-hodgkin
Signed-off-by: DavidShen <david@xd.com>
2026-10-01 20:07:59 +08:00
DavidShen
4c934b3f71 feat(desktop): bundle official HD wallpaper videos for offline playback
Signed-off-by: DavidShen <david@xd.com>
2026-10-01 20:05:07 +08:00
DavidShen
6bfe96967a feat(desktop): bundle HD wallpaper stills and cache optional CDN videos
Signed-off-by: DavidShen <david@xd.com>
2026-10-01 19:53:37 +08:00
Chris Zhang
44f78204d5 fix(desktop): unify ordinary session opening and plugin model controls (#5333)
* fix(desktop): unify ordinary session creation for plugins and teammates

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

* fix(desktop): preserve accepted plugin route across model changes

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

* fix(desktop): preserve pending task selections and optional effort

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

* test(desktop): align plugin authority fixtures with shared preferences

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

---------

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
Co-authored-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-10-01 19:40:55 +08:00
DavidShenXD
d984b60934 fix(media): 修复桌面与手机之间的截图交付 (#5327)
* fix(media): make screenshot delivery reliable across desktop and mobile

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

* fix(media): address image handoff review findings

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

* test(media): align existing fixtures with image handoff

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

* test(pi): control snapshot warning cache expiry

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

* fix(mobile): scope Markdown gallery prefetch to workdir

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

---------

Signed-off-by: DavidShen <david@xd.com>
2026-10-01 17:25:37 +08:00
Lizi
1cd7caa42c Merge pull request #5136 from makecindy/dash/plugin-delegated-auto
fix(plugins): 传递宿主核验的委派 Auto 授权上下文
2026-10-01 17:23:01 +08:00
DavidShenXD
504f7bd37d fix(desktop): 支持在被控端执行远控 Review (#5329)
* fix(desktop): run remote reviews on the controlled device

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

* fix(desktop): preserve remote Review attachment and device boundaries

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

* fix(desktop): reject sensitive Review attachments before upload

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

* fix(desktop): recheck remote source visibility before Review launch

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

* fix(desktop): release Review upload staging after acceptance

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

---------

Signed-off-by: DavidShen <david@xd.com>
2026-10-01 16:45:51 +08:00
Dash
337aaac66b fix(skills): 将预装和插件技能迁入 Cindy 私有目录 (#5318)
* fix(skills): 在 Cindy 私有目录加载预装和插件技能并迁移旧链接

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

* fix(skills): 补齐独立 Codex 账号技能入口并更新插件手册

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

* fix(skills): load verified sources and freeze authorized skill paths

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

* fix(pi): aggregate managed skills without expanding startup argv

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

* fix(skills): refresh reused Codex threads and clean Pi projection failures

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

* fix(skills): reject incomplete managed Codex projections

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

* fix(skills): 避免重复投影并修复跨平台测试依赖

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

* test(skills): 隔离认证测试的技能发现冷加载

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

* test(skills): avoid competing cleanup and normalize Windows paths

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

* docs(skills): align help and contracts with private discovery

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

* fix(skills): contain Pi managed discovery in startup rollback

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

* fix(skills): enforce frozen Bot grants on refreshed Codex catalog

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

---------

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-01 15:15:56 +08:00
Dash
e7660fda1d fix(task-copy): 复制进行中可取消或转后台,进度条改用统一样式 (#5324)
* fix(task-copy): 复制进行中可取消或转后台,进度条改用统一样式

- 复制中提供「取消复制」与「后台继续」,Esc 关闭不再被吞;关闭后仍可在原任务顶部查看进度
- 源端支持取消运行中的复制:目标开始接收前在既有检查点中止,清理暂存与已上传文件并标记为已取消;目标开始接收后拒绝取消
- 状态新增 cancellable / cancelling,旧版源端不显示取消按钮
- 先记录已上传对象再检查取消,避免取消瞬间上传完成的对象漏删
- 原生 progress 改为语义 token 的细进度条,未知进度时配合共用 Spinner

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

* docs(task-copy): 记录复制中可后台继续与运行中取消的口径

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

* fix(task-copy): 重试中的复制在回执确认目标未接收前不可取消

上次 receive 回包丢失后重试时,目标端可能正在接收或已提交。
运行中复制从 transferring 恢复时默认不可取消,transfer 先锁住取消,
只有 receipt 确认目标没有这次复制的接收记录后才放开。

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

---------

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-01 14:34:43 +08:00
Lizi
268fc273f3 Merge pull request #5312 from makecindy/dash/migration-estimate-timeout
fix(task-copy): 统计跳过托管 worktree,超时单独提示并加文件数上限
2026-10-01 12:48:25 +08:00
Lizi
11f87d810e Merge pull request #5134 from makecindy/dash/plugin-task-runtime
feat(plugins): 复用普通任务与协同生命周期接口
2026-10-01 12:41:06 +08:00
Lizi
27483d9e31 Merge pull request #5316 from makecindy/dash/orca-team-activity
fix(desktop): 协同任务团队收口前保持主任务运行中
2026-10-01 11:46:04 +08:00
Dash
9127feef4b merge: sync parent Plan and Memory permission fixes
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-01 15:58:52 +13:00
Dash
63319e8337 fix(plugins): guard memory access and Plan permission commits
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-01 15:50:43 +13:00
Dash
194e70af3a fix(desktop): 完成通知改读 Main 的团队收口判定
renderer 不再自行从 Worker 投影推算团队是否在跑:投影只在侧栏持有时刷新,
伙伴页等场景下会读到空或过期快照,回报投递被拒时也看不到 Main 仍保留的
待回报记录。完成去抖落地时改读灵动岛活动快照,Main 仍把会话保持为 running
就不算完成;暂停的输入队列保留原有完成提醒。

文档补记两条刻意不处理的已知边界:尚在忙碌 Worker 队列中的派活、静默完成。

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-01 15:31:17 +13:00
Dash
48a8c4c0eb chore: merge main and regenerate design inventory
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-01 15:21:12 +13:00
Dash
5ce0db8593 chore: merge main and regenerate design inventory
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-01 15:21:11 +13:00
Dash
8013b27c1d fix(plugins): sync permission commits and bound native Auto contract
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-01 15:14:57 +13:00
Dash
59af390ce9 fix(plugins): serialize complete task permission changes
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-01 15:09:46 +13:00
Dash
d8c75ccacd fix(device-link): 同一物理设备的共享任务共用并发配额
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-01 15:09:24 +13:00
Dash
00ba707375 fix(device-link): 出队发送前复验取消与归属检查
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-01 15:09:24 +13:00
Dash
77212085d1 fix(device-link): 避免后台配额阻塞任务首拉与恢复探测
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-01 15:09:24 +13:00
Dash
0c98ad0cb8 perf(device-link): 将远程调用并发调整为 12/4
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-01 15:09:23 +13:00
Dash
c10f6d2d14 fix(device-link): 限制远程请求并发并区分繁忙错误
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-01 15:09:23 +13:00