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

Merge pull request #3327 from thisisharsh7/fix-chat-preset-switch-race

Louis Beaumont9cd5041eb6ea
diff --cc apps/screenpipe-app-tauri/components/rewind/ai-presets-selector.tsx
index fe937c8d2,ccffd15d7..43dac8af2
--- a/apps/screenpipe-app-tauri/components/rewind/ai-presets-selector.tsx
+++ b/apps/screenpipe-app-tauri/components/rewind/ai-presets-selector.tsx
@@@ -1132,16 -1122,9 +1134,16 @@@ export const AIPresetsSelector = (
window.addEventListener("keydown", handleKeyDown);
return () => window.removeEventListener("keydown", handleKeyDown);
- }, [aiPresets, selectedPreset, updateSettings, shortcutKey]);
+ }, [aiPresets, selectedPreset, updateSettings, shortcutKey, onPresetSaved]);
const handleSavePreset = (preset: Partial<AIPreset>) => {
+ if (!canManageEmployeePresets) {
+ toast.error("Managed by your organization", {
+ description: "Your admin controls which AI presets are available",
+ });
+ return;
+ }
+
if (!preset.id) {
toast.error("Please enter a name for this preset", {
description: "Name is required",