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

Bump app to v2.2.29 — modernize tray menu, chat always-on-top toggle, dark scroll button

Louis Beaumontb6c363e53ece
diff --git a/apps/screenpipe-app-tauri/components/rewind/current-frame-timeline.tsx b/apps/screenpipe-app-tauri/components/rewind/current-frame-timeline.tsx
index 53b953262..63a117005 100644
--- a/apps/screenpipe-app-tauri/components/rewind/current-frame-timeline.tsx
+++ b/apps/screenpipe-app-tauri/components/rewind/current-frame-timeline.tsx
@@ -259,12 +259,20 @@ export const CurrentFrameTimeline: FC<CurrentFrameTimelineProps> = ({
videoRef,
});
- // Hide overlay immediately when raw frameId changes (before debounce settles),
+ // Hide overlay when raw frameId changes (before debounce settles),
// so stale text selection doesn't linger while scrolling.
+ // Throttled: only one IPC call per 150ms to avoid blocking JS during fast scroll.
+ const hideTimerRef = useRef<ReturnType<typeof setTimeout> | null>(null);
+ const lastHideFrameRef = useRef<string | null>(null);
useEffect(() => {
- if (nativeLiveTextActive) {
+ if (!nativeLiveTextActive) return;
+ if (lastHideFrameRef.current === frameId) return;
+ lastHideFrameRef.current = frameId;
+ if (hideTimerRef.current) return; // already scheduled
+ hideTimerRef.current = setTimeout(() => {
+ hideTimerRef.current = null;
invoke("livetext_hide").catch(() => {});
- }
+ }, 150);
}, [nativeLiveTextActive, frameId]);
if (!frameId) {
diff --git a/apps/screenpipe-app-tauri/components/rewind/timeline/timeline.tsx b/apps/screenpipe-app-tauri/components/rewind/timeline/timeline.tsx
index 2984761b7..fb16e55e8 100644
--- a/apps/screenpipe-app-tauri/components/rewind/timeline/timeline.tsx
+++ b/apps/screenpipe-app-tauri/components/rewind/timeline/timeline.tsx
@@ -1253,11 +1253,10 @@ export const TimelineSlider = ({
group.topDomains.slice(0, groupWidth > 60 ? 2 : 1).map((domain, idx) => (
<motion.div
key={`fav-${domain}-${idx}`}
- className="w-5 h-5 rounded-md flex-shrink-0 overflow-hidden flex items-center justify-center"
+ className="w-5 h-5 rounded-full flex-shrink-0 overflow-hidden flex items-center justify-center ring-1 ring-white/20 shadow-sm shadow-black/30"
style={{
zIndex: 10 - idx,
position: 'relative',
- backgroundColor: appNameToColor(group.appName, 0.3),
}}
variants={{
collapsed: {
@@ -1275,7 +1274,7 @@ export const TimelineSlider = ({
domain={domain}
fallbackAppName={group.appName}
size={20}
- className="w-full h-full rounded-sm object-cover"
+ className="w-full h-full object-cover"
/>
</motion.div>
))
diff --git a/apps/screenpipe-app-tauri/components/settings/account-section.tsx b/apps/screenpipe-app-tauri/components/settings/account-section.tsx
index f367d423f..93d33d698 100644
--- a/apps/screenpipe-app-tauri/components/settings/account-section.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/account-section.tsx
@@ -276,8 +276,9 @@ export function AccountSection() {
</div>
{settings.pipeSyncEnabled && (
<Button
- variant="outline"
+ variant="ghost"
size="sm"
+ className="text-xs uppercase tracking-wide"
disabled={pipeSyncing}
onClick={async () => {
setPipeSyncing(true);
diff --git a/apps/screenpipe-app-tauri/components/settings/feedback-section.tsx b/apps/screenpipe-app-tauri/components/settings/feedback-section.tsx
index d32776bba..d47e5b333 100644
--- a/apps/screenpipe-app-tauri/components/settings/feedback-section.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/feedback-section.tsx
@@ -5,7 +5,7 @@
import React, { useState } from "react";
import { ShareLogsButton } from "@/components/share-logs-button";
-import { MessageSquare, Github, Lightbulb, ChevronDown, ChevronUp } from "lucide-react";
+import { MessageSquare, Github, Lightbulb, ChevronDown, ChevronUp, Calendar, FileText } from "lucide-react";
import { open } from "@tauri-apps/plugin-shell";
import { useSettings } from "@/lib/hooks/use-settings";
import { IntercomChat } from "./intercom-chat";
@@ -74,6 +74,42 @@ export function FeedbackSection() {
</div>
</div>
+ <div className="px-3 py-2.5 bg-card border border-border">
+ <div className="flex items-center justify-between">
+ <div className="flex items-center gap-2.5">
+ <FileText className="h-4 w-4 text-muted-foreground shrink-0" />
+ <div>
+ <h3 className="text-sm font-medium text-foreground">Changelog</h3>
+ <p className="text-xs text-muted-foreground">what&apos;s new in each version</p>
+ </div>
+ </div>
+ <button
+ onClick={() => open("https://screenpi.pe/changelog")}
+ className="text-xs text-muted-foreground hover:text-foreground transition-colors duration-150"
+ >
+ screenpi.pe/changelog →
+ </button>
+ </div>
+ </div>
+
+ <div className="px-3 py-2.5 bg-card border border-border">
+ <div className="flex items-center justify-between">
+ <div className="flex items-center gap-2.5">
+ <Calendar className="h-4 w-4 text-muted-foreground shrink-0" />
+ <div>
+ <h3 className="text-sm font-medium text-foreground">Book a call</h3>
+ <p className="text-xs text-muted-foreground">talk with the founder</p>
+ </div>
+ </div>
+ <button
+ onClick={() => open("https://cal.com/team/screenpipe/chat")}
+ className="text-xs text-muted-foreground hover:text-foreground transition-colors duration-150"
+ >
+ schedule →
+ </button>
+ </div>
+ </div>
+
{/* Live chat — only visible when logged in */}
{isLoggedIn && (
<div className="bg-card border border-border">
diff --git a/apps/screenpipe-app-tauri/components/settings/sync-settings.tsx b/apps/screenpipe-app-tauri/components/settings/sync-settings.tsx
index a6db9afce..6f7ee52bc 100644
--- a/apps/screenpipe-app-tauri/components/settings/sync-settings.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/sync-settings.tsx
@@ -512,17 +512,18 @@ function ActiveSyncSettings({
)}
</div>
<Button
- variant="outline"
+ variant="ghost"
size="sm"
+ className="text-xs uppercase tracking-wide"
onClick={onTriggerSync}
disabled={isSyncing || status.isSyncing}
>
<RefreshCw
- className={`h-4 w-4 mr-2 ${
+ className={`h-3 w-3 mr-1.5 ${
isSyncing || status.isSyncing ? "animate-spin" : ""
}`}
/>
- Sync Now
+ sync now
</Button>
</div>
diff --git a/apps/screenpipe-app-tauri/lib/utils/tauri.ts b/apps/screenpipe-app-tauri/lib/utils/tauri.ts
index 43630400f..f4bab0963 100644
--- a/apps/screenpipe-app-tauri/lib/utils/tauri.ts
+++ b/apps/screenpipe-app-tauri/lib/utils/tauri.ts
@@ -1053,7 +1053,11 @@ showOverlayInScreenRecording?: boolean;
* Affects H.265 CRF during recording and JPEG quality during frame extraction.
* Values: "low", "balanced", "high", "max". Default: "balanced".
*/
-videoQuality?: string }
+videoQuality?: string;
+/**
+ * When true, the chat window stays above all other windows (default: true).
+ */
+chatAlwaysOnTop?: boolean }
export type ShowRewindWindow = "Main" | { Settings: { page: string | null } } | { Search: { query: string | null } } | "Onboarding" | "Chat" | "PermissionRecovery"
export type Suggestion = { text: string }
/**
diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml b/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
index 84726a2fe..51049a5d5 100644
--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "screenpipe-app"
-version = "2.2.28"
+version = "2.2.29"
description = "24/7 memory for your desktop. 100% local."
authors = ["you"]
license = ""
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/tray.rs b/apps/screenpipe-app-tauri/src-tauri/src/tray.rs
index 362387974..9a5e3a068 100644
--- a/apps/screenpipe-app-tauri/src-tauri/src/tray.rs
+++ b/apps/screenpipe-app-tauri/src-tauri/src/tray.rs
@@ -5,7 +5,7 @@
use crate::commands::show_main_window;
use crate::health::{get_recording_info, get_recording_status, DeviceKind, RecordingStatus};
use crate::recording::RecordingState;
-use crate::store::{get_store, OnboardingStore};
+use crate::store::{get_store, OnboardingStore, SettingsStore};
use crate::updates::{is_enterprise_build, is_source_build};
use crate::window_api::ShowRewindWindow;
use anyhow::Result;
@@ -283,49 +283,55 @@ fn create_dynamic_menu(
.and_then(|v| v.as_str().map(String::from))
.unwrap_or_else(|| default_chat.to_string());
- // Open screenpipe (settings window) at the top
+ // --- Header: version ---
+ let is_beta = app.config().identifier.contains("beta");
+ let version_text = if is_beta {
+ format!("screenpipe v{} (Beta)", app.package_info().version)
+ } else {
+ format!("screenpipe v{}", app.package_info().version)
+ };
menu_builder = menu_builder
- .item(&MenuItemBuilder::with_id("settings", "Open screenpipe").build(app)?)
+ .item(
+ &MenuItemBuilder::with_id("version", version_text)
+ .enabled(false)
+ .build(app)?,
+ )
.item(&PredefinedMenuItem::separator(app)?);
- // Show timeline, search, and chat items with shortcuts
+ // --- Primary actions (most-used first) ---
+ // Use native accelerators for right-aligned shortcut display (like Notion Calendar)
menu_builder = menu_builder
.item(
- &MenuItemBuilder::with_id(
- "show",
- format!("Show timeline ({})", format_shortcut(&show_shortcut)),
- )
- .build(app)?,
+ &MenuItemBuilder::with_id("show_chat", "Chat")
+ .accelerator(&to_accelerator(&chat_shortcut))
+ .build(app)?,
)
.item(
- &MenuItemBuilder::with_id(
- "show_search",
- format!("Show search ({})", format_shortcut(&search_shortcut)),
- )
- .build(app)?,
+ &MenuItemBuilder::with_id("show_search", "Search")
+ .accelerator(&to_accelerator(&search_shortcut))
+ .build(app)?,
)
.item(
- &MenuItemBuilder::with_id(
- "show_chat",
- format!("Show chat ({})", format_shortcut(&chat_shortcut)),
- )
- .build(app)?,
+ &MenuItemBuilder::with_id("show", "Timeline")
+ .accelerator(&to_accelerator(&show_shortcut))
+ .build(app)?,
);
- // Recording status indicator
+ // --- Recording status + devices ---
let status_text = match get_recording_status() {
RecordingStatus::Starting => "○ Starting…",
RecordingStatus::Recording => "● Recording",
RecordingStatus::Stopped => "○ Stopped",
RecordingStatus::Error => "○ Error",
};
- menu_builder = menu_builder.item(
- &MenuItemBuilder::with_id("recording_status", status_text)
- .enabled(false)
- .build(app)?,
- );
+ menu_builder = menu_builder
+ .item(&PredefinedMenuItem::separator(app)?)
+ .item(
+ &MenuItemBuilder::with_id("recording_status", status_text)
+ .enabled(false)
+ .build(app)?,
+ );
- // Show active devices under recording status
if get_recording_status() == RecordingStatus::Recording
|| get_recording_status() == RecordingStatus::Starting
{
@@ -346,7 +352,7 @@ fn create_dynamic_menu(
}
}
- // Show "fix permissions" item when recording is in error state and permissions are denied
+ // Show "fix permissions" when recording is in error state
if get_recording_status() == RecordingStatus::Error {
let perms = crate::permissions::do_permissions_check(false);
let has_permission_issue =
@@ -358,51 +364,78 @@ fn create_dynamic_menu(
}
}
- // Version and update items
- let is_beta = app.config().identifier.contains("beta");
- let version_text = if is_beta {
- format!("Version {} (Beta)", app.package_info().version)
- } else {
- format!("Version {}", app.package_info().version)
- };
- menu_builder = menu_builder
- .item(&PredefinedMenuItem::separator(app)?)
- .item(
- &MenuItemBuilder::with_id("version", version_text)
+ // --- Plan / usage info ---
+ let settings = SettingsStore::get(app).unwrap_or_default().unwrap_or_default();
+ let is_pro = settings.user.cloud_subscribed == Some(true);
+ menu_builder = menu_builder.item(&PredefinedMenuItem::separator(app)?);
+ if is_pro {
+ menu_builder = menu_builder.item(
+ &MenuItemBuilder::with_id("plan_info", "Pro plan")
.enabled(false)
.build(app)?,
);
- if let Some(update_item) = update_item {
- menu_builder = menu_builder.item(update_item);
+ } else {
+ menu_builder = menu_builder
+ .item(
+ &MenuItemBuilder::with_id("plan_info", "Free plan")
+ .enabled(false)
+ .build(app)?,
+ )
+ .item(
+ &MenuItemBuilder::with_id("upgrade", "⚡ Upgrade to Pro").build(app)?,
+ );
}
- menu_builder =
- menu_builder.item(&MenuItemBuilder::with_id("releases", "Changelog").build(app)?);
- // Only show recording controls if not in dev mode
- let dev_mode = store
- .get("devMode")
- .and_then(|v| v.as_bool())
- .unwrap_or(false);
- if !dev_mode {
+ // --- Update item (if available) ---
+ if let Some(update_item) = update_item {
menu_builder = menu_builder
.item(&PredefinedMenuItem::separator(app)?)
- .item(&MenuItemBuilder::with_id("start_recording", "Start recording").build(app)?)
- .item(&MenuItemBuilder::with_id("stop_recording", "Stop recording").build(app)?);
+ .item(update_item);
}
- // Help and quit
- menu_builder = menu_builder.item(&PredefinedMenuItem::separator(app)?);
- #[cfg(target_os = "macos")]
- {
- menu_builder = menu_builder
- .item(&MenuItemBuilder::with_id("check_permissions", "Check permissions").build(app)?);
+ // --- Recording controls ---
+ let (default_start_rec, default_stop_rec) = if cfg!(target_os = "windows") {
+ ("Alt+Shift+U", "Alt+Shift+X")
+ } else {
+ ("Super+Ctrl+U", "Super+Ctrl+X")
+ };
+ let start_rec_shortcut = store
+ .get("startRecordingShortcut")
+ .and_then(|v| v.as_str().map(String::from))
+ .unwrap_or_else(|| default_start_rec.to_string());
+ let stop_rec_shortcut = store
+ .get("stopRecordingShortcut")
+ .and_then(|v| v.as_str().map(String::from))
+ .unwrap_or_else(|| default_stop_rec.to_string());
+
+ menu_builder = menu_builder
+ .item(&PredefinedMenuItem::separator(app)?);
+
+ let mut start_builder = MenuItemBuilder::with_id("start_recording", "Start recording");
+ if !start_rec_shortcut.is_empty() {
+ start_builder = start_builder.accelerator(&to_accelerator(&start_rec_shortcut));
+ }
+ menu_builder = menu_builder.item(&start_builder.build(app)?);
+
+ let mut stop_builder = MenuItemBuilder::with_id("stop_recording", "Stop recording");
+ if !stop_rec_shortcut.is_empty() {
+ stop_builder = stop_builder.accelerator(&to_accelerator(&stop_rec_shortcut));
}
+ menu_builder = menu_builder.item(&stop_builder.build(app)?);
+
+ // --- Settings + Quit ---
menu_builder = menu_builder
- .item(&MenuItemBuilder::with_id("feedback", "Send feedback").build(app)?)
- .item(&MenuItemBuilder::with_id("book_call", "Book a call with founder").build(app)?)
- .item(&MenuItemBuilder::with_id("onboarding", "Onboarding").build(app)?)
.item(&PredefinedMenuItem::separator(app)?)
- .item(&MenuItemBuilder::with_id("quit", "Quit screenpipe").build(app)?);
+ .item(
+ &MenuItemBuilder::with_id("settings", "Settings...")
+ .accelerator("CmdOrCtrl+,")
+ .build(app)?,
+ )
+ .item(
+ &MenuItemBuilder::with_id("quit", "Quit screenpipe")
+ .accelerator("CmdOrCtrl+Q")
+ .build(app)?,
+ );
menu_builder.build().map_err(Into::into)
}
@@ -468,6 +501,14 @@ fn handle_menu_event(app_handle: &AppHandle, event: tauri::menu::MenuEvent) {
let _ = ShowRewindWindow::PermissionRecovery.show(&app);
});
}
+ "upgrade" => {
+ let app = app_handle.clone();
+ let _ = app_handle.run_on_main_thread(move || {
+ let _ = app
+ .opener()
+ .open_url("https://screenpi.pe/pro", None::<&str>);
+ });
+ }
"releases" => {
let app = app_handle.clone();
let _ = app_handle.run_on_main_thread(move || {
@@ -736,62 +777,11 @@ pub fn setup_tray_menu_updater(app: AppHandle, update_item: &tauri::menu::MenuIt
});
}
-fn format_shortcut(shortcut: &str) -> String {
- // Format shortcut for display in tray menu
- // macOS convention: ⌘ (Command) → ⌃ (Control) → ⌥ (Option) → ⇧ (Shift) → Key
-
- let parts: Vec<&str> = shortcut.split('+').collect();
-
- let mut has_cmd = false;
- let mut has_ctrl = false;
- let mut has_alt = false;
- let mut has_shift = false;
- let mut key = String::new();
-
- for part in parts {
- let lower = part.trim().to_lowercase();
- match lower.as_str() {
- "super" | "command" | "cmd" | "meta" => has_cmd = true,
- "control" | "ctrl" | "commandorcontrol" => has_ctrl = true,
- "alt" | "option" => has_alt = true,
- "shift" => has_shift = true,
- _ => key = part.trim().to_uppercase(),
- }
- }
-
- if cfg!(target_os = "macos") {
- // macOS: Use symbols in correct order (⌘⌃⌥⇧Key)
- let mut result = String::new();
- if has_cmd {
- result.push_str("⌘");
- }
- if has_ctrl {
- result.push_str("⌃");
- }
- if has_alt {
- result.push_str("⌥");
- }
- if has_shift {
- result.push_str("⇧");
- }
- result.push_str(&key);
- result
- } else {
- // Windows/Linux: Use text with + separator
- let mut parts_out = Vec::new();
- if has_ctrl {
- parts_out.push("Ctrl");
- }
- if has_cmd {
- parts_out.push("Win");
- }
- if has_alt {
- parts_out.push("Alt");
- }
- if has_shift {
- parts_out.push("Shift");
- }
- parts_out.push(&key);
- parts_out.join("+")
- }
+/// Convert stored shortcut format (e.g. "Control+Super+L") to Tauri accelerator
+/// format (e.g. "Ctrl+Super+L") for native right-aligned display in menus.
+fn to_accelerator(shortcut: &str) -> String {
+ shortcut
+ .replace("Control", "Ctrl")
+ .replace("CommandOrControl", "CmdOrCtrl")
}
+
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 5381dfcab..8853764a5 100644
--- a/apps/screenpipe-app-tauri/src-tauri/src/window_api.rs
+++ b/apps/screenpipe-app-tauri/src-tauri/src/window_api.rs
@@ -1038,7 +1038,22 @@ impl ShowRewindWindow {
if let Ok(panel) = app_clone.get_webview_panel(RewindWindowId::Chat.label())
{
- panel.set_level(if chat_on_top { 1001 } else { 0 });
+ if chat_on_top {
+ panel.set_level(1001);
+ // NonActivatingPanel (128) so clicking doesn't activate app
+ unsafe {
+ let current: i32 = msg_send![&*panel, styleMask];
+ panel.set_style_mask(current | 128);
+ }
+ } else {
+ // Normal window level — allow it to go behind other windows
+ panel.set_level(0);
+ // Remove NonActivatingPanel bit (128) so it behaves normally
+ unsafe {
+ let current: i32 = msg_send![&*panel, styleMask];
+ panel.set_style_mask(current & !128);
+ }
+ }
let _: () =
unsafe { msg_send![&*panel, setMovableByWindowBackground: true] };
let sharing: u64 = if capturable { 1 } else { 0 };
@@ -1054,8 +1069,6 @@ impl ShowRewindWindow {
make_webview_first_responder(&panel);
}
// Remove MoveToActiveSpace now that the panel is shown.
- // Keeps it pinned to THIS Space so it won't follow
- // three-finger swipes (same pattern as main overlay).
panel.set_collection_behaviour(
NSWindowCollectionBehavior::NSWindowCollectionBehaviorFullScreenAuxiliary
);
@@ -1067,6 +1080,11 @@ impl ShowRewindWindow {
#[cfg(not(target_os = "macos"))]
{
+ let chat_on_top = SettingsStore::get(app)
+ .unwrap_or_default()
+ .unwrap_or_default()
+ .chat_always_on_top;
+ window.set_always_on_top(chat_on_top).ok();
window.show().ok();
window.set_focus().ok();
return Ok(window);
@@ -1727,23 +1745,26 @@ impl ShowRewindWindow {
use tauri_nspanel::cocoa::appkit::NSWindowCollectionBehavior;
if let Ok(panel) = window_clone.to_panel() {
- // Level 1001 to appear above fullscreen apps, or 0 for normal
let chat_on_top = SettingsStore::get(window_clone.app_handle())
.unwrap_or_default()
.unwrap_or_default()
.chat_always_on_top;
- panel.set_level(if chat_on_top { 1001 } else { 0 });
- // NonActivatingPanel (128) so clicking the chat doesn't
- // activate the app (which would switch Spaces away from
- // fullscreen apps). Preserve existing style bits.
- // WKWebView still receives keyboard input via makeKeyWindow.
- unsafe {
- let current: i32 = msg_send![&*panel, styleMask];
- panel.set_style_mask(current | 128);
+ if chat_on_top {
+ // Level 1001 to appear above fullscreen apps
+ panel.set_level(1001);
+ // NonActivatingPanel (128) so clicking the chat doesn't
+ // activate the app (which would switch Spaces away from
+ // fullscreen apps). Preserve existing style bits.
+ unsafe {
+ let current: i32 = msg_send![&*panel, styleMask];
+ panel.set_style_mask(current | 128);
+ }
+ } else {
+ panel.set_level(0);
}
- // Don't hide when app deactivates (we never activate the app)
+ // Don't hide when app deactivates
panel.set_hides_on_deactivate(false);
// Enable dragging by clicking anywhere on the window background