Fix silent loss of completed Extend results#132
Draft
Paul (nuclearspike) wants to merge 1 commit into
Draft
Conversation
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.
Summary
addAssettargets a project that no longer existsBug report
Extending a local video could finish successfully in the backend but produce no visible result and no failure notice in the UI.
The captured session showed:
Expected behavior: the completed video appears as a generated Extend asset. If the project write fails, the user receives an error and the completed generation remains recoverable.
Root cause
The Extend completion effect cleared its submission context and removed
ltx-generation-recoverybefore awaiting the asset copy and project write. The asynchronous import also had no catch boundary.That left a silent-loss window: a project storage failure after the video and thumbnails were created could strand a valid result while also removing the only recovery path. In addition,
ProjectContext.addAssetreturned a new asset even whenmutateProjectreturnednull, so a missing project looked like a successful write.Fix
addAssetsucceedsaddAssetwhen the target project cannot be loadedValidation
pnpm typecheckpnpm build:frontendpnpm backend:test— 567 passedThe manual regression fixture and copied media were removed after validation.