This repository was archived by the owner on Mar 11, 2026. It is now read-only.
feat(capture): crash-safe rolling chunk recording#124
Merged
Mikecranesync merged 1 commit intomainfrom Mar 9, 2026
Merged
Conversation
695faff to
98cdc00
Compare
Rewrite record_session() to write 8s MP4 chunks on-the-fly instead of one big file. Each chunk is released before the next starts, so a crash only loses the current partial chunk. Stop mechanism uses a sentinel file (.stop_recording) instead of Ctrl+C, which doesn't work reliably from Claude Code's Bash tool. - Add stop_recording() helper and `capture_fio.py stop` CLI subcommand - Update visual_test_loop.py run_session() to use rolling chunks directly - Include sim controllers and cookoff source files Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
98cdc00 to
98d0357
Compare
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
record_session()to write rolling 8-second MP4 chunks instead of one big file — each chunk is a complete, valid MP4cookoff/clips/.stop_recording) so recording can be stopped from a separate process (no Ctrl+C needed)capture_fio.py stopCLI subcommand andstop_recording()helpervisual_test_loop.pyto consume rolling chunks directly (no post-hoc chunking for live sessions)Test plan
capture_fio.py stop— exits cleanlyvisual_test_loop.py --session🤖 Generated with Claude Code