agent2: Support preferred_completion_mode setting (#36473)

Release Notes:

- N/A
This commit is contained in:
Bennet Bo Fenner 2025-08-19 12:40:02 +02:00 committed by GitHub
parent 97a31c59c9
commit 790a2a0cfa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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(),