@@ -356,20 +356,21 @@ async fn spawn_command(
356
356
command. stderr ( write_stderr) ;
357
357
command. current_dir ( & project_path) ;
358
358
359
- command. args ( [
360
- "-p" ,
361
- "--output-format=stream-json" ,
362
- "--verbose" ,
363
- & format ! ( "--settings={settings}" ) ,
364
- & format ! ( "--mcp-config={mcp_config}" ) ,
365
- & format ! ( "--model={}" , model. to_cli_string( ) ) ,
366
- ] ) ;
359
+ command. args ( [ "--settings" , & settings] ) ;
360
+ command. args ( [ "--mcp-config" , & mcp_config] ) ;
361
+ command. args ( [ "--output-format" , "stream-json" ] ) ;
362
+ command. args ( [ "--model" , model. to_cli_string ( ) ] ) ;
363
+
364
+ command. args ( [ "-p" , "--verbose" ] ) ;
367
365
368
366
if app_settings. claude . dangerously_allow_all_permissions {
369
367
command. arg ( "--dangerously-skip-permissions" ) ;
370
368
} else {
371
- command. arg ( "--permission-prompt-tool=mcp__but-security__approval_prompt" ) ;
372
- command. arg ( "--permission-mode=acceptEdits" ) ;
369
+ command. args ( [
370
+ "--permission-prompt-tool" ,
371
+ "mcp__but-security__approval_prompt" ,
372
+ ] ) ;
373
+ command. args ( [ "--permission-mode" , "acceptEdits" ] ) ;
373
374
}
374
375
375
376
let mut session_ids = session. session_ids . clone ( ) ;
@@ -390,9 +391,9 @@ async fn spawn_command(
390
391
}
391
392
392
393
if let Some ( current_id) = current_id {
393
- command. arg ( format ! ( "--resume= {current_id}" ) ) ;
394
+ command. args ( [ "--resume" , & format ! ( " {current_id}") ] ) ;
394
395
} else {
395
- command. arg ( format ! ( "--session-id= {}" , session. id) ) ;
396
+ command. args ( [ "--session-id" , & format ! ( " {}", session. id) ] ) ;
396
397
}
397
398
398
399
command. arg ( format_message ( & message, thinking_level) ) ;
0 commit comments