feat(dictation): add persistent language selection in General settings

This commit is contained in:
Bartosz Chronowki
2026-10-25 14:33:49 +01:00
parent b277ee3e0f
commit 3bb28e5f29
18 changed files with 1158 additions and 72 deletions
+5
View File
@@ -35,6 +35,7 @@ import {
type BackgroundModelRole,
type FactorySettings,
type GeneralSettings,
type DictationSettings,
type CompactionSettings,
type GraphSettings,
type ModelSlot,
@@ -69,6 +70,7 @@ export type EffectiveAppearance = FactorySettings["appearance"];
/** The concrete view: every knob resolved, no absent fields. */
export interface EffectiveSettings {
general: Required<GeneralSettings>;
dictation: Required<DictationSettings>;
agent: {
models: Record<BackgroundModelRole, EffectiveModelSpec | undefined>;
/** Delta map as stored — consumers resolve absent key → enabled. */
@@ -176,6 +178,9 @@ export function resolveSettings(record: UserSettings | null): EffectiveSettings
general: {
autoUpdate: record?.general?.autoUpdate ?? FACTORY_SETTINGS.general.autoUpdate,
},
dictation: {
language: record?.dictation?.language ?? FACTORY_SETTINGS.dictation.language,
},
agent: {
models,
tools: agent.tools ?? {},