Cursor telemetry is saved next to the webcam file, so the screen recording has none (auto-zoom/cursor effects missing when webcam is on)
Summary
When a recording uses the browser capture path (e.g. Linux) with the webcam enabled, the session's cursor telemetry ends up in recording-<ts>-webcam.mp4.cursor.json, and no recording-<ts>.webm.cursor.json is written for the screen recording. The editor loads telemetry for the screen recording, gets 0 samples, and auto-zoom suggestions and cursor effects have nothing to work with.
Environment
- Recordly 1.4.0 (official AppImage)
- Kali Linux rolling, XFCE, X11
- Webcam and microphone enabled
Steps to reproduce
- Enable the webcam overlay in the HUD.
- Record for ~10 s while moving the mouse, then stop.
- Look in the recordings folder.
Expected: recording-<ts>.webm.cursor.json exists, and the editor shows cursor effects and auto-zoom suggestions.
Actual: only recording-<ts>-webcam.mp4.cursor.json exists. getCursorTelemetry(<screen .webm path>) returns 0 samples.
Root cause
useScreenRecorder.ts stores the webcam companion via storeRecordedVideo(...) before the screen recording. Both go through the store-recorded-video handler → finalizeStoredVideo(videoPath) (electron/ipc/recording/mac.ts), which calls:
snapshotCursorTelemetryForPersistence();
setCurrentVideoPath(videoPath);
...
await persistPendingCursorTelemetry(videoPath); // writes <path>.cursor.json, then setPendingCursorSamples([])So the first file stored, the webcam companion, receives the telemetry and clears pendingCursorSamples. When the screen recording is finalized right after, there is nothing left to persist.
Suggested fix
Don't run the screen-recording finalize steps for the webcam companion file. It only needs to be written and validated. I have a small PR ready: it adds isWebcamCompanionRecordingPath() to electron/ipc/recording/storagePath.ts (with tests), and makes store-recorded-video return early for webcam companions.
Verified locally: the equivalent change on the 1.4.0 build writes recording-<ts>.webm.cursor.json, and the editor loads its samples (108 in a 10 s test; 0 before).
Source: webadderallorg/Recordly