Repository navigation
feat: export separate screen, camera and audio tracks - #4301
Open
richiemcilroy wants to merge 9 commits into
Open
richiemcilroy wants to merge 9 commits into
richiemcilroy wants to merge 9 commits into
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
richiemcilroy
marked this pull request as ready for review
November 16, 2026 23:46
|
Sandchest reviewed Sandchest reviews every change for vulnerabilities an attacker could use · 2 credits · Review details |
Member
Author
|
hey @greptileai, please re-review the PR |
Comment on lines
+331
to
+333
| let backup = if destination.exists() { | ||
| let backup = destination.with_file_name(format!(".{name}.{token}.previous")); | ||
| if let Err(error) = std::fs::rename(destination, &backup) { |
Contributor
There was a problem hiding this comment.
Existing directories get hidden
If the chosen folder contains a directory named Screen.mp4, publish moves it aside and replaces it with the exported video. The original directory remains hidden as .Screen.mp4.<token>.previous because remove_file cannot remove a directory and its error is ignored. The user must find and restore it manually. Reject directory destinations before moving anything.
Prompt To Fix With AI
This is a comment left during a code review.
Path: crates/export/src/tracks.rs
Line: 331-333
Comment:
**Existing directories get hidden**
If the chosen folder contains a directory named `Screen.mp4`, `publish` moves it aside and replaces it with the exported video. The original directory remains hidden as `.Screen.mp4.<token>.previous` because `remove_file` cannot remove a directory and its error is ignored. The user must find and restore it manually. Reject directory destinations before moving anything.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.This branch was successfully deployed
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.

Adds a Tracks format to the editor's export page. It saves the recorded screen, camera, microphone and system audio as separate files in a folder you choose. Every track follows the edited timeline (cuts, clip order, speed, transitions and title holds), so the files line up with each other and with an MP4 export in any video editor.
cap export --trackswrites the same files from the CLI.Screenshots and measurements to follow.


Confidence Score: 5/5
The PR appears safe to merge, with a non-blocking directory-replacement edge case.Findings
Fix with agent prompt
Summary
Adds separate screen, camera, microphone, and system-audio exports through the desktop editor and CLI.
cap export --trackssaves selected tracks as separate files.All seven supplied earlier threads were unnumbered and manually resolved without explanatory replies.
Reviews (2) · Last reviewed commit: "fix(export): keep the camera track black..." · Reviewed by Greptile