feat(ui): profile picker + per-profile vocabulary; transcribe invokes carry profileId; drop buildInitialPrompt

This commit is contained in:
2026-04-19 20:57:46 +01:00
parent 7b804eacba
commit 7474cd24ba
4 changed files with 252 additions and 72 deletions

View File

@@ -17,6 +17,7 @@
applyExternalPreferences,
PREFERENCES_CHANGED_EVENT,
} from "$lib/stores/preferences.svelte.js";
import { profilesStore } from "$lib/stores/profiles.svelte.ts";
import { getCurrentWindow } from "@tauri-apps/api/window";
import { listen } from "@tauri-apps/api/event";
import { toasts } from "$lib/stores/toasts.svelte.js";
@@ -249,6 +250,9 @@
// Detect and initialise the correct hotkey backend
await initHotkeyBackend();
// Load profiles (per-profile vocabulary + initial prompt). Task 15.
await profilesStore.load();
try {
const whisper = await invoke("list_models");
const parakeet = await invoke("list_parakeet_models");