Skip to content

fix(init): warn when the template predates the target store's CapCut - #70

Merged
renezander030 merged 1 commit into
masterfrom
fix/67-init-template-version-guard
Aug 9, 2026
Merged

renezander030 merged 1 commit into
masterfrom
fix/67-init-template-version-guard

Conversation

@renezander030

Copy link
Copy Markdown
Owner

Closes #67. Split out of #60 (finding 2), reported by @scornik.

The bundled template declares app_version 6.5.0 and carries none of the schema markers a modern draft has. Dropped into a materially newer store, CapCut lists the draft at 00:00 and then refuses to open it with "Current project is from an unusual path" — which is wrong about the cause and sends people hunting the path.

init now reads the newest platform.app_version across the projects already in the drafts folder and warns when the store is a major version ahead, naming the real cause and pointing at --template.

Two details worth noting:

  • the store is read before the template is copied, so the draft being created is not one of its own inputs;
  • unreadable sibling projects are skipped rather than failing the init.

Warn, never refuse — matching the house rule for report-only evidence. --template is a working escape hatch.

Four new tests: skew warns, same-major stays quiet, empty store stays quiet, corrupt sibling is ignored.

The bundled template declares app_version 6.5.0 and carries none of the
schema markers a modern draft has. Dropped into a materially newer store,
CapCut lists the draft at 00:00 and then refuses to open it, reporting
"Current project is from an unusual path and cannot be used currently" —
which is wrong about the cause and sends people hunting the path.

init now reads the newest platform.app_version across the projects already
in the drafts folder (before copying the template, so the new draft is not
one of its own inputs) and warns when the store is a major version ahead,
naming the real cause and pointing at --template.

Warn, never refuse: the evidence is a single 8.5.0 report with no committed
fixture, and --template is a working escape hatch.

Closes #67
@renezander030
renezander030 merged commit 0577405 into master Aug 9, 2026
8 checks passed
@renezander030
renezander030 deleted the fix/67-init-template-version-guard branch August 9, 2026 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

init: bundled template stamps version 7 / empty new_version, and CapCut 8.5.0 refuses to open the draft

1 participant