Skip to content

feat(narrative): draft safety guard, scene loader race protection and autosave - #100

Merged
lark-x merged 3 commits into
mainfrom
feat/narrative-draft-safety-and-race-protection
Aug 23, 2026
Merged

feat(narrative): draft safety guard, scene loader race protection and autosave#100
lark-x merged 3 commits into
mainfrom
feat/narrative-draft-safety-and-race-protection

Conversation

@lark-x

@lark-x lark-x commented Aug 23, 2026

Copy link
Copy Markdown
Owner

Summary

  • Implemented \useSceneNavigationGuard\ for intercepting scene changes / route navigation / beforeunload on dirty scene drafts.
  • Added unsaved changes confirmation modal with 'Save & Proceed', 'Discard', and 'Cancel' options.
  • Implemented \useNarrativeSceneLoader\ with \loadGeneration\ token and \AbortController\ cancellation.
  • Implemented \useNarrativeAutosave\ with 1000ms debounce and conflict detection.
  • Added full unit test suite in \scene-draft-safety.test.ts.

@lark-x
lark-x merged commit 6f1361b into main Aug 23, 2026
7 checks passed
@lark-x
lark-x deleted the feat/narrative-draft-safety-and-race-protection branch August 23, 2026 09:19
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.

1 participant