fix: preserve recordings when storage runs low - #2148
Merged
Conversation
Manage your Superagent protectionSuperagent has paused scans for this repository because this unlinked GitHub App installation has used all three included PR scans. You have 0 of 3 included PR scans remaining. Create a free account to continue protection, manage scan settings, review security history, and control which repositories are protected. |
Member
Author
|
hey @greptileai, please re-review the PR |
Member
Author
|
hey @greptileai, please re-review the PR |
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
Verification
Scope and limitations
CI is not fully green: the macOS sync job failed the unchanged channel-drain timing test (55 ms versus a 50 ms budget); all 10 recovery tests passed in that job. The same timing test passed five local retries. Windows and Linux A/V sync jobs passed; the macOS job is being rerun on the same PR head (attempt 2). Other native CI remains separate from these results.
Only the 11 recording/storage files in this PR are included. Concurrent platform, release, camera, and web changes are excluded. Authenticated Instant uploads and Windows/Linux runtime behavior were not exercised here. The two existing documentation tests in untouched
crates/utils/src/lib.rsfail in the isolated base snapshot; those unrelated examples are unchanged. No migrations or deployment changes.Greptile Summary
The PR adds storage-aware recording preflight, monitoring, finalization, and recovery while preserving media when local saving cannot complete.
Confidence Score: 5/5
The PR appears safe to merge.
No blocking failure remains; the recording-size monitor now reserves finalization space, and recovery rejects the truncated fragment state identified previously.
Important Files Changed
Reviews (2): Last reviewed commit: "fix: reject incomplete fragments during ..." | Re-trigger Greptile