Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix: screen recording setting applies to chat when re-shown

Louis Beaumont206107ba4cc3
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/window_api.rs b/apps/screenpipe-app-tauri/src-tauri/src/window_api.rs
index 40ff78f25..2ced0837d 100644
--- a/apps/screenpipe-app-tauri/src-tauri/src/window_api.rs
+++ b/apps/screenpipe-app-tauri/src-tauri/src/window_api.rs
@@ -503,6 +503,10 @@ impl ShowRewindWindow {
{
// NOTE: Accessory mode removed — it hides dock icon and tray on notched MacBooks
+ let capturable = SettingsStore::get(app)
+ .unwrap_or_default()
+ .unwrap_or_default()
+ .show_overlay_in_screen_recording;
let app_clone = app.clone();
app.run_on_main_thread(move || {
use tauri_nspanel::cocoa::appkit::NSWindowCollectionBehavior;
@@ -511,6 +515,8 @@ impl ShowRewindWindow {
if let Ok(panel) = app_clone.get_webview_panel(RewindWindowId::Chat.label()) {
panel.set_level(1001);
let _: () = unsafe { msg_send![&*panel, setMovableByWindowBackground: true] };
+ let sharing: u64 = if capturable { 1 } else { 0 };
+ let _: () = unsafe { msg_send![&*panel, setSharingType: sharing] };
panel.set_collection_behaviour(
NSWindowCollectionBehavior::NSWindowCollectionBehaviorMoveToActiveSpace |
NSWindowCollectionBehavior::NSWindowCollectionBehaviorFullScreenAuxiliary