local ai killswitch

This commit is contained in:
Fabian Freund
2025-07-25 22:18:08 +02:00
parent 9ae21190f4
commit dd40676b36
8 changed files with 100 additions and 27 deletions
@@ -156,6 +156,22 @@ class GeneralSettingsScreen extends HookConsumerWidget {
],
),
),
SwitchListTile.adaptive(
title: const Text('On Device AI'),
subtitle: const Text(
'Local on-device features including container topic and tab suggestions',
),
secondary: const Icon(MdiIcons.creation),
value: generalSettings.enableLocalAiFeatures,
onChanged: (value) async {
await ref
.read(saveGeneralSettingsControllerProvider.notifier)
.save(
(currentSettings) => currentSettings.copyWith
.enableLocalAiFeatures(value),
);
},
),
SwitchListTile.adaptive(
title: const Text('Enable Reader Mode'),
subtitle: const Text(