Skip to content

fix rewrite targeting after chapter rollback#143

Merged
Narcooo merged 1 commit intoNarcooo:masterfrom
185259536:fix/rewrite-rollback-target
Apr 13, 2026
Merged

fix rewrite targeting after chapter rollback#143
Narcooo merged 1 commit intoNarcooo:masterfrom
185259536:fix/rewrite-rollback-target

Conversation

@185259536
Copy link
Copy Markdown

Summary

  • fail inkos write rewrite before deleting chapters when the rollback snapshot is missing
  • verify rollback restores the requested rewrite target before regenerating and clean stale optional truth files during state restore
  • add CLI and state-manager regression coverage for missing snapshots and stale rollback artifacts

Test plan

  • pnpm --filter @actalk/inkos-core test -- packages/core/src/__tests__/state-manager.test.ts
  • pnpm --filter @actalk/inkos test -- packages/cli/src/__tests__/cli-integration.test.ts
  • Unable to run locally in this session because vitest is unavailable and node_modules is missing

🤖 Generated with Claude Code

Fail rewrite early when the rollback snapshot is missing or resolves to the wrong next chapter, and clear stale optional truth files during state restore so rewrite cannot silently advance to the next chapter.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@Narcooo Narcooo merged commit 8d28e36 into Narcooo:master Apr 13, 2026
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.

2 participants