File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
crates/chat-cli/src/cli/chat Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff 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
182185impl 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 ( ) {
You can’t perform that action at this time.
0 commit comments