Skip to content

Commit 8b196df

Browse files
committed
gates migration workflow behind a flag
1 parent da88dbb commit 8b196df

File tree

1 file changed

+5
-1
lines changed
  • crates/chat-cli/src/cli/chat

1 file changed

+5
-1
lines changed

crates/chat-cli/src/cli/chat/mod.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,9 @@ pub struct ChatArgs {
177177
pub non_interactive: bool,
178178
/// The first question to ask
179179
pub input: Option<String>,
180+
/// Run migration of legacy profiles to agents if applicable
181+
#[arg(long)]
182+
pub migrate: bool,
180183
}
181184

182185
impl ChatArgs {
@@ -224,7 +227,8 @@ impl ChatArgs {
224227
} else {
225228
None
226229
};
227-
let mut agents = Agents::load(os, agent_name, self.non_interactive, &mut stderr).await;
230+
let skip_migration = self.non_interactive || !self.migrate;
231+
let mut agents = Agents::load(os, agent_name, skip_migration, &mut stderr).await;
228232
agents.trust_all_tools = self.trust_all_tools;
229233

230234
if let Some(name) = self.agent.as_ref() {

0 commit comments

Comments
 (0)