Repository navigation
fix(desktop-gpui): request the Instant link while the capture is built on macOS - #2592
Open
richiemcilroy wants to merge 7 commits into
Open
richiemcilroy wants to merge 7 commits into
richiemcilroy wants to merge 7 commits into
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Member
Author
|
hey @greptileai, please re-review the PR |
… discard finishes
Member
Author
|
hey @greptileai, please re-review the PR |
This was referenced Oct 20, 2026
Member
Author
|
@greptileai review |
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.
With the default countdown of 0, the app builds the recording while the ~0.52 s start chime plays, and the start gate releases capture when the chime ends. For Instant,
start_internalfirst awaitedprepare_instant_upload(the server round trip that creates the shareable link) and only then built the capture. Whenever that round trip plus the build outlasted the chime, capture started late and the first words after the chime were lost. Link creation in a real app log took 0.15, 0.3, 0.5-0.6 and 1.29 s.sequenceDiagram participant UI as Start participant S as Server participant C as Capture build Note over UI,C: before (macOS Instant) UI->>S: create link S-->>UI: link (0.15-1.3 s) UI->>C: build capture C-->>UI: ready (chime may already be over) Note over UI,C: after par UI->>S: create link and UI->>C: build capture end C-->>UI: ready inside the chime S-->>UI: link, awaited before upload setupapps/desktop-gpui/src/recording.rs:PendingInstantVideospawnsprepare_instant_uploadbefore the capture build.start_attempt_with_uploadawaits it afterinstant_recording::Actor::buildand before the upload setup that needs the video id.discard_unpublished_instant_capturecancels the built capture and deletes its project folder, and the same error is returned. If the capture fails, the created link is still deleted as before.StartConfig::start_cancel), the capture is discarded at once, and the link is deleted when it arrives. The phase stays "Starting" until that cleanup is done, so quitting still waits for it. Before, Stop was ignored in this window and the recording went live once the link arrived.Measurements
Isolated app builds, real mic, local mock server with a 0.8 s link delay, 3 runs each, M4 Max:
main

Confidence Score: 5/5
The PR appears safe to merge; both previously reported cleanup problems are addressed.Summary
The PR requests the Instant link while macOS builds capture. The latest change keeps the session busy until a cancelled start finishes cleanup.
Reviews (3) · Last reviewed commit: "fix(desktop-gpui): keep a cancelled Inst..." · Reviewed by Greptile