The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
refactor(settings): remove task plan approval toggle
Steven Enamakele3250063205b
diff --git a/app/src/components/settings/panels/AgentAccessPanel.tsx b/app/src/components/settings/panels/AgentAccessPanel.tsxindex b7052f8631..d79ba1567c 100644--- a/app/src/components/settings/panels/AgentAccessPanel.tsx+++ b/app/src/components/settings/panels/AgentAccessPanel.tsx@@ -45,7 +45,6 @@ const AgentAccessPanel = () => {// here — that would create two sources of truth.const [level, setLevel] = useState<AutonomyLevel>('supervised');const [workspaceOnly, setWorkspaceOnly] = useState(false);- const [requireTaskPlanApproval, setRequireTaskPlanApproval] = useState(true);// Blanket "auto-approve everything" bypass — off by default. Hard security// blocks (credential dirs, workspace-internal paths) and the// subconscious-tainted / unlabelled-origin denials in the approval gate@@ -91,7 +90,6 @@ const AgentAccessPanel = () => {if (cancelled) return;setLevel(autonomyResp.result.level);setWorkspaceOnly(autonomyResp.result.workspace_only);- setRequireTaskPlanApproval(autonomyResp.result.require_task_plan_approval ?? true);setAutoApproveAll(autonomyResp.result.auto_approve_all ?? false);setTrustedRoots(autonomyResp.result.trusted_roots ?? []);setAutoApprove(autonomyResp.result.auto_approve ?? []);@@ -133,7 +131,6 @@ const AgentAccessPanel = () => {const persist = async (next: {workspaceOnly: boolean;- requireTaskPlanApproval: boolean;trustedRoots: TrustedRoot[];// Only sent when the allowlist itself is being changed. Omitting it leaves// the server's `auto_approve` untouched (partial patch) — important so a@@ -142,8 +139,8 @@ const AgentAccessPanel = () => {autoApprove?: string[];// Same partial-patch reasoning as `autoApprove` above: only// `toggleAutoApproveAll` sets this. Every other caller must omit it so- // an unrelated autosave (folders, task-plan-approval, workspace- // confinement) can never rewrite `auto_approve_all` back to this+ // an unrelated autosave (folders, workspace confinement) can never+ // rewrite `auto_approve_all` back to this// panel's possibly-stale local value.autoApproveAll?: boolean;},@@ -160,7 +157,6 @@ const AgentAccessPanel = () => {workspace_only: next.workspaceOnly,trusted_roots: next.trustedRoots,allow_tool_install: ALLOW_TOOL_INSTALL,- require_task_plan_approval: next.requireTaskPlanApproval,...(next.autoApprove !== undefined ? { auto_approve: next.autoApprove } : {}),...(next.autoApproveAll !== undefined ? { auto_approve_all: next.autoApproveAll } : {}),});@@ -183,25 +179,14 @@ const AgentAccessPanel = () => {const toggleWorkspaceOnly = (next: boolean) => {const prev = workspaceOnly;setWorkspaceOnly(next);- void persist({ workspaceOnly: next, requireTaskPlanApproval, trustedRoots }, () =>- setWorkspaceOnly(prev)- );- };-- const toggleTaskPlanApproval = (next: boolean) => {- const prev = requireTaskPlanApproval;- setRequireTaskPlanApproval(next);- void persist({ workspaceOnly, requireTaskPlanApproval: next, trustedRoots }, () =>- setRequireTaskPlanApproval(prev)- );+ void persist({ workspaceOnly: next, trustedRoots }, () => setWorkspaceOnly(prev));};const toggleAutoApproveAll = (next: boolean) => {const prev = autoApproveAll;setAutoApproveAll(next);- void persist(- { workspaceOnly, requireTaskPlanApproval, trustedRoots, autoApproveAll: next },- () => setAutoApproveAll(prev)+ void persist({ workspaceOnly, trustedRoots, autoApproveAll: next }, () =>+ setAutoApproveAll(prev));};@@ -219,21 +204,21 @@ const AgentAccessPanel = () => {// `autoApproveAll` intentionally omitted: this save is about the folder// grant, not the auto-approve-all toggle, and the partial-patch RPC// leaves omitted fields untouched server-side (see `persist` above).- void persist({ workspaceOnly, requireTaskPlanApproval, trustedRoots: nextRoots });+ void persist({ workspaceOnly, trustedRoots: nextRoots });};const removeRoot = (path: string) => {const nextRoots = trustedRoots.filter(r => r.path !== path);setTrustedRoots(nextRoots);// `autoApproveAll` intentionally omitted — see `addRoot` above.- void persist({ workspaceOnly, requireTaskPlanApproval, trustedRoots: nextRoots });+ void persist({ workspaceOnly, trustedRoots: nextRoots });};const removeAutoApprove = (tool: string) => {const nextList = autoApprove.filter(name => name !== tool);setAutoApprove(nextList);// `autoApproveAll` intentionally omitted — see `addRoot` above.- void persist({ workspaceOnly, requireTaskPlanApproval, trustedRoots, autoApprove: nextList });+ void persist({ workspaceOnly, trustedRoots, autoApprove: nextList });};// Persist the action timeout on blur / Enter. Validates the integer range@@ -335,19 +320,6 @@ const AgentAccessPanel = () => {/>}/>- <SettingsRow- htmlFor="switch-task-plan-approval"- label={t('settings.agentAccess.requireTaskPlanApproval.label')}- description={t('settings.agentAccess.requireTaskPlanApproval.desc')}- control={- <SettingsSwitch- id="switch-task-plan-approval"- checked={requireTaskPlanApproval}- onCheckedChange={toggleTaskPlanApproval}- aria-label={t('settings.agentAccess.requireTaskPlanApproval.label')}- />- }- /></SettingsSection>{/* Action timeout */}diff --git a/app/src/components/settings/panels/PermissionsPanel.tsx b/app/src/components/settings/panels/PermissionsPanel.tsxindex fd4c444e57..962fc68a8b 100644--- a/app/src/components/settings/panels/PermissionsPanel.tsx+++ b/app/src/components/settings/panels/PermissionsPanel.tsx@@ -54,7 +54,6 @@ const PermissionsPanel = () => {// so we don't overwrite them with defaults. Load them but don't expose UI for// them (they live in the advanced panel).const [workspaceOnly, setWorkspaceOnly] = useState(false);- const [requireTaskPlanApproval, setRequireTaskPlanApproval] = useState(true);const [trustedRoots, setTrustedRoots] = useState<Array<{ path: string; access: 'read' | 'readwrite' }>>([]);@@ -87,7 +86,6 @@ const PermissionsPanel = () => {if (cancelled) return;setLevel(autonomyResp.result.level);setWorkspaceOnly(autonomyResp.result.workspace_only);- setRequireTaskPlanApproval(autonomyResp.result.require_task_plan_approval ?? true);setTrustedRoots(autonomyResp.result.trusted_roots ?? []);} catch (e) {if (!cancelled)@@ -125,7 +123,6 @@ const PermissionsPanel = () => {workspace_only: workspaceOnly,trusted_roots: trustedRoots,allow_tool_install: ALLOW_TOOL_INSTALL,- require_task_plan_approval: requireTaskPlanApproval,});if (persistSeqRef.current === seq) {setSavedNote(t('settings.agentAccess.saved'));diff --git a/app/src/types/turnState.ts b/app/src/types/turnState.tsindex 748620aa8a..9cb5ece931 100644--- a/app/src/types/turnState.ts+++ b/app/src/types/turnState.ts@@ -203,8 +203,6 @@ export interface AgentRun {status: AgentRunStatus;promptRef?: string | null;workerThreadId?: string | null;- taskBoardId?: string | null;- taskCardId?: string | null;checkpointPath?: string | null;checkpoint?: Record<string, unknown> | null;summary?: string | null;diff --git a/app/src/utils/tauriCommands/config.ts b/app/src/utils/tauriCommands/config.tsindex 119634d86b..42a18178e6 100644--- a/app/src/utils/tauriCommands/config.ts+++ b/app/src/utils/tauriCommands/config.ts@@ -462,8 +462,6 @@ export interface AutonomySettings {max_actions_per_hour: number;/** "Always allow" allowlist — tool names the agent runs without a prompt. */auto_approve: string[];- /** Require approval before an agent executes a task-board plan. */- require_task_plan_approval?: boolean;/*** When true, the approval gate auto-approves ALL tool calls without* prompting — a blanket bypass, not just the `auto_approve` allowlist@@ -485,7 +483,6 @@ export interface AutonomySettingsUpdate {max_actions_per_hour?: number;/** Replaces the "Always allow" allowlist wholesale. */auto_approve?: string[];- require_task_plan_approval?: boolean;/** Blanket "auto-approve everything" bypass. See `AutonomySettings`. */auto_approve_all?: boolean;}