fix(ai): 重叠平移挤开旧片段时补生成 update 操作 #17

Merged
xhgit merged 1 commits from fix/shift-old-clips into main 2026-11-14 18:37:34 +08:00
Owner

实测发现

新建片段插入旧时间轴间隙、把旧片段挤开时,净化层只在模拟里移动了旧片段,没有生成对应的 update 操作——模拟通过校验,实际应用时旧片段仍在原位,applyOperations 报「视频片段重叠」,规划重试也救不回来。

修改

  • 重叠平移挤开的片段若是本次操作集之外的旧片段,自动补一条 update 操作(changes.start=新位置)
  • 新增回归测试:旧片段被挤开必须生成 update 操作且应用后位置正确

本地 11 个用例全部通过。

## 实测发现 新建片段插入旧时间轴间隙、把旧片段挤开时,净化层只在模拟里移动了旧片段,没有生成对应的 update 操作——模拟通过校验,实际应用时旧片段仍在原位,`applyOperations` 报「视频片段重叠」,规划重试也救不回来。 ## 修改 - 重叠平移挤开的片段若是本次操作集之外的旧片段,自动补一条 `update` 操作(changes.start=新位置) - 新增回归测试:旧片段被挤开必须生成 update 操作且应用后位置正确 本地 11 个用例全部通过。
xhgit added 1 commit 2026-11-14 18:37:30 +08:00
实测:新建片段插入旧时间轴间隙、把旧片段挤开时,净化层只在
模拟里移动了旧片段,没有生成对应 update 操作——模拟通过校验、
实际应用时旧片段仍在原位,applyOperations 报「视频片段重叠」。
现在挤开旧片段时自动补一条 update 操作,模拟与实装一致。
新增回归测试(旧片段被挤开必须生成 update)。
xhgit merged commit c7c963ceaa into main 2026-11-14 18:37:34 +08:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: xhgit/AI-cut#17