Commit Graph

325 Commits

Author SHA1 Message Date
DavidShenXD
ed15f06646 perf(desktop): 壁纸资源改为按需下载并跨升级复用缓存 (#6099)
* perf(desktop): 壁纸资源改为按需下载并跨升级复用缓存

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

* ci: retrigger CodeQL after upstream action download failure

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

---------

Signed-off-by: DavidShen <david@xd.com>
2026-10-15 16:08:59 +08:00
Dash
f2d51c62de feat(bots): 云端伙伴:同一个伙伴、主力电脑与换电脑继续 (#5899)
* docs(bots): 云端伙伴产品规则:同一伙伴、主力电脑与切换

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

* feat(bots): 云端伙伴:登记主力电脑、上传资料、同步对话层

- 服务器 /me 声明 companionHome 且登录带设备标识时启用;旧服务器保持原状
- register() 为主力电脑为空的伙伴登记本机(CAS,冲突时采用服务器结果),
  执行领取跳过主力电脑在别处的伙伴,actor.changed 立即重新读取
- 主力电脑上传资料、记忆与自有技能为伙伴偏好(按哈希比对、null 墓碑、版本冲突重试一次)
- 主力电脑把主任务的可见对话导入 1:1 房间(游标续传、首次只补最近 200 条)
- 1:1 房间的执行投递进伙伴主任务后无内容完成,回复经对话导入回到房间
- 账号隔离的同步状态文件;渲染层可读 maker:companion-cloud:state 并订阅变化

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

* feat(mobile): 云端伙伴:主力电脑离线时查看对话并换电脑继续

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

* feat(bots): 云端伙伴:在这台电脑继续、隐藏旧副本、交给另一台电脑

- 接管:以当前主力电脑做比较改到本机,按云端资料、记忆与技能建立或更新本机伙伴,
  导入房间最近 200 条对话为本机历史,并像「重启伙伴」一样从历史重建上下文(忙时延后)
- 主力电脑转到本机且本机副本已降级或从未运行过时自动接管;主力电脑在别处的本机副本
  标记降级:快照给出 demotedBotIds 供界面隐藏,例行任务跳过,不再上传与同步
- 交出:先完成一次上传与对话同步,再以本机做比较改到目标电脑(目标须为在线、
  允许远程控制的桌面电脑),随后本机降级
- 新增 IPC:take-over / transfer / transcript / devices,状态快照带主力电脑名称与在线状态

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

* feat(bots): 云端伙伴:桌面端主力电脑界面、离线接管与删除停用

- 伙伴列表、主入口与 Cindy 多设备合并隐藏已降级的本机副本;从未在本机见过的主力电脑上的伙伴
  也以离线行出现,侧栏状态写「主力电脑离线」
- 远程伙伴的主力电脑离线时显示云端对话(只读、可加载更早消息)与「在这台电脑继续」,
  成功后打开本机伙伴,已被别的电脑接手时转到那台电脑
- 本机伙伴设置新增「主力电脑」行:选择另一台在线电脑并确认后交出;远程伙伴设置只读显示主力电脑
- 远程资源 teammates 与本机 list_agents 不再列出已降级副本;在主力电脑上删除伙伴时停用云端 actor,
  停用的 actor 不再出现在快照或登记中
- 共同基座补充:可经协同在开放远程控制的其他电脑上干活
- 五种语言文案;「主力电脑」登记为待讨论术语;规则文档补索引与已实现差异

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

* test(bots): 云端伙伴:真实 chat-server 两台电脑端到端验证,并修复接管与历史去重

- 新增可选的 twoDevices 端到端测试(需 CINDY_CHAT_HARNESS_URL),两台电脑各自状态文件与本机替身,
  覆盖登记、资料上传与墓碑、对话导入、按主力电脑领取与投递、接管、冲突降级、交出、删除停用
- 修复:缓存显示本机已是主力电脑时接管跳过比较写入,离线期间被别的电脑接走后会两台同时运行;
  现在总以缓存的主力电脑做 CAS
- 修复:房间消息投递进主任务后再被接管导入为历史,出现重复;投递 clientId 改为
  chat-direct:<执行>:<消息>,导入时据此跳过,并不再限定本机行的时间上界
- 房间投递逻辑提取为 companion-cloud/directRoom.ts,chatServer 复用;运行时可关闭启动即同步

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

* fix(bots): 云端伙伴:按评审修复降级、接管、上传与对话导入的缺陷

- 只有主力电脑上未降级的副本、且主力电脑登记后,才同步名字与头像
- 降级名单持久化(账号隔离),离线、功能关闭时仍隐藏并跳过例行任务;降级副本主任务只读并显示横幅,
  主进程拒绝向其发送
- 接管的本机写入绑定发起账号,切换即中止;头像下载 15 秒超时、随账号结束取消
- 对话导入只上传主人亲手输入的消息;回扫最近 10 分钟补晚落库回复,导入的历史不推进游标;
  回退或删除的消息接管时不再插回
- 交出前经 device-link 只读通道 maker:companion-cloud:caps 探测目标是否支持
- 首次接管未同步过的本机副本先备份伙伴目录;墓碑只删本机上次有且未改的文件;上传只给本机自己有过的键写墓碑
- 上传冲突先确认仍是主力电脑再按服务器值最多重写一次;记忆目录仅 ENOENT 视为空;首轮每次最多 30 条
- 自动接管先做本机→本机比较确认;1:1 房间投递只认伙伴自己的房间
- 同机多安装:安装 ID 与伙伴偏好 companion.install.v1,非所属安装视为降级
- 删除停用失败时持久记下并逐轮重试;文档补齐行为与已知限制

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

* chore(design): 登记手机云端伙伴离线页的设计清单条目

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

* fix(bots): 云端伙伴:接管完整前不运行,交出前全量上传,列表每个伙伴只列一行

- 接管期间本机副本保持降级,资料、记忆、技能全部写入成功才解除;部分失败保留已写入部分并由自动接管重试
- 安装记录带设备标识:来自另一台电脑的记录视为刚交过来,已有未同步副本也自动接管;安装归属未确认前不领取执行
- 降级副本主任务的内部发送通路同样拒绝
- 交出前上传要求全部值成功,超过上限的值阻止交出
- 只发附件的消息以占位同步
- 桌面与手机伙伴列表按主力电脑只列一行,手机为没见过的主力电脑补离线入口;手机过滤已停用的伙伴
- 手机换电脑等待只认等待期间从目标电脑读到的行

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

* fix(bots): 云端伙伴:接管时恢复云端头像,主力电脑未登记前不领取执行

- 接管对已有副本也写入云端头像;头像下载失败时接管失败并保持降级,避免新主力电脑把旧头像回写覆盖云端
- 开启主力电脑功能后,主力电脑尚未登记成功的伙伴不领取执行,之后每轮登记重试

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

* fix(bots): 云端伙伴:接管只备份一次、云端无头像时用默认头像、交出前上传到无新变化

- 未同步副本只在首次接管前备份一次,头像暂不可用导致的接管重试不再重复备份
- 云端没有头像时,接管后的本机头像改为新建伙伴的默认头像,不再保留旧头像回写云端
- 交出伙伴前重复上传直到一轮没有新变化再改主力电脑,持续变化时不交出

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

* fix(bots): 云端伙伴:没有云端资料快照时不接管,手机列表跟上换电脑

- 云端还没有主力电脑上传的资料快照时,接管保持降级并重试,不把这台电脑的旧资料当成伙伴身份发布
- 手机伙伴列表在列出的行变化与下拉刷新时重新读取主力电脑

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

* fix(bots): 云端伙伴:交出前导完积压对话,手机列表在行内容变化时也刷新主力电脑

- 交出前对话镜像不受每轮 10 页上限,积压对话全部进房间后才改主力电脑
- 手机伙伴列表以「行 + 内容版本」判断变化,已缓存的行被新主力电脑重新列出时也重新读取主力电脑

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

* fix(bots): 云端伙伴:接管以云端为准删除墓碑文件,镜像游标从本机最后一条自有消息开始

- 接管已有本机副本前每次都先备份一次;云端墓碑删除本机同名文件,接管后上传不再把已删除内容带回云端
- 接管后的镜像游标直接查询本机最新一条非导入历史的消息,不再受 50 行窗口限制

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

* fix(bots): 云端伙伴:没有资料快照时不改主力电脑,名字头像只由确认的安装发布

- 「在这台电脑继续」与手机「换一台电脑继续」先检查云端资料快照,没有就失败、不改主力电脑
- 手机请求支持以伙伴身份读取(X-Chat-Actor),fetch 额外请求头不覆盖鉴权与内容类型
- 名字与头像只由本安装已确认运行该伙伴的主力电脑发布,与领取执行同一判据

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

* fix(bots): 云端伙伴:自动接管不抢同机另一安装,技能按原文同步,丢弃过期的状态推送

- 自动接管只替换来自其他电脑的安装记录,同一电脑另一安装已认领时不覆盖;手动接管不变
- 技能按 SKILL.md 原文上传与恢复,保留原生 frontmatter;删除不再使用的按字段保存入口
- 主力电脑状态推送在设备查询返回后核对仍是最新快照,过期的不再推送

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

* fix(bots): 云端伙伴:上下文重建完成后才解除接管降级

- 接管在仍降级时完成上下文重建;重建失败保持降级,由自动接管重试;伙伴正忙时照旧延后重建

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

* fix(bots): 云端伙伴:伙伴忙时接管保持降级到重建完成,房间消息按保存的权限档唤醒

- 接管遇到伙伴还有一轮在跑时保持降级,由自动接管重试到上下文重建完成后才解除
- 云端房间投递进主任务时,冷启动按任务保存的权限档唤醒,不再使用后台默认的完全访问

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

* fix(bots): 云端伙伴:停用伙伴带主力电脑比较,备份只在目录不存在时跳过

- 删除伙伴时的云端停用请求带「主力电脑仍是本机」的比较,期间已被别的电脑接走就只删本机副本
- 接管前备份只在伙伴目录不存在时跳过,其他读取错误中止接管并保留下次备份的机会

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

* fix(bots): 云端伙伴:同步读本机资料、技能、记忆时只把「不存在」当作空

- 上传前读 SOUL / USER / 自定义提示词与技能改用严格读取:读不到(权限、I/O 错误)就中止本轮,不上传空值也不写墓碑
- 接管时读本机记忆只有文件不存在才算没有,其他错误保持降级重试
- 设置页等原有读取路径保持宽松行为不变

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

* fix(bots): 云端伙伴:交出前先导入积压对话再上传资料,并写明首次同步范围

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

* fix(bots): 云端伙伴:停用后隐藏其他电脑副本、只由认领安装停用、只认完整资料快照、刷新不覆盖更新推送

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

* fix(bots): 云端伙伴:降级名单写盘失败时之后重试,不当作已保存

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

* fix(bots): 云端伙伴:接管时先发布降级再写本机,云端历史按消息 ID 去重

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

* fix(bots): 云端伙伴:交出期间暂停后台同步,主力电脑被接走后清掉待停用

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

* docs(bots): 云端伙伴:写明状态文件丢失后本机删除不再同步到云端

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

* test(bots): Windows 上跳过依赖 chmod 的「读不到文件」用例

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

* fix(bots): 云端伙伴头像改用共用的防内网公网图片下载,并写明降级名单损坏的边界

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

* fix(bots): 云端伙伴:状态文件写入失败时本次运行的状态照常生效,下次更新补写

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

* fix(bots): 云端伙伴:本安装确认认领后才停用,刚交过来的先认领

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

* fix(bots): 云端伙伴状态与操作先完成账号切换再读取,写明在线被接走时的末轮上传边界

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

* fix(bots): 云端伙伴:认领前先降级本机副本,交出前同步名字与头像

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

* docs(bots): 云端伙伴:写明安装记录未读到时不隐藏本机副本

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

* docs(bots): 云端伙伴:写明接管时本机独有的记忆与技能保留并合入伙伴

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

* fix(bots): 云端伙伴:首次同步不覆盖云端较新的值,交出只同步该伙伴的名字与头像

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

* docs(bots): 云端伙伴:写明尾部回扫的 200 行上限

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

* fix(bots): 云端伙伴:过程旁白与子 Agent 输出不导入 1:1 房间

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

* fix(bots): 云端伙伴:伙伴还有一轮在运行时不交出

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

* fix(bots): 云端伙伴:交出前检查伙伴所有任务(含群专线、委派)都已空闲

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

* docs(bots): 云端伙伴:写明被接走时在途的对话导入可能迟到

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

* fix(bots): 云端伙伴:接管恢复技能停用状态、先降级再确认主力电脑、交出后不再投递房间消息、旧副本不开设置

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

* fix(bots): 云端伙伴:已暂停的伙伴提示先恢复再换电脑

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

* fix(bots): 设置抽屉注释避开设计契约的阴影检查

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

* fix(bots): 云端伙伴:删除伙伴时先发起云端停用,本地清理失败不再跳过

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

* docs(bots): 云端伙伴:写明接管时原电脑正在运行的一轮会跑完

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

* fix(bots): 云端伙伴:发送拦截与删除前先完成账号切换,房间消息只在允许同账号控制时投递

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

* fix(bots): 云端伙伴:Claude 子 Agent(parentUuid)输出不导入 1:1 房间

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

* fix(bots): 云端伙伴:主力电脑与降级名单按当前账号隔离,切换账号后立即生效

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

---------

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-15 09:29:11 +08:00
Arthur
37385a2b1a fix(browser): keep agent-read pages in background (#5834)
* fix(browser): keep agent-read pages in background

Signed-off-by: Arthur <266606080+arthur-tech-learn@users.noreply.github.com>

* fix(browser): cover background tab edge cases

Signed-off-by: Arthur <266606080+arthur-tech-learn@users.noreply.github.com>

* fix(browser): preserve navigation policy for background targets

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

---------

Signed-off-by: Arthur <266606080+arthur-tech-learn@users.noreply.github.com>
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
Co-authored-by: Arthur <266606080+arthur-tech-learn@users.noreply.github.com>
Co-authored-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-12 21:27:51 +08:00
ganlingyao
d826f05738 feat(headless): 新增容器化 Benchmark CLI 与 Linux 打包流程 (#4750)
* feat(headless): add container benchmark runtime and Linux packaging

Signed-off-by: ganlingyao <145326144+ganlingyao@users.noreply.github.com>

* fix(headless): preserve continuations and validate report and bundle inputs

Signed-off-by: ganlingyao <145326144+ganlingyao@users.noreply.github.com>

---------

Signed-off-by: ganlingyao <145326144+ganlingyao@users.noreply.github.com>
2026-10-12 20:23:41 +08:00
Lizi
47da2a9c98 Merge pull request #5818 from kirozeng/feat/mobile-user-bubble-color
feat(mobile): 新增「我的消息气泡颜色」设置
2026-10-12 11:43:36 +08:00
Dash
a9a1ebc1a2 fix(dev): 新 worktree 装完依赖即可用,开发版启动失败能看到原因 (#5815)
* fix(dev): 新 worktree 装完依赖即可用,开发版启动失败能看到原因

- postinstall 末尾复核 Electron dist,缺失时补装:pnpm side-effects cache
  记下「electron 已构建但无产物」后,同机新 worktree 都会跳过 Electron
  自己的 postinstall
- workspace 测试开跑前只读检查依赖与 Electron,未就绪直接给出处置命令
- macOS 无 TTY 启动时用 script(1) 把 dev 终端输出写入
  apps/desktop/logs/dev-terminal.log,失败时打印日志末尾并在 verdict 带 log=
- USERDATA_IN_USE 给出改用本 worktree 沙箱的 next
- 进程归属按最深 worktree 判定,主 checkout restart 不再误杀
  .cindy-worktrees 下的实例
- 同步环境准备、Desktop 启动与 worktree 会话文档

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

* fix(dev): 收紧依赖预检范围,终端日志限长并覆盖所有失败结论

- 依赖预检只在选中 Desktop 时检查 Electron,并把缺失的
  node_modules/electron 判为安装不完整
- 终端日志经命名管道只保留前 8MB,长期运行的 dev 不再让文件无限增长;
  环境变量前缀紧贴 script,cd 失败时整组命令不执行
- ready 后进程退出导致的 WHOAMI_MISMATCH 也打印日志末尾并带 log=
- ensure-deps 测试去掉 CI 继承的 ELECTRON_OVERRIDE_DIST_PATH

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

* test(dev): 终端日志命令断言按平台路径拼接

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

---------

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-12 06:00:50 +08:00
kirozeng
e2a2ee41da feat(mobile): 新增「我的消息气泡颜色」设置
设置 → 外观新增「我的消息气泡颜色」:默认跟随主题,另提供初稿、晨光、
灵感、梦境、夜猫、项圈六个预设和自定义颜色,只作用于用户自己的消息气泡。

- 共享包 userBubbleAppearance 按浅色 / 深色生成背景、前景与描边,自定义色
  着色更明显,深色上限保证正文对比度不低于 7:1
- iOS 为原生 Form 二级页(/settings/user-bubble):顶部真实气泡同款预览,
  inline Picker 勾选列表,选中自定义才展开彩虹色带;拖动只更新预览,松手保存
- Android 沿用设置页内面板
- 偏好保存在本机 AsyncStorage,选「默认」即清除
- 同步 DESIGN.md、移动端设计规范与决策记录,登记设计台账路由

Signed-off-by: kirozeng <kirozeng@gmail.com>
2026-10-12 05:06:03 +08:00
nanaco
f3c263a366 fix(mobile): 重整已装插件页面与详情布局 (#5730)
* fix(mobile): 重整已装插件页面与详情布局

Signed-off-by: nana <823073145@qq.com>

* fix(mobile): 重连与启停后刷新插件详情

Signed-off-by: nana <823073145@qq.com>

* fix(mobile): 避免自动读取打断插件启停确认

Signed-off-by: nana <823073145@qq.com>

* fix(mobile): 启停回执失败后仍确认主机状态

Signed-off-by: nana <823073145@qq.com>

* docs(mobile): 校准插件验收与历史冷更边界

Signed-off-by: nana <823073145@qq.com>

---------

Signed-off-by: nana <823073145@qq.com>
Co-authored-by: nana <823073145@qq.com>
2026-10-11 12:17:25 +08:00
Dash
8840972fa4 perf(device-link): 预收列表聊天正文并在打开任务时复用
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-10 08:29:55 +13:00
zqchris
1a16e6843f fix(mobile): recover chat endpoint discovery with account identity
Signed-off-by: zqchris <chrisz83@gmail.com>
2026-10-09 17:14:35 +08:00
Dash
9901baa9f2 fix(auto-review): IM 审阅器看得到用户回复/引用的消息与附件 (#5564)
* fix(auto-review): IM 审阅器看得到用户回复/引用的消息与附件

IM 渠道里用户回复一条消息问「这啥情况」时,Auto 审阅器只拿到「这啥情况」本身,
看不到被回复的消息和图片,指代式提问后的相关查询会被误判拒绝。

- 新增宿主盖章的引用证据(被回复/引用的消息、本条附件数),经 Main 专属的
  MAIN_OWNED_SEND_CONTEXT 进入 appendAutoReviewUserIntent,三个 harness 共用;
  只挂在当前消息上,独立限长,不占用户原话预算,wire 同名字段不收
- 个人 IM(turnRunner)取渠道 adapter 的 replyContext,官方 Hook 取
  source.threadContext 最近一条,统一走 projectAutoReviewUserReferences
- 审阅器把引用放进 <review_input> 之后的独立低信任块并转义,规则写明它不构成
  授权;无引用时审阅 prompt 逐字不变
- 远程 Agent wire 可选透传并在解码时重新投影,旧对端忽略
- 补单测、三个 harness 的 wiring 测试与 live eval 用例;同步规则文档

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

* fix(auto-review): 官方 bot 回复目标在截短前取,引用包装不挤占原话预算

- Hook dispatcher 在 normalizeTaskSource 展示截短(只留最早 20 条)之前,从服务端
  原始 source.threadContext 取排除当前请求后的最后一条作为回复目标,单独随
  run.autoReviewReplyTarget 交给 runner;runner 不再从展示数据推断
- 仅为携带引用而包装出的意图对象在限长前还原为原话字符串,接近 2,000 字的
  原话不再因包装被整条省略
- 补长 X 回复链、Slack 不推断与近预算原话的回归测试,同步规则文档

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

* fix(auto-review): 官方 bot 回复目标优先按 replyToMessageId 解析

触发消息明确回复某条消息时按 replyToMessageId 找父消息,父消息不在链中不猜;
只有没有回复关系时才回退为排除当前请求后的最后一条。补单测与文档。

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

* fix(auto-review): 审阅只用 adapter 交给模型的回复投影

个人 IM 不再把 event.replyContext 原值交给审阅器,改用 prepareAgentTurnText
返回的 replyContext:飞书注入扫描拦下的引用以占位传递,未交给模型的回复
(如企业微信、飞书私聊)审阅器也不看。补飞书、Telegram 与 handler 测试并同步文档。

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

---------

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-08 15:23:16 +08:00
Lizi
2656f84618 feat(provider-share): share remote providers with other Cindy users
A user can share any provider that already allows remote use with
users of other Cindy accounts. The Agent keeps running on the sharer's
computer with the sharer's login; the invitee's files and commands stay
on the invitee's computer. Product rules: docs/product-rules/
provider-sharing.md; cross-repo contract: docs/provider-sharing-
contract.md (server side lands in cindy-server).

Sharer (Desktop main):
- one-time 5-minute links, approval with a 4-digit pairing code,
  pause/resume/remove, notifications without the pairing code;
- invitees (provider-share peers) may only use maker:remote-agent:v1
  and a provider list filtered to the shared provider; subscriptions
  and every other channel are refused, late results after revocation
  are rewritten to ACCESS_REVOKED;
- guest isolation for Claude Code, Codex and Pi: open payloads are
  allowlisted (no hooks/env/apiKeyHelper, neutralized out-of-tree @
  imports and ! commands), no host personal config, managed skills,
  roster or contacts rules, guest-only resume, Codex in a separate
  CODEX_HOME with read-only token access, Pi without host context;
- per-invitee, per-model usage in userData/remote-agent (no schema
  change); pausing ends tasks at once, removal also deletes the
  invitee's shadow workspace, attachments and Agent transcripts.

Invitee (Desktop):
- apply dialog from deep links or a pasted link, waiting state with
  the pairing code, withdraw, leave;
- shared providers appear in the model list as
  "{provider} · {device} · 来自 {owner} 的分享"; tasks bind with
  agent_device_id = share:<shareId>;
- cross-region shares (server switch, default off) use identity cards
  and an in-memory share credential on a second relay connection.

Mobile: reads the controlled computer's received shares for the model
list, localizes the new errors, and only says "open on a computer" for
share links (JS only, runtime fingerprint unchanged).

Protocol: Envelope.providerShare scope with capability
provider-share-v1 (append-only; old relays and clients keep same-account
routing), new same-account channel
maker:provider-share:received-catalogs.

Signed-off-by: Lizi <jiali@magiclizi.com>
2026-10-08 14:31:04 +08:00
Lizi
6ed04a977b chore(claude): upgrade Agent SDK and align Desktop entrypoint
Upgrade Claude Agent SDK from 0.2.112 to 0.3.292 and Anthropic SDK to 0.93.0. Use claude-desktop consistently across local and SSH sessions. Preserve remote HOME/PATH with an explicit sanitized environment merge, and bump the remote manager bundle to 0.0.11 without changing protocol v5. Keep the bundled Claude Code runtime pinned at 2.1.280. Update third-party disclosures.

Validation: 1,787 targeted tests passed (4 existing skips); maker-core, cc-manager and Desktop type checks passed. Compare old/new SDKs against the real Windows CLI with a loopback model: tools, MCP, skills/hooks, permissions, subagents/background tasks, interruption, resume/fork/rewind and usage pass. The bundled manager also passes local RPC runtime checks. Real subscription accounts, macOS/Linux and real SSH hosts are not exercised.
Signed-off-by: Lizi <jiali@magiclizi.com>
2026-10-07 12:59:08 +08:00
Chris Zhang
757d9797d5 refactor(plugins): 移除内置 iOS 模拟器并引导存量用户迁移 (#5412)
* refactor(plugins): retire embedded iOS simulator with migration guidance

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

* fix(plugins): show retirement notices before acknowledging them

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

* fix(plugins): include retired state in discovery error types

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

* test(worktree): preserve legacy Windows lease path normalization

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-06 09:25:03 +08:00
DavidShenXD
a5467dc0c1 fix(desktop): 按视窗挂载消息正文并稳定滚动定位 (#5454)
* fix(desktop): stabilize viewport message rendering and focus scrolling

Replace message-row content visibility with viewport mounting while keeping data pagination independent. Preserve text access, file cards, streaming follow, and reading anchors across scrolling and window resizing.

Include crash reproduction tools, regression coverage, and final rebase validation. Desktop typecheck and dev acceptance passed; existing main test failures are documented in FINAL-REBASE-VALIDATION.md.

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

* fix: resolve cross-platform fixtures and native agent integration regressions

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

* fix(desktop): restore viewport mounting after keyboard and selection access

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

* test(desktop): use literal paint control scripts

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

* test(remote): initialize Git Bash before bootstrap assertions

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

---------

Signed-off-by: DavidShen <david@xd.com>
2026-10-04 22:59:57 +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
DavidShenXD
c34187fa67 Merge pull request #5330 from makecindy/cindy/steady-hodgkin
feat(desktop): 新增全界面 Cindy 壁纸、自定义图片及动静切换
2026-10-02 13:16:44 +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
billythegod
12d0d8adc3 fix(ci): derive scheduler-guard ROOT via fileURLToPath, not URL.pathname (#5348)
URL.pathname is percent-encoded and not a filesystem path: on checkouts
under a path with spaces or non-ASCII characters (the norm for
Chinese-locale Windows user directories) the derived ROOT does not
exist, and collectSourceFiles' existsSync guard then makes every grep
rule scan zero files and report PASS — the guard fails open exactly
where its rules matter. The final lint rule also fails with a
misleading 'maker-scheduler lint failed' (spawned with a nonexistent
cwd) instead of a path error. Every other repo script already uses
fileURLToPath; align this one.

Signed-off-by: billythegod <1906308+billythegod@users.noreply.github.com>
Co-authored-by: billythegod <1906308+billythegod@users.noreply.github.com>
2026-10-01 23:54:17 +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
Lizi
1cd7caa42c Merge pull request #5136 from makecindy/dash/plugin-delegated-auto
fix(plugins): 传递宿主核验的委派 Auto 授权上下文
2026-10-01 17:23:01 +08:00
Dash
dd9df0db77 fix(login): 登录页背景色与登录后主界面统一 (#5314)
* fix(login): 登录页背景色与登录后主界面统一

#2571 把 CINDY 皮肤页底改为浅色 #F2F2ED / 深色 #181818 时,登录链路按豁免族
未跟进,登录页仍是 #EDEDED / #1F1F1E,登录前后背景色不一致、登录过渡时可见跳变。

login-bg-base 改为与 cindy-light / cindy-dark 的 surface 同值,仍写固定值而非
var(--surface),扩展主题照旧不染色登录页。同步更新 DTCG 源、生成物、冻结快照、
设计文档与相关注释。

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

* docs(login): 同步 §16.1 画布底说明并刷新登录 QA 预览数据

- DESIGN.md §16.1 正文的 --login-bg-base 改为 #F2F2ED / #181818,与生成表格一致
- 用 update-login-truth.mjs 机械刷新 login-flow-hifi / login-all-hifi 的 truth.json
  与内嵌数据;值层面只变画布底两色,其余为来源 hash 同步

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

---------

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-01 11:40:16 +08:00
Dash
90ad92cd3d fix(dev): macOS 开发版启动命令过长时改用临时脚本,避免被 tty 截断 (#5319)
* fix(dev): macOS 开发版启动命令过长时改用临时脚本,避免被 tty 截断

Terminal 的 do script 把命令当键盘输入送进新标签页 tty;新窗口 shell 尚未接管
输入时 tty 处于 canonical 模式,单行超过 MAX_CANON(1024 字节)会被截断,整条
命令静默不执行。路径较长的 worktree 加上需清除的环境变量列表,实测命令约 1600
字节,restart:desktop:remote 稳定报 STARTUP_TIMEOUT。

完整命令写进 0600 临时脚本,Terminal 只收一条短的 `. '<脚本>'`;脚本第一行删除
自身,不留残留文件。语义与原来在交互 shell 中直接执行一致。

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

* fix(dev): osascript 未执行到 do script 时清理临时启动脚本,并补测启动参数

- osascript 启动报错或非零退出(自动化权限被拒、脚本错误)时尽力删除临时脚本,
  避免脚本首行自删未执行而留下含开发环境变量的文件
- 抽出 prepareDarwinTerminalLaunch,测试确认传给 do script 的只有短 source 命令,
  原始长命令不会再进入 Terminal 输入

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

---------

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-01 11:35:43 +08:00
DavidShen
4df893063f fix(ci): pass test context for shell fallback
Signed-off-by: DavidShen <david@xd.com>
2026-10-01 08:21:28 +08:00
DavidShen
ee3f2ec428 fix(ci): 同步移动端设计台账并修正跨平台 shell 自测
Signed-off-by: DavidShen <david@xd.com>
2026-10-01 07:57:58 +08:00
Dash
ca3afba03d Merge main to resolve generated design inventory conflict
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-01 08:11:45 +13: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
d404825c06 merge: 同步已发布插件任务运行时基线
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-09-30 17:03:56 +13:00
kirozeng
f9245d2647 chore(design): 设计台账登记设置子页面(设备名、语音词典)
Signed-off-by: kirozeng <kirozeng@gmail.com>
2026-09-30 00:30:39 +08:00
kirozeng
c6c1f1f678 chore(mobile): 合入前收尾——移除试用身份、原生形变模块改名、登记形变动效
- 移除导航试用身份:navigationDemo 配置、试用构建脚本、app.config 试用分支及对应测试,
  env.ts / app.config.js / envBundleTransform 测试恢复为 main 版本。
- 原生模块 cindy-tab-bar 改名为 cindy-composer-morph(CindyComposerMorph),
  内部动画类改名为 CindyComposerMorphAnimation,避免与模块同名。
- DESIGN.md §14.4 登记第七类动效例外「移动端新建按钮形变」,并记入设计决策日志。
- 试用记录文档改为 navigation-and-composer.md,只保留交互说明与已知未完成项。

Signed-off-by: kirozeng <kirozeng@gmail.com>
2026-09-29 22:06:14 +08:00
kirozeng
6ecfa90f0a merge: 合入最新 main(9727ac7709)
Signed-off-by: kirozeng <kirozeng@gmail.com>
2026-09-29 21:41:26 +08:00
bobo
8cb21fed2e fix(auth): 将验证码重发倒计时与服务端统一为 60 秒 (#5244)
* fix(auth): 将验证码重发倒计时与服务端统一为 60 秒

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

* fix(auth): 同步登录 QA 预览的 60 秒倒计时

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

---------

Signed-off-by: xd-bobo <caojianbo@xd.com>
2026-09-29 19:38:09 +08:00
kirozeng
e6b1c66363 merge: 合入最新 main(000337155f)到移动端导航试用分支
冲突处理原则:远端已删除的(自动化管理)跟远端;远端重做的组件(模型选择、
目标面板、伙伴资料等)以远端结构为准,再补回统一按压反馈;首页标题宽度采用
远端算法;抽屉保留账号头新布局,随远端移除「加入共享任务」入口并通过远端
Android 独立窗口测试;设备列表保留分组结构,采用远端图标滑动操作。

Signed-off-by: kirozeng <kirozeng@gmail.com>
2026-09-29 17:11:14 +08:00
kirozeng
2e9501d64d wip(mobile): 移动端导航与交互试用改版(本地快照,未推送)
Signed-off-by: kirozeng <kirozeng@gmail.com>
2026-09-29 16:48:55 +08:00
Dash
2e7caa4ed7 merge: sync published plugin task runtime fixes
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-09-28 22:14:58 +13:00
Chris Zhang
7c59d6f8e4 feat(mobile): 伙伴群聊第三阶段——手机端群聊与分工 (#5162)
* feat(mobile): 伙伴群聊第三阶段——手机端群聊与分工

手机作为控制端查看群聊、发言、推进分工,规则仍由电脑判断。

- Desktop:新增 Remote Resource collection `bot-groups`(原语 `bot-group-chat`),
  列表/详情/动作都复用 `maker:remote-resources:*`,不新增 channel 或 allowlist;
  电脑路径不下发,群只在全部成员对手机可见时出现,动作逐次复核。
- 分工一步停下(继续/重试/全部做完)时经既有 notify 帧推送到手机,深链进入该群。
- Mobile:伙伴页「群聊」分组、群聊页(安排卡、继续/重试、待确认内嵌、@ 与「+」安排分工)、
  群设置与新建群聊、推送深链解析、五语文案;无原生改动,fingerprint 不变。
- 安排判定与提及解析下沉到 @cindy/maker-shared,Desktop re-export,行为不变。
- 规则:bot-group-chat.md 第 8 节;protocol-compatibility.md 新增群聊手机端一节。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

* fix(bot-group): 推送与手机动作守住可见性和账号边界,删群后稳定退出

- 分工推送先按群列表同一规则复核全部成员对手机可见,隐藏了成员的群不再推送
- 手机动作在可见性检查之后、写入之前复核数据所属账号,切换账号时不再写入新账号
- 电脑先广播删群、手机先读到群已不在时,设置面板被卸载后仍然退出群聊页

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

* docs(bot-group): 分工推送只发给手机能看到的群

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28 11:39:28 +08:00
Dash
be007ea6cd merge: 同步父分支并保留 Auto 审阅上下文准备
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-09-28 10:01:01 +13:00
Chris Zhang
bd5d7d2846 feat(bots): import Hermes/OpenClaw agents with credentials and routine takeover (#5153)
* feat(bots): import selected Hermes and OpenClaw agent data and routines

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

* fix(bots): verify selected skill queries and preserve import lifecycle boundaries

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

* fix(bots): isolate imported credentials and recover selected automation imports

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

* fix(bots): isolate imported tool discovery and review credential commands per call

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

* fix(bots): fence imported handovers and idle credential connections

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

* fix(bots): disambiguate imported credentials and preserve mobile retries

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

* fix(bots): verify reminder delivery and isolate concurrent MCP calls

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

* fix(bots): redact imported MCP catalogs before model exposure

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

* fix(bots): fence source takeover and recover interrupted imports

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

* fix(bots): bind verification credentials and complete imported reads

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

* fix(bots): scope imported MCP approval to each call

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

* fix(bots): bound import snapshots and retain secrets until deletion commits

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

* fix(bots): coordinate import deletion and preserve tool execution

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

* fix(bots): redact imported prompts and monitor credentials

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

* fix(bots): retain imported automation script dependencies

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

* fix(bots): authorize each takeover MCP probe through companion permissions

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

* fix(bots): close deleted companion connections and redact MCP URL paths

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

* fix(bots): normalize Windows imports and stop exhausted routines

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

* fix(bots): validate import avatars and require complete read evidence

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

* test(bots): serve monitor fixture as plain text

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

* fix(bots): preserve Telegram sender identity and mask import previews

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

* fix(bots): retain imported stdio MCP working directories

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

* fix(bots): preserve MCP response envelopes during redaction

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

* fix(bots): keep imported skill credentials private and executable

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

* fix(bots): redact all known credentials before import publication

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

* fix(bots): mask source names and reuse random import portraits

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

* fix(bots): restore source jobs and bound import recovery

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

* fix(bots): bound source discovery and trust host CLI paths

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

* fix(bots): reserve imported environments for Main

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

* fix(bots): mask import plans and recover creation conflicts

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

* fix(bots): restore imported schema values and bound discovery reads

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

* fix(bots): validate imports early and resume partial deliveries

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

* fix(bots): retain routines until source handback succeeds

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

* fix(bots): preserve imported tool schema keywords during masking

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

* fix(bots): scope imported argument restoration to schema paths

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

* fix(bots): unlock import selection after source capture rejections

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

* fix(bots): preserve Windows imported command quoting

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

* test(bots): compare imported MCP working directory identity

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

* fix(bots): restore required-only imported argument names

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

* fix(bots): preserve imported model guards and IPC errors

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

* fix(bots): restore aliases in conditional imported schemas

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

* fix(bots): restore imported property name aliases

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

* fix(bots): recover incomplete imports and validate mobile payloads

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

* test(bots): make import write failure fixture cross-platform

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

* fix(bots): purge routines after profile deletion commits

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

* fix(routines): preserve imported trigger fields in save schemas

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

* fix(bots): resolve import credentials from source entries only

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

* test(ci): use dispersed ports for CLI lock integration

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-09-28 04:39:46 +08:00
Dash
d0647762ef merge: 同步任务父分支并重新生成授权摘要迁移
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-09-28 01:32:32 +13:00
Chris Zhang
19dfb00bb7 feat(bots): 伙伴群聊第一阶段(Desktop 本机) (#5152)
* feat(bots): 伙伴群聊第一阶段(Desktop 本机)

用户可以把自己的 2–6 位伙伴放进一个群,用户说一句,伙伴按宿主确定性规则接话:
@ 点名按先后轮流、@所有人、没 @ 时按群设置;「自动」发言方式下广播问题第一圈
同时想、之后轮流,「始终轮流」每次一位;每轮最多 3 圈 10 条,自然结束后由用户
继续讨论;插话与停止会中止正在发言的伙伴。

- 新表 bot_groups / bot_group_members / bot_group_messages(0116、0117)
- 每位成员在每个群有一条隐藏群专线 Session(bot_session_links.role = 'group'),
  共享 Profile、Home、模型链与权限档,不进任务列表、历史、通知与 Dock 计数
- maker-ipc/botGroupChatService:发言编排、群专线投递与回合结算、IPC
- Desktop 群聊界面:侧栏群聊分组、群聊页、新建对话框、群设置抽屉、五语文案
- 规则文档 docs/product-rules/bot-group-chat.md

不修改 system prompt:群聊说明只进每回合投递给群专线的隐藏用户段。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

* fix(bots): 群聊处理 review 意见:权限同步失败不放行、旧轮不再派发、点名按输入框结果

- 群专线权限同步失败时本次不发言(显示轻提示),不再沿用旧的宽权限执行
- 成员准备期间用户插话:派发前重新核对轮次;旧轮只撤回自己的等待项
- 点名以输入框解析结果为准(保留同名伙伴的选择与 @ 先后),宿主只在缺失时解析正文
- 出错或超时的伙伴本轮不再重试,每轮只提示一次

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

* fix(bots): 群专线回合以错误结束时同样不留角标

终态 error 也记录 botGroupLane 归属,失败的群专线回合由群聊里的轻提示承接,
不再在这条用户进不去的隐藏会话上挂红点。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 20:13:23 +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
3c57eaec7a fix(plugins): 传递宿主核验的委派 Auto 授权上下文
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-09-27 21:30:29 +13:00
Dash
1069cb9832 fix(dev): Terminal 启动命令按转发清单清除所有未设值变量
清除集合不再手写六个隔离变量,改由 devEnvEntries 转发清单推导:本次未设值的
转发变量一律 unset,覆盖 XDT_USER_DATA_DIR_EPOCH、XDT_SCHEDULER_PASSIVE 等
同类残留,以后新增的转发变量自动纳入。补充部分变量有值的测试。

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-09-27 04:07:09 +13:00
Dash
451ebf4181 fix(dev): 开发版启动时清掉 Terminal 残留的隔离环境变量
长驻的 Terminal.app 会保留更早 isolated 启动留下的 XDT_ISOLATED 等变量,
而启动命令只转发本次有值的变量,导致 --shared / --preserve-running 预览
悄悄落进别的 worktree 的沙箱。macOS 启动命令改为先 unset 本次未设值的
隔离类变量。

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-09-27 04:07:09 +13:00
Dash
6bf80ebb60 perf(voice): 优化桌面语音采集、停顿润色与确认收尾 (#5089)
* perf(voice): 优化桌面语音采集、停顿润色与确认收尾

Signed-off-by: Dash <dash@DashdeMac-Studio.local>

* fix(voice): 移除静音与提前发送实验路径并同步设计台账

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-26 10:54:02 +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
Chris Zhang
80c3020bb1 fix(test): 本地测试默认独立运行,收窄选测与执行要求 (#5042)
* fix(test): make local test serialization opt-in

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

* fix(test): retain checked text inputs and portable Git fixtures

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

---------

Signed-off-by: zqchris <chrisz83@gmail.com>
2026-09-24 22:58:31 +08:00