feat: auto-persist WAA recordings to prevent data loss#62
Merged
Conversation
- Add waa_recordings/ to .gitignore (immune to git stash -u, git clean -f) - Add _backup_file() helper: hardlinks PNGs + meta.json to ~/oa/recordings/ (zero extra disk, falls back to copy on cross-device, silent on failure) - Add _save_incremental_meta(): writes meta.json atomically after each step via .tmp rename, with recording_complete field for partial detection - Wire helpers into recording loop (before/after screenshots, step advances, done, restart cleanup) - Use systemd-first pattern for socat proxy in auto-infrastructure Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2 tasks
This was referenced Mar 2, 2026
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
waa_recordings/to.gitignore— recordings are now immune togit stash -uandgit clean -f_backup_file()helper: hardlinks PNGs + meta.json to~/oa/recordings/{task_id}/(zero extra disk space, falls back to copy on cross-device, silent on failure)_save_incremental_meta(): writesmeta.jsonatomically (via.tmprename) after each step withrecording_completefield for partial recording detectionProtection matrix
git stash -u.gitignoregit clean -f.gitignoregit clean -fxmeta.jsonrm -rf repo/Test plan
python scripts/record_waa_demos.py record-waa— verifymeta.jsonappears after first step, not just at end~/oa/recordings/{task_id}/has hardlinked copies of PNGsgit stash -uin repo — verifywaa_recordings/is NOT removedconvert_recording_to_demo.pystill parses the newmeta.jsonwithrecording_completefield🤖 Generated with Claude Code