Merge pull request #457 from shaun0927/fix/cursor-telemetry-session-isolation

fix: isolate cursor telemetry samples per recording session
This commit is contained in:
Sid
2026-04-28 08:08:08 -07:00
committed by GitHub
6 changed files with 529 additions and 29 deletions
+2 -1
View File
@@ -308,6 +308,7 @@ export function useScreenRecorder(): UseScreenRecorderReturn {
try {
const screenBlob = await activeScreenRecorder.recordedBlobPromise;
if (discardRecordingId.current === activeRecordingId) {
window.electronAPI?.discardCursorTelemetry(activeRecordingId);
return;
}
if (screenBlob.size === 0) {
@@ -772,7 +773,7 @@ export function useScreenRecorder(): UseScreenRecorderReturn {
setRecording(true);
setPaused(false);
setElapsedSeconds(0);
window.electronAPI?.setRecordingState(true);
window.electronAPI?.setRecordingState(true, recordingId.current);
const activeScreenRecorder = screenRecorder.current;
const activeWebcamRecorder = webcamRecorder.current;