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
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
fix(ui): only hide window on permission click in timeline page
Louis Beaumont1e673e614add
diff --git a/screenpipe-app-tauri/app/page.tsx b/screenpipe-app-tauri/app/page.tsxindex 6f8971d0a..460a65178 100644--- a/screenpipe-app-tauri/app/page.tsx+++ b/screenpipe-app-tauri/app/page.tsx@@ -208,11 +208,11 @@ export default function Home() {<div className="space-y-3"><div className="flex items-center justify-between"><span className="text-sm font-medium">Screen Recording</span>- <PermissionButtons type="screen" />+ <PermissionButtons type="screen" hideWindowOnClick /></div><div className="flex items-center justify-between"><span className="text-sm font-medium">Audio Recording</span>- <PermissionButtons type="audio" />+ <PermissionButtons type="audio" hideWindowOnClick /></div></div>diff --git a/screenpipe-app-tauri/components/status/permission-buttons.tsx b/screenpipe-app-tauri/components/status/permission-buttons.tsxindex 172fd9882..c65a28987 100644--- a/screenpipe-app-tauri/components/status/permission-buttons.tsx+++ b/screenpipe-app-tauri/components/status/permission-buttons.tsx@@ -9,10 +9,12 @@ import localforage from "localforage";interface PermissionButtonsProps {type: "screen" | "audio";+ hideWindowOnClick?: boolean;}export const PermissionButtons: React.FC<PermissionButtonsProps> = ({type,+ hideWindowOnClick = false,}) => {const { settings } = useSettings();const [permissions, setPermissions] = useState<OSPermissionsCheck | null>(@@ -61,7 +63,9 @@ export const PermissionButtons: React.FC<PermissionButtonsProps> = ({: "microphone";// Hide the main window so user can see the system settings- await commands.closeWindow("Main");+ if (hideWindowOnClick) {+ await commands.closeWindow("Main");+ }await commands.requestPermission(permissionType);@@ -99,7 +103,9 @@ export const PermissionButtons: React.FC<PermissionButtonsProps> = ({: "microphone";// Hide the main window so user can see the system settings- await commands.closeWindow("Main");+ if (hideWindowOnClick) {+ await commands.closeWindow("Main");+ }await commands.openPermissionSettings(permissionType);} catch (error) {