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 |
|
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 |
|
Lizi
|
c714f290f4
|
chore(device-link): 远程文件直传加每秒网络与进度诊断日志 (#5284)
* chore(device-link): 远程文件直传加每秒网络与进度诊断日志
手机在 5G 下经 TURN 中转打开 1.79MB HTML 时,37 秒只收到 1.5MB,
现有日志分不清是中转链路慢、UDP 丢包,还是手机端写盘慢。
- 共享直传运行时:stats() 在原有 path/protocol/rttMs/streaming 之外,
补充候选类型与中转协议、候选对计数、选中候选对/transport 的字节与包计数、
带宽估计、data channel bufferedAmount,以及应用层进度(接收端到达/写入
字节、桥接写盘耗时、空闲时长;发送端读取次数与等待额度时间)。只有计数
与候选类型,不含地址、端口、URL 与内容。
- Desktop:发送开始记一次 stats;超过 1 秒的收发每秒采样一次,EOF 后继续
采样到发送缓冲清空(最多 30 秒)。诊断探针不续期空闲超时、超时也不关闭
连接,统计失败不再让已连上的直传回退。
- Mobile:接收期间每秒采样(仅 Debug 日志开启时),结果附在成功/失败日志;
预览页记录源码读取的通道、耗时与大小。
- 冒烟脚本校验新增字段与"不含地址"约束;文档同步诊断口径。
Signed-off-by: Lizi <jiali@magiclizi.com>
* chore(device-link): 诊断里区分中转地址与中转线路的 UDP/TCP/TLS
ICE 配置诊断按客户端到中转服务器的传输方式分别计数 TURN 地址
(UDP / TCP / TLS),直传 stats 增加收集到的中转候选按传输方式计数。
只记数量,不含主机名与凭证。用于确认线上是否下发了 TCP 中转、
手机在当前网络下能否拿到 TCP 中转线路。
Signed-off-by: Lizi <jiali@magiclizi.com>
* fix(device-link): 按 review 意见修正文件直传诊断采样与计数
- stats 探针单次失败只跳过该样本,传输期间继续采样(发送/接收两侧)
- 探针独立计时:传输读写块不再刷新其 5s 超时,避免卡死后跳过后续全部采样
- bufferedAmount 属整条数据通道:同连接下一个传输开始时接管排空统计
- 零字节 EOF 块正常出队,成功接收后 stats.receive.queued 归零
- Mobile 迟到的 stats 回包不再写出晚于结果的进度日志
- 文本预览读日志区分 gzip base64 与纯文本字符数;失败读取补耗时/失败日志
- 同步 filePeerRuntimeSource 生成产物、smoke 断言(完成态 queued 期望 0)与诊断文档
验证:desktop/device-link/mobile 单测全绿,desktop/mobile typecheck,
file-peer-runtime --check,file-peer-smoke(Chrome 实测 1 MiB 后 queued:0),
check:dev-docs。
Signed-off-by: MagicLizi <jiali@magiclizi.com>
* fix(mobile): 预览读失败日志走 errorText 脱敏
错误串可能携带请求路径或签名 URL(如 file-browser-core 的
"binary file: ${relPath}"),截断不等于脱敏;改为与相邻 files 诊断一致
走 fileDiagnostics.errorText()(清 URL/路径并限长)。
Signed-off-by: MagicLizi <jiali@magiclizi.com>
* fix(mobile): 直传统计探针改用独立短预算
runtime.stats() 卡死时,通用 command() 的 15s 超时会一直占住 sampling
标志,后续每秒采样全部被跳过;若传输在 15s 内结束,既无进度日志、
lastProgress 也为空。改为独立 5s 预算:卡死只作废当个样本(迟到回包
一并丢弃),下一拍即恢复采样,与 Desktop 探针同口径。
Signed-off-by: MagicLizi <jiali@magiclizi.com>
---------
Signed-off-by: Lizi <jiali@magiclizi.com>
Signed-off-by: MagicLizi <jiali@magiclizi.com>
|
2026-09-30 23:30:34 +08:00 |
|
Dash
|
5ae2936548
|
feat(device-link): 加速跨端文件、附件与远程读取 (#5086)
* feat(device-link): 加速跨端文件与附件传输并提供自动验收
Signed-off-by: Dash <dash@DashdeMac-Studio.local>
* test(device-link): 补齐 IPC 与 WebView 生命周期验收
Signed-off-by: Dash <dash@DashdeMac-Studio.local>
* fix(device-link): 隔离读取失败并修复附件过期与重试路径
Signed-off-by: Dash <dash@DashdeMac-Studio.local>
---------
Signed-off-by: Dash <dash@DashdeMac-Studio.local>
Co-authored-by: Dash <dash@DashdeMac-Studio.local>
|
2026-09-25 22:52: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
|
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
|
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
|
1b6103eedf
|
feat(remote-desktop): 支持动态 ICE 配置与自营 TURN 恢复 (#4194)
* feat(remote-desktop): 支持动态 ICE 配置与自营 TURN 恢复
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
* fix(remote-desktop): bypass ICE cache and verify shared-link isolation
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
---------
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
|
2026-09-09 22:05:00 +08:00 |
|