Skip to content

[Bug]: safetyReport.scanMethod 校验失败导致无法备份到远程 #191

Description

@legeling

Area

Sync / backup / restore

Platform

macOS Apple Silicon

Version

未知(截图中未显示)

What happened?

在数据同步页面执行“备份到远程”时,备份无法完成,并提示同步快照校验失败:

Sync snapshot is invalid: skills.1.safetyReport.scanMethod: Invalid input, skills.2.safetyReport.scanMethod: Invalid input

看起来只要快照里的 Skill 包含当前校验器不接受的 safetyReport.scanMethod 值,整个备份就会被阻断。

What did you expect?

能够正常生成并上传备份。对于旧版本或不兼容的 safetyReport.scanMethod 字段,应进行兼容、迁移或忽略处理,而不是阻断整份快照的备份。

Steps to reproduce

  1. 打开“设置” → 数据同步。
  2. 配置自部署同步源。
  3. 工作区中存在带有 safetyReport.scanMethod 数据的 Skill。
  4. 点击“备份到远程”。
  5. 出现 Sync snapshot is invalid,备份失败。

Logs, screenshots, or extra context

Sync snapshot is invalid: skills.1.safetyReport.scanMethod: Invalid input, skills.2.safetyReport.scanMethod: Invalid input

可能与 #185 属于同一类同步快照兼容性/校验问题,但本次失败字段为 safetyReport.scanMethod

Before submitting

  • I searched existing issues and did not find an obvious duplicate for safetyReport.scanMethod.
  • The error is reproducible in the current environment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions