hex/crates/router/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Kit Langton 7727ce0af3
fix(capture): finish the screen recording before stopping it, via capture-core (#258)
* feat(capture-core): set_exclusions

Recording::set_exclusions changes which windows and apps a live recording leaves out, without stopping it. Display and region streams rebuild their filter; window streams are left alone. A stopped recording ignores it.

* fix(capture): finish the screen recording before stopping its stream

The macOS screen recording now runs on capture-core's Recorder: one source per target, cursor baked in, no audio or input. The core detaches the movie before it stops the stream and finishes it on its own bounded thread, holding the final frame to the stop and writing capture.json beside recording.mp4.

ScreenCaptureSession::stop stays instant and hands back a Movie that may still be finishing. Only the steps that read recording.mp4 wait for it, video_offset_ms comes from the movie's first frame on the host clock, and a discarded capture's bundle is removed only once the movie is done. Frames decoded past the capture's end (the held tail) are dropped. The router keeps capture.json in its first, light copy. Exclusion changes mid-recording go through Recording::set_exclusions.
2026-10-27 21:15:34 -07:00
..
routing Capture Undo: never commit over new input or leave a revert staged 2026-10-26 23:11:43 -07:00
bundle.rs Import Scrawl's router crate 2026-10-25 15:07:14 -07:00
config.rs Import Scrawl's router crate 2026-10-25 15:07:14 -07:00
delivery.rs Capture sends: review fixes 2026-10-27 07:57:00 -07:00
env.rs Capture sends: say why one queued, log it, and retry only this Mac's markers 2026-10-27 07:57:00 -07:00
lib.rs Capture sends: say why one queued, log it, and retry only this Mac's markers 2026-10-27 07:57:00 -07:00
model.rs Import Scrawl's router crate 2026-10-25 15:07:14 -07:00
opencode.rs fix(capture): finish the screen recording before stopping it, via capture-core (#258) 2026-10-27 21:15:34 -07:00
routing.rs Captures: rules send whatever the routing flags, and the look keeps to one deadline 2026-10-26 21:02:52 -07:00
util.rs Capture sends: review fixes 2026-10-27 07:57:00 -07:00