add-video/edit changes ignored by CapCut 8.7 (Windows): timeline may be driven by template-2.tmp + draft_meta_info.json, not draft_content.json
Split out from #32 (reported by @YacAttack). This is separate from the #32 registration fix (#33) and the dimension fix (#34) — both merged — and is the more serious of the three.
Symptom (CapCut 8.7.0.3685, Windows 10, capcut-cli 0.9.0)
init a draft, then add-video / add-audio / import-srt. capcut info shows the timeline correctly (video + audio + 23 caption objects). But opening the project in CapCut loads the old/empty sample, not the CLI-built timeline. Edits to draft_content.json are intact on disk but ignored by the app.
Hypothesis
The CLI reads and writes draft_content.json (and draft_info.json). On CapCut 8.7 / Windows the timeline may instead be driven by template-2.tmp and/or draft_meta_info.json — reporter observed both still referenced the original sample (example.mp4) after CLI edits. If so, writing only draft_content.json is necessary but not sufficient on this version.
Note: editing a draft while CapCut is running gets clobbered on exit (CapCut owns the project in memory and flushes on close) — expected, not this bug. This bug reproduces with the app closed during edits.
Need to confirm
A full draft folder from an affected install (CapCut 8.7 / Windows), specifically:
draft_content.jsondraft_meta_info.jsontemplate-2.tmp
to determine which file the GUI treats as canonical on this version, then write to the right target (likely behind a version detection so older CapCut isn't broken).
Acceptance
- CLI edits to a draft are reflected when opened in CapCut 8.7 (Windows) after restart, without overwriting an app-created project.
- Existing (older CapCut) behavior preserved, gated on detected version where the canonical file differs.
Tracking the implementation of the fix in #39 (adds a sync-timelines command to reconcile the template-2.tmp/draft_info.json mirror so CLI edits are honored on CapCut >= 8.7). Contributions welcome there.
Resolved in v0.13.0 via sync-timelines (see #39). diagnose now points to it as the repair path for CapCut 8.7 mirror drift instead of deferring here. Please reopen if edits are still dropped after sync-timelines --apply. https://github.com/renezander030/capcut-cli/releases/tag/v0.13.0