Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
agent2: Support `preferred_completion_mode` setting (#36473)
Bennet Bo Fenner790a2a0cfa60
diff --git a/crates/agent2/src/thread.rs b/crates/agent2/src/thread.rsindex beb780850ca..f0b5d2f08ac 100644--- a/crates/agent2/src/thread.rs+++ b/crates/agent2/src/thread.rs@@ -522,7 +522,7 @@ impl Thread {id: ThreadId::new(),prompt_id: PromptId::new(),messages: Vec::new(),- completion_mode: CompletionMode::Normal,+ completion_mode: AgentSettings::get_global(cx).preferred_completion_mode,running_turn: None,pending_message: None,tools: BTreeMap::default(),