From 46784e9ed2a13b2f2a461a2b9a3c3f9068c5c4e7 Mon Sep 17 00:00:00 2001 From: Catan <84828825+catan271@users.noreply.github.com> Date: Mon, 6 Jul 2026 15:18:38 +0700 Subject: [PATCH] fix(vscode): persist model favorites (#1995) --- packages/ui/src/lib/modelPrefsAutoSave.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/ui/src/lib/modelPrefsAutoSave.ts b/packages/ui/src/lib/modelPrefsAutoSave.ts index e9d8ecbf..130f5253 100644 --- a/packages/ui/src/lib/modelPrefsAutoSave.ts +++ b/packages/ui/src/lib/modelPrefsAutoSave.ts @@ -1,6 +1,5 @@ import { useUIStore } from '@/stores/useUIStore'; import { updateDesktopSettings } from '@/lib/persistence'; -import { isVSCodeRuntime } from '@/lib/desktop'; type ModelRef = { providerID: string; modelID: string }; type ModelPrefsPayload = { @@ -72,9 +71,6 @@ export const startModelPrefsAutoSave = () => { if (typeof window === 'undefined') { return () => {}; } - if (isVSCodeRuntime()) { - return () => {}; - } let timer: number | null = null; let lastSent: ModelPrefsPayload | null = null;