You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Bug 报告:自更新死循环(self-update loop)
环境:CC Switch v3.20.0(2026-08-18 发布),Windows 11,launchOnStartup: true
症状
应用在运行中会自行退出(更新器把应用退出、重新安装 MSI),用户再启动时表现为"无法正常启动"。数据无损坏。2026-08-25 与 2026-08-26 连续两天复发,更新检查为周期性触发而非每次启动。
根因
自更新代码的版本比较有 bug(日志前缀 cc_switch_lib::commands::settings):远端 latest.json 为 3.20.0、本机也为 3.20.0,相等时仍触发"开始下载/安装应用更新: 3.20.0"并退出。判断条件应为 remote > local,实际等价于 remote >= local。
证据
影响
修复建议
版本比较改为严格 >:仅当 remote_version > local_version 时执行更新,相等时直接跳过。settings.json 目前无关闭自动更新的开关,建议顺带提供一个(例如 disableAutoUpdate),方便无法及时升级的用户规避。
复现
无需特殊操作:保持 3.20.0 运行,等待周期性更新检查触发即可看到应用退出 + Temp 出现 updater 目录。
All reactions