You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Linux capture stopped while paused retains cursor samples from the paused interval #1637
I’m doing some research for Tessl Code Review and ran it against your repo. It flagged a potential issue, and I figured it made sense to share it with you:
The Linux capture result can retain cursor samples from a paused interval when the helper stops before the app calls stop(). This surfaced while reviewing merged PR #1275. I checked current main at 01914391 and reproduced the event sequence against the actual LinuxNativeCaptureSession class.
The capture-stopped handler compacts cursor data using completed pause ranges, but does not close the active range first. A later stop() closes the range, then returns the snapshot already stored in this.stopped.
Reproduction
Using synthetic helper events and a controlled clock:
Deliver capture-started at 1000 ms.
Deliver a cursor sample at 1100 ms.
Call pause() at 1200 ms, then deliver another cursor sample at 1300 ms.
Deliver capture-stopped at 1500 ms with a 200 ms video duration, before calling the app's stop().
Call stop() at 1600 ms and inspect result.cursor.samples.
Actual sample times are [100, 300]: the sample from the pause remains, beyond the video's 200 ms duration. As a control, completing the pause range at 1500 ms before delivering capture-stopped produces [100].
The helper continues emitting cursor samples while paused, and its finish_capture path can emit CaptureStopped after an independent loop exit, so this ordering is not limited to an app-initiated stop.
Expected behavior
Close the active pause range before constructing the stopped snapshot, using the helper's stop timestamp where appropriate. Cursor telemetry should exclude the paused interval regardless of which side initiates the stop.
Validation was a local TypeScript event-sequence test on macOS, not a full Linux/PipeWire recording or export. I searched existing issues and did not find this specific case.
Full transparency: I work at Tessl, and we've spotted that using Tessl Code Review - using repository-level context and specific review lenses that improve over time through feedback. That’s how this finding surfaced.
We’re just getting started and want to offer the tool free to open-source projects. If this is useful, happy to give you access.
Fixed in main by #1645: stopping a Linux capture while paused no longer keeps the cursor samples from the paused interval. It will ship in the next release. Thanks again for the precise report!
Great to hear the report was helpful, @EtienneLescot! Great to see this has been fixed.
As mentioned, we’re giving free access to Code Review to a couple of OSS repos. You can create your Tessl account, send me your OSS org name and I’ll sort out the access.
I'm also happy to jump on a 15-min chat to show you how your coding agent and Code Review can work together to find and fix issues like this. This means you can address a larger chunk of your issues.
Activity
fix(capture): close an open pause before a Linux take's stopped snapshot
EtienneLescot commentedon Nov 23, 2026
Fixed in main by #1645: stopping a Linux capture while paused no longer keeps the cursor samples from the paused interval. It will ship in the next release. Thanks again for the precise report!
fernandezbaptiste commentedon Nov 26, 2026
Great to hear the report was helpful, @EtienneLescot! Great to see this has been fixed.
As mentioned, we’re giving free access to Code Review to a couple of OSS repos. You can create your Tessl account, send me your OSS org name and I’ll sort out the access.
I'm also happy to jump on a 15-min chat to show you how your coding agent and Code Review can work together to find and fix issues like this. This means you can address a larger chunk of your issues.
Bap