Skip to content

fix(recording): recover active recordings after shutdown#83

Merged
DriftN2Forty merged 1 commit into
JustinDevB:devfrom
DriftN2Forty:fix/recover-recordings-on-shutdown
Jun 24, 2026
Merged

fix(recording): recover active recordings after shutdown#83
DriftN2Forty merged 1 commit into
JustinDevB:devfrom
DriftN2Forty:fix/recover-recordings-on-shutdown

Conversation

@DriftN2Forty

Copy link
Copy Markdown
Collaborator

Summary

  • Preserve active recording append logs and chunk temp files during plugin shutdown.
  • Let startup recovery finalize interrupted recordings instead of deleting temp data.
  • Keep explicit no-save recording stops as destructive discards.

Testing

  • mvn -Dtest=RecorderManagerTest test
  • mvn test

Changes:
- RecorderManager.shutdown() now calls a recovery-preserving stop path instead of stop(false).
- RecordingSession now has package-private stopForRecovery() that closes listeners/files but does not save or delete temp files.
- Explicit discard behavior is unchanged: /replay stop ... with no save still deletes temp files.
- Added regression tests:
- shutdown preserves append logs for startup recovery
- explicit no-save stop deletes append logs
@DriftN2Forty DriftN2Forty merged commit f3d9549 into JustinDevB:dev Jun 24, 2026
1 check passed
@DriftN2Forty DriftN2Forty deleted the fix/recover-recordings-on-shutdown branch June 24, 2026 03:27
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