fix(vscode): persist model favorites (#1995)

This commit is contained in:
Catan
2026-07-06 11:18:38 +03:00
committed by GitHub
parent 9a7d7a4379
commit 46784e9ed2
@@ -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;