feat: Introduce an AI-driven interactive shell mode with new

`read-shell` and `write-to-shell` tools and a configurable mode setting.
This commit is contained in:
Gaurav Ghosh
2026-03-20 13:39:10 -07:00
parent cbacdc67d0
commit 651ad63ed6
22 changed files with 906 additions and 83 deletions
+20
View File
@@ -1512,6 +1512,26 @@ const SETTINGS_SCHEMA = {
{ label: 'Notify', value: 'notify' },
],
},
interactiveShellMode: {
type: 'enum',
label: 'Interactive Shell Mode',
category: 'Tools',
requiresRestart: true,
default: undefined as 'human' | 'ai' | 'off' | undefined,
description: oneLine`
Controls who can interact with backgrounded shell processes.
"human": user can Tab-focus and type into shells (default).
"ai": model gets write_to_shell/read_shell tools for TUI interaction.
"off": no interactive shell.
When set, overrides enableInteractiveShell.
`,
showInDialog: true,
options: [
{ value: 'human', label: 'Human (Tab to focus)' },
{ value: 'ai', label: 'AI (model-driven tools)' },
{ value: 'off', label: 'Off' },
],
},
pager: {
type: 'string',
label: 'Pager',