start contextuel : am start sans argument lance l'agent par defaut du projet (issue #30) - resolution pure resolve_start_target, restart identique, REPL sans agent obligatoire

This commit is contained in:
2026-08-17 08:13:19 -04:00
parent 463fa6b937
commit 5f8b973789
5 changed files with 39 additions and 9 deletions
+2 -2
View File
@@ -1283,7 +1283,7 @@ fn handle_line(
agent: need("agent name")?,
},
"start" => Command::Start(StartArgs {
agent: need("agent name")?,
agent: rest.first().cloned(),
background: flag("--background") || flag("-b"),
..Default::default()
}),
@@ -1294,7 +1294,7 @@ fn handle_line(
},
"restart" => Command::Restart {
start: StartArgs {
agent: need("agent name")?,
agent: rest.first().cloned(),
background: flag("--background") || flag("-b"),
..Default::default()
},