From eb5e9d973aa0c642a4a402538c3a4a389143d12c Mon Sep 17 00:00:00 2001 From: Nakul Srivastava Date: Fri, 27 Nov 2026 20:00:13 +0530 Subject: [PATCH 1/2] fix(record): load cursor tracks in Studio; add Show cursor recorder setting The CSP connect-src blocked fetching cursor.json from the asset protocol, so Studio treated every recording as having no cursor track. Allow the asset origin. Add a Show cursor recorder toggle (on by default) that burns the hardware pointer into the video; Studio starts with its own pointer off for those recordings. --- CHANGELOG-PUBLIC.md | 2 ++ apps/desktop/src-tauri/src/domain.rs | 6 ++++++ .../src/platform/windows_recorder/mod.rs | 3 +++ apps/desktop/src-tauri/tauri.conf.json | 2 +- .../src/components/RecorderDock.test.tsx | 1 + apps/desktop/src/components/RecorderDock.tsx | 13 ++++++++++++- .../components/dashboard/RecordView.test.tsx | 1 + .../dashboard/RecordingPreview.test.tsx | 1 + .../components/dashboard/StudioView.test.tsx | 1 + .../src/components/dashboard/StudioView.tsx | 5 ++++- .../dashboard/studio/StudioPanels.tsx | 7 +++++++ apps/desktop/src/domain/recording.test.ts | 10 +++++++++- apps/desktop/src/domain/recording.ts | 17 ++++++++++------- docs/current-status.md | 2 +- 14 files changed, 59 insertions(+), 12 deletions(-) diff --git a/CHANGELOG-PUBLIC.md b/CHANGELOG-PUBLIC.md index f66c6ba..18a0d65 100644 --- a/CHANGELOG-PUBLIC.md +++ b/CHANGELOG-PUBLIC.md @@ -10,6 +10,7 @@ User-facing changes only, grouped by date under Added / Improved / Fixed. - Browser extension: Font tool. Hover any text to see its font, size, weight, line height and colour; click to copy it as CSS. Alt+Shift+F or right-click → CapKit → Font. - Browser extension: Colour tool. Hover to see an element's text, background and border colours; click to lock it and copy any of them as HEX. Press E to pick any pixel on screen. Alt+Shift+K or right-click → CapKit → Colour. - Screen record: hover a recording to copy the video file (paste it into a folder, chat or email) or show it in its folder. +- Screen record: a Show cursor option in the recorder's settings, on by default, puts the mouse pointer in the video file itself, so it shows in any player. Zoom on click still works, and Edit doesn't draw a second pointer on top. ### Improved @@ -19,6 +20,7 @@ User-facing changes only, grouped by date under Added / Improved / Fixed. ### Fixed - Browser extension: after the extension updates, its tools start on pages that were already open, instead of asking you to reload the page. +- Screen record: Edit said every recording had no cursor track, so the pointer, smoothing and zoom on click were missing in Edit and in exports. Fixed, including for recordings you already made. ## 0.6.2 — 2026-11-26 diff --git a/apps/desktop/src-tauri/src/domain.rs b/apps/desktop/src-tauri/src/domain.rs index f36d318..54ba536 100644 --- a/apps/desktop/src-tauri/src/domain.rs +++ b/apps/desktop/src-tauri/src/domain.rs @@ -494,6 +494,10 @@ pub struct RecordingArtifactsDto { pub system_audio_path: Option, pub microphone_path: Option, pub camera_path: Option, + /// The hardware pointer is drawn into the video frames, so the editor + /// should not draw a second one from the cursor track. + #[serde(default)] + pub cursor_in_video: bool, pub width: u32, pub height: u32, pub fps: u32, @@ -587,6 +591,7 @@ mod request_tests { system_audio_path: None, microphone_path: None, camera_path: Some("camera.mp4".into()), + cursor_in_video: true, width: 1920, height: 1080, fps: 30, @@ -595,6 +600,7 @@ mod request_tests { }) .expect("artifacts serialize"); assert_eq!(value["cameraPath"], "camera.mp4"); + assert_eq!(value["cursorInVideo"], true); } #[test] diff --git a/apps/desktop/src-tauri/src/platform/windows_recorder/mod.rs b/apps/desktop/src-tauri/src/platform/windows_recorder/mod.rs index 788e100..e2fba1c 100644 --- a/apps/desktop/src-tauri/src/platform/windows_recorder/mod.rs +++ b/apps/desktop/src-tauri/src/platform/windows_recorder/mod.rs @@ -346,6 +346,7 @@ pub struct WindowsRecordingSession { worker: Option>>, outcome: Arc>>, pointer: Option, + cursor_in_video: bool, system_audio: Option, microphone: Option, } @@ -518,6 +519,7 @@ impl WindowsRecordingSession { worker: Some(worker), outcome, pointer, + cursor_in_video: request.capture_cursor, system_audio, microphone, }, @@ -599,6 +601,7 @@ impl RecordingSession for WindowsRecordingSession { microphone_path: microphone_path.map(|path| path.to_string_lossy().into_owned()), // The service sets the real path after the camera file closes. camera_path: None, + cursor_in_video: self.cursor_in_video, width: self.width, height: self.height, fps: self.fps, diff --git a/apps/desktop/src-tauri/tauri.conf.json b/apps/desktop/src-tauri/tauri.conf.json index c8d5dd9..f75e7c9 100644 --- a/apps/desktop/src-tauri/tauri.conf.json +++ b/apps/desktop/src-tauri/tauri.conf.json @@ -42,7 +42,7 @@ } ], "security": { - "csp": "default-src 'self' customprotocol: asset:; img-src 'self' asset: http://asset.localhost blob: data:; media-src 'self' asset: http://asset.localhost blob:; style-src 'self' 'unsafe-inline'; connect-src ipc: http://ipc.localhost", + "csp": "default-src 'self' customprotocol: asset:; img-src 'self' asset: http://asset.localhost blob: data:; media-src 'self' asset: http://asset.localhost blob:; style-src 'self' 'unsafe-inline'; connect-src ipc: http://ipc.localhost asset: http://asset.localhost", "assetProtocol": { "enable": true, "scope": [ diff --git a/apps/desktop/src/components/RecorderDock.test.tsx b/apps/desktop/src/components/RecorderDock.test.tsx index 8158d3e..f6aee71 100644 --- a/apps/desktop/src/components/RecorderDock.test.tsx +++ b/apps/desktop/src/components/RecorderDock.test.tsx @@ -39,6 +39,7 @@ const artifacts: RecordingArtifacts = { systemAudioPath: null, microphonePath: null, cameraPath: null, + cursorInVideo: false, width: 2560, height: 1440, fps: 30, diff --git a/apps/desktop/src/components/RecorderDock.tsx b/apps/desktop/src/components/RecorderDock.tsx index c63222d..d018133 100644 --- a/apps/desktop/src/components/RecorderDock.tsx +++ b/apps/desktop/src/components/RecorderDock.tsx @@ -42,7 +42,7 @@ import { stopRecording, } from "../lib/recordingTauri"; import { describeInvokeError } from "../lib/tauri"; -import { Cancel, ChevronDown, Computer, Crop, Delete, Grip, Keyboard, Mic, Pause, Play, Record, Settings, Speaker, Stop, Video } from "./icons"; +import { Cancel, ChevronDown, Computer, Crop, Delete, Grip, Keyboard, Mic, Pause, Play, Record, SelectPointer, Settings, Speaker, Stop, Video } from "./icons"; type Phase = "setup" | "counting" | "recording" | "saving"; @@ -668,6 +668,17 @@ export function RecorderDock(): React.JSX.Element { + +