Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

agent: Fix settings view switch field about permissions for running commands (#35120)

Danilo Leal4854f83e8c65
diff --git a/crates/agent_ui/src/agent_configuration.rs b/crates/agent_ui/src/agent_configuration.rs
index cacd409ac62..fae04188ebd 100644
--- a/crates/agent_ui/src/agent_configuration.rs
+++ b/crates/agent_ui/src/agent_configuration.rs
@@ -404,9 +404,9 @@ impl AgentConfiguration {
let fs = self.fs.clone();
SwitchField::new(
- "single-file-review",
- "Enable single-file agent reviews",
- "Agent edits are also displayed in single-file editors for review.",
+ "always-allow-tool-actions-switch",
+ "Allow running commands without asking for confirmation",
+ "The agent can perform potentially destructive actions without asking for your confirmation.",
always_allow_tool_actions,
move |state, _window, cx| {
let allow = state == &ToggleState::Selected;