Repository navigation
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
Contributor
|
@jatmn is attempting to deploy a commit to the Cap Software Inc Team on Vercel. A member of the Team first needs to authorize it. |
jatmn
marked this pull request as ready for review
December 2, 2026 19:42
This branch was previously 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.
Refs #2339
What changed
Cap now owns the ScreenCaptureKit stream it uses for each macOS picker thumbnail. It requests a stop after receiving a frame or after the capture deadline expires. The stop acknowledgement has its own deadline, so a slow stop cannot block the picker indefinitely. The earlier timeout in #2460 returned control to Cap without giving it a native stream handle to stop.
Cap requests BGRA for thumbnail streams so an odd-width frame can use the packed-pixel conversion path. On macOS, the previous NV12 conversion rejected a 69-pixel-wide frame from a narrow window, leaving its thumbnail blank.
The native stop callback retains the stream, output queue, and delegate until completion. If waiting for the stop acknowledgement times out, Cap pauses further captures and keeps any frame it already received.
Validation
cargo check --locked -p cap-desktop-gpui, scoped Rust formatting, and a focused timeout test with a simulated frame source and stop operation.cargo build --locked --bin cap-gpuiandcargo check --locked -p cap-desktop-gpuipassed.cargo test --locked --bin cap-gpui target_thumbnails::tests -- --test-threads=1passed all 30 picker tests.cargo test --locked -p scap-screencapturekit --libpassed the native delegate deallocation test.macOS verification
replaydlog contained 44 matched stream start and stop pairs in the live picker run and 67 in the sleep/wake run. Control Center showed no active capture after quit. The lock screen showed no “Your screen is being observed” message.replaydlogged four matched stream start and stop pairs.Capture attribution was checked using the system log filter from the original report.
log stream --style compact --predicate '(process == "ControlCenter" AND category == "sensor-indicators") OR (process == "replayd" AND eventMessage CONTAINS "SLContentStream")'macOS-tested commit
0405953775348bb6d9df9752ffa0aaef2f7a002d.Confidence Score: 5/5

The PR appears safe to merge; no actionable defects were found.Summary
Replaces macOS picker screenshots with owned ScreenCaptureKit streams.
Reviews (1) · Last reviewed commit: "fix(desktop-gpui): retain thumbnail stre..." · Reviewed by Greptile