feat: AI based permission checks

This commit is contained in:
Georg Bauer
2026-07-30 09:47:54 +02:00
parent c101ca1380
commit 73d7c8af27
14 changed files with 413 additions and 28 deletions

View File

@@ -126,6 +126,20 @@ impl App {
.on_toggle(Message::PreferenceA2uiChanged),
"Lets the local model build validated native charts, tables, forms and other interactive chat surfaces. Turning it off removes the A2UI catalog from the system prompt.",
),
row![
hint(
text("Default shell permission mode").size(13).width(Length::Fill),
"Heuristic uses the built-in command classifier. AI based asks the local model once before each shell command and prompts when it reports risk.",
),
pick_list(
&PERMISSION_MODES[..],
Some(self.preference_draft.default_permission_mode),
Message::PreferencePermissionModeChanged,
)
.width(180),
]
.spacing(12)
.align_y(Alignment::Center),
]
.spacing(10),
);