Skip to content

feat: export separate screen, camera and audio tracks - #4301

Open
richiemcilroy wants to merge 9 commits into
mainfrom
feat/track-export
Open

richiemcilroy wants to merge 9 commits into
mainfrom
feat/track-export

Conversation

@richiemcilroy

@richiemcilroy richiemcilroy commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

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 --tracks writes the same files from the CLI.

Screenshots and measurements to follow.

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge, with a non-blocking directory-replacement edge case.

Findings

  1. P2 Existing directories get hidden ▶
Fix with agent prompt
### Issue 1
crates/export/src/tracks.rs:331-333
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.

Summary

Adds separate screen, camera, microphone, and system-audio exports through the desktop editor and CLI.

  • Each exported track follows the edited timeline.
  • The editor exports selected recording tracks into a folder.
  • cap export --tracks saves 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

@vercel

vercel Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
cap-status Ignored Ignored Preview Nov 17, 2026 1:22am UTC

@vercel
vercel Bot temporarily deployed to Preview – cap-status November 16, 2026 23:17 Inactive
@richiemcilroy
richiemcilroy marked this pull request as ready for review November 16, 2026 23:46
@sandchest-com

sandchest-com Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Sandchest

Sandchest reviewed 19b4020: nothing exploitable found in this change.

Sandchest reviews every change for vulnerabilities an attacker could use · 2 credits · Review details

@capy-ai capy-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Capy found 3 potential issues (3 medium).

View 1 other finding in Capy.

Open in Capy

Comment thread crates/export/src/tracks.rs Resolved
Comment thread crates/export/src/tracks.rs Resolved
Comment thread crates/export/src/tracks.rs Resolved
Comment thread crates/export/src/tracks.rs Resolved
Comment thread crates/export/src/tracks.rs Resolved
Comment thread crates/export/src/tracks.rs Resolved
Comment thread crates/export/src/tracks.rs Resolved
Comment thread crates/export/src/tracks.rs Resolved
Comment thread crates/export/src/tracks.rs Resolved
Comment thread apps/desktop-gpui/src/editor_export.rs Resolved

@capy-ai capy-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Capy found no issues.

View 2 other findings in Capy.

Open in Capy

@richiemcilroy

Copy link
Copy Markdown
Member Author

hey @greptileai, please re-review the PR

@capy-ai capy-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Capy found no issues.

View 1 other finding in Capy.

Open in Capy

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) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 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

1 active (outdated) and 1 inactive (outdated) deployments
Preview – cap-web — f6751459 Deployed Nov 17, 2026 by vercel[bot]
Preview – cap-status — c6640df0 Deployed Nov 16, 2026 by vercel[bot]
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