Repository navigation
fix(host): 云端执行带默认桌面通知的伙伴计划 - #14006
Merged
Merged
Conversation
保留项目计划的随行通知设置,云端执行关闭桌面通知。切换确认和伙伴设置说明通知限制,接手未恢复的计划展示数量与原因。暂时无法确认主力时保留计时轮次,确认归属后才派发。 Assisted-by: Cindy (https://cindy.app) Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
zqchris
approved these changes
Nov 30, 2026
zqchris
left a comment
Contributor
There was a problem hiding this comment.
Auto-approved by Chris’s trusted-author rule for makecindy/cindy. This is an automated approval.
11 tasks done
Confidence Score: 5/5
[Medium impact] 本次未发现新的阻断问题,可以合并。
|
DavidShenXD
approved these changes
Nov 30, 2026
elfcv
added a commit
to elfcv/cindy
that referenced
this pull request
Nov 30, 2026
Resolved conflict in BotHomeComputerSetting.tsx by preserving both makecindy#14006's cloudTarget desktop notification note and this branch's checkingNote status. Assisted-by: Cindy (https://cindy.app) Signed-off-by: elfcv <cnxpfcv@gmail.com>
10 of 11 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
这次改了什么
摘要
#13985 在 M1 修复前已合入。桌面表单默认开启桌面系统通知,旧逻辑把这类项目计划整条跳过。云端接手后,计划按原排期运行,本机关闭桌面通知,随行声明保留原设置。交回桌面后恢复通知设置。
变更类型
范围
UI 变化
pnpm ui:check --page companion-project-automations --case all --theme all --locale zh-CN,macOS · Electron 42.11.12(Chromium 148.0.7778.280,与 Cindy 同一渲染内核);真实组件与主题,场景数据,不是登录账号下的完整 Cindyd1c354ec742e(含未提交改动)companion-project-automations:light / dark · zh-CN · 720×480default:Confirm moving the buddy to Cloud Cindyplans:Read project plans and an unsupported route on Cloud Cindydefault · final· zh-CN · 720×480plans · final· zh-CN · 720×480完整总览(全部场景,自检用):1/1
怎么验证的
自动验证
LANG=zh_CN.UTF-8,取消LC_ALL、LC_CTYPE。Host 验证移除XDT_OFFICIAL_SHARED_PROFILE。pnpm --filter @cindy/host test:scheduler。默认通知的项目计划经接手和真实 SQLite 计时器派发一次,云端执行行关闭通知,实际上传值保留通知设置。用同一值通过桌面定时加载器回交,桌面执行行恢复原值。未确认主力时不消耗单次排期且没有运行记录,恢复后只派发一次。原代码分别复现「整条没导入」和「单次被标记跳过」。pnpm --filter @cindy/host test:companion-integration。真实接手与 Device Link 回环。503 归属和写入证明读取失败分别不发授权,确认转移后识别为异地。远端详情同一请求返回项目计划、数量与原因,不含提示词。回交时被跳过的定义和已导入的默认通知设置均原样保留。pnpm ui:check --page companion-project-automations --case all --theme all --locale all。两入口、两种主题、12 种语言,48/48 通过。测试价值
project-automation-loader、Host 调度 tick 和桌面加载器notify.desktop=true曾阻断导入。恢复后需分别看到云端派发一次、可移植值不变、桌面执行行恢复通知。P3-1,无归属证明的单次到期曾消耗排期,最小输入为一次不可用、一次恢复。两条基线均复现。materializeCompanionBotHomeComputerSettingmakeFormFromSchedule和formToProjectConfig手工验证
检查浅色和深色四张实际渲染图片。开启伙伴设置仍只用既有远程资源详情请求。就绪的 V2 云端伙伴在该读请求中追加一次项目模式读取和一次同目录计划查询,名称最多 20 条,每条最多 120 个 UTF-16 单元。增量回包上限按 JSON 转义与静态文案推导约 16 KiB。切换确认沿用已有目标读取。界面沿用已有订阅与卸载清理。
未执行的验证
正式云端、独立桌面与手机的联合验收等新候选包部署后执行,同时作为 #13985 的合并后验证。验收使用桌面新建表单的默认通知配置,核对切换说明、接收版本 3 和 4、云端离线计时、回交和桌面系统通知实际送达,以及测试资料清理结果。
风险
风险分类
影响与回滚
账号内远程伙伴的详情沿用原来的只读范围及 Markdown 区块。只有新版本恢复期间生成的计划原因会记录到既有同步账本的可选字段。旧端可忽略,原来的同步定义和调度记录仍可读。回滚后通知组合会重新沿用旧版处理,原声明仍保留在云同步资料。旧版接收分支保留已有降级确认,没有中转部署依赖。
提交前检查
Assisted-by: Cindy (https://cindy.app)