feat: AI based permission checks
This commit is contained in:
@@ -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),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user