Repository navigation
fix(store): gate the nested-Timelines guidance on detected app version - #71
Merged
Merged
Conversation
The nested-layout warning and the diagnose next_action fired on store.layout alone, but their text is explicitly about CapCut 7.x and cites #50. On 8.5.0 the reported behaviour is the opposite: after a CLI-written draft was opened and closed, the nested document and the project-root file were byte-identical, so the app regenerated the mirror FROM the tool's content. The 7.x caution is deliberately not softened — the 8.5.0 reporter did not test 7.x, which is what #50 covers — and an unknown version keeps the cautious wording. What changes is that 8.5.0+ no longer sees a claim its own evidence contradicts. Three call sites needed this, not one: saveDraft's write guard, the version command's support notes, and sync-timelines, which rewrites mirrors outside saveDraft and had its own copy of the warning. Closes #68
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #68. Split out of #60 (finding 1), reported by @scornik.
The nested-layout warning fired on
store.layoutalone while its text is explicitly about CapCut 7.x (#50). On 8.5.0 the reporter measured the opposite — after an open/close round trip the nested document and the root file were byte-identical, so the app regenerates the mirror from the tool's content.Scope note
The 7.x caution is not softened. The reporter states plainly they did not test 7.x, which is what #50 actually covers, and an unknown version keeps the cautious wording. The defect was the missing version gate, not the 7.x text.
Three call sites, not one
Worth flagging for review:
saveDraftwas only one of them. Theversioncommand's support notes andsync-timelines— which rewrites mirrors outsidesaveDraft— each had their own copy. A test that asserted on the write-time stderr is what surfaced the other two.Four new tests covering 8.5.0, 7.x, unknown version, and the write-time path.